Browse Source

航站视图跳转恢复轮询

zhongxiaoyu 2 years ago
parent
commit
18354224f0

+ 5 - 0
src/views/baggageManagement/components/arrival/index.vue

@@ -475,6 +475,11 @@ export default {
   },
   activated() {
     this.table.scrollTop = this.scrollTop
+    this.getTableData()
+    const that = this
+    this.loopEvent = setInterval(function () {
+      that.getTableData()
+    }, 3000)
   },
   deactivated() {
     if (this.loopEvent) {

+ 5 - 0
src/views/baggageManagement/components/departure/index.vue

@@ -419,6 +419,11 @@ export default {
   },
   activated() {
     this.table.scrollTop = this.scrollTop
+    this.getTableData()
+    const that = this
+    this.loopEvent = setInterval(function () {
+      that.getTableData()
+    }, 3000)
   },
   deactivated() {
     if (this.loopEvent) {

+ 5 - 0
src/views/baggageManagement/components/transferArrival/index.vue

@@ -518,6 +518,11 @@ export default {
   },
   activated() {
     this.table.scrollTop = this.scrollTop
+    this.getTableData()
+    const that = this
+    this.loopEvent = setInterval(function () {
+      that.getTableData()
+    }, 3000)
     // const { startDate, endDate } = this.$route.query
     // Object.entries(this.$route.query).forEach(([key, value]) => {
     //   if ((value ?? '') !== '' && JSON.stringify(value) !== '[]') {

+ 5 - 0
src/views/baggageManagement/components/transferDeparture/index.vue

@@ -469,6 +469,11 @@ export default {
   },
   activated() {
     this.table.scrollTop = this.scrollTop
+    this.getTableData()
+    const that = this
+    this.loopEvent = setInterval(function () {
+      that.getTableData()
+    }, 3000)
     // const { startDate, endDate } = this.$route.query
     // Object.entries(this.$route.query).forEach(([key, value]) => {
     //   if ((value ?? '') !== '' && JSON.stringify(value) !== '[]') {