|
@@ -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">
|