chenjun 2 жил өмнө
parent
commit
1f84c25d66

+ 11 - 3
src/views/baggageManagement/components/baggage/index.vue

@@ -394,7 +394,8 @@ export default {
       ],
       baggageTableData: [],
       spanArr: [],
-      pos: 0
+      pos: 0,
+      loopEvent:null
     }
   },
   computed: {
@@ -419,7 +420,11 @@ export default {
   mounted() {
     this.queryData = this._.cloneDeep(this.$route.query)
     // console.log(this.queryData)
-    this.queryBaggageAll()
+    let that = this
+    this.loopEvent = setInterval(function(){
+    that.queryBaggageAll()
+
+    },3000)
   },
   methods: {
     // objectSpanMethod({ row, column, rowIndex, columnIndex }) {
@@ -519,7 +524,10 @@ export default {
         console.log(error)
       }
     }
-  }
+  },
+  beforeDestroy() {
+    clearInterval(this.loopEvent);
+  },
 }
 </script>
 <style lang="scss">

+ 1 - 1
src/views/baggageManagement/components/transferArrival/index.vue

@@ -405,7 +405,7 @@ export default {
   methods: {
     cellClick(row, column, cell, event) {
       if (column.property == "PreFlightNO") {
-        this.$router.push({ path: "/advance/flightView", query: row });
+        this.$router.push({ path: "/transfer/arrival/flightView", query: row });
       }
     },
     changeView() {

+ 1 - 1
src/views/baggageManagement/components/transferDeparture/index.vue

@@ -409,7 +409,7 @@ export default {
   methods: {
     cellClick(row, column, cell, event) {
       if (column.property == "FlightNO") {
-        this.$router.push({ path: "/advance/flightView", query: row });
+        this.$router.push({ path: "/transfer/departure/flightView", query: row });
       }
     },
     changeView() {

+ 5 - 1
src/views/baggageManagement/mixins/terminal.js

@@ -139,7 +139,11 @@ export default {
               'terminateUnreachedQuantity',
               'quantityShipped',
               'undeliveredQuantity',
-              'numberOfBulk'
+              'numberOfBulk',
+              'inTransferBaggageCount',
+              'inTransferredBaggageCount',
+              'outTransferBaggageCount',
+              'outTransferredBaggageCount'
             ].includes(column.property)
           ) {
             const values = data.map(item => Number(item[column.property]))