|
@@ -517,7 +517,6 @@ import TableHeaderCell from '@/components/TableHeaderCell'
|
|
|
import { setTableFilters } from '@/utils/table'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import { throttledExportToExcel } from '@/utils/table'
|
|
|
-import { parseTime } from '@/utils'
|
|
|
|
|
|
export default {
|
|
|
name: 'FlightView',
|
|
@@ -571,6 +570,7 @@ export default {
|
|
|
queryData: {},
|
|
|
flightInfo: {},
|
|
|
warningRules: [],
|
|
|
+ debounceTime: 300,
|
|
|
containerTableColumn: [
|
|
|
{ label: '容器编号', prop: 'containerNumber', width: 100 },
|
|
|
{ label: '类型', prop: 'style' },
|
|
@@ -948,30 +948,26 @@ export default {
|
|
|
},
|
|
|
activated() {
|
|
|
this.getWarningData()
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs['containerTable']?.doLayout()
|
|
|
- // this.$refs['transferInBaggageTable']?.doLayout()
|
|
|
- // this.$refs['transferOutBaggageTable']?.doLayout()
|
|
|
- this.$refs['flightBaggageTable']?.doLayout()
|
|
|
- })
|
|
|
- },
|
|
|
- updated() {
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs['containerTable']?.doLayout()
|
|
|
- // this.$refs['transferInBaggageTable']?.doLayout()
|
|
|
- // this.$refs['transferOutBaggageTable']?.doLayout()
|
|
|
- this.$refs['flightBaggageTable']?.doLayout()
|
|
|
- })
|
|
|
+ this.resizeHandler()
|
|
|
+ this.debouncedResizeHandler = this._.debounce(this.resizeHandler, this.debounceTime)
|
|
|
+ window.addEventListener('resize', this.debouncedResizeHandler)
|
|
|
},
|
|
|
deactivated() {
|
|
|
this.dragHeight = 0
|
|
|
this.dragY = 0
|
|
|
this.loading?.close()
|
|
|
+ window.removeEventListener('resize', this.debouncedResizeHandler)
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
this.loading?.close()
|
|
|
},
|
|
|
methods: {
|
|
|
+ resizeHandler() {
|
|
|
+ this.$refs['containerTable']?.doLayout()
|
|
|
+ // this.$refs['transferInBaggageTable']?.doLayout()
|
|
|
+ // this.$refs['transferOutBaggageTable']?.doLayout()
|
|
|
+ this.$refs['flightBaggageTable']?.doLayout()
|
|
|
+ },
|
|
|
setfastFilterValues() {
|
|
|
const inFlightNOList = new Set()
|
|
|
const transferFlightNOList = new Set()
|