|
|
@ -672,12 +672,14 @@ export default {
|
|
|
|
...mapGetters(['bookingList', 'bookingGridOptions'])
|
|
|
|
...mapGetters(['bookingList', 'bookingGridOptions'])
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeRouteLeave (to, from, next) {
|
|
|
|
beforeRouteLeave (to, from, next) {
|
|
|
|
|
|
|
|
const copyArr = JSON.parse(JSON.stringify(this.gridOptions.data))
|
|
|
|
|
|
|
|
const first = copyArr.splice(0, 20)
|
|
|
|
this.setBookingGridOptions(this.gridOptions)
|
|
|
|
this.setBookingGridOptions(this.gridOptions)
|
|
|
|
this.gridOptions = {
|
|
|
|
this.gridOptions = {
|
|
|
|
border: false,
|
|
|
|
border: false,
|
|
|
|
resizable: true,
|
|
|
|
resizable: true,
|
|
|
|
showOverflow: true,
|
|
|
|
showOverflow: true,
|
|
|
|
loading: true,
|
|
|
|
loading: false,
|
|
|
|
stripe: true,
|
|
|
|
stripe: true,
|
|
|
|
round: true,
|
|
|
|
round: true,
|
|
|
|
autoResize: true,
|
|
|
|
autoResize: true,
|
|
|
@ -691,8 +693,8 @@ export default {
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSizes: [10, 20, 50, 100, 200, 500]
|
|
|
|
pageSizes: [10, 20, 50, 100, 200, 500]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
columns: JSON.parse(JSON.stringify(initData.columns)),
|
|
|
|
columns: this.gridOptions.columns,
|
|
|
|
data: []
|
|
|
|
data: first
|
|
|
|
}
|
|
|
|
}
|
|
|
|
next()
|
|
|
|
next()
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -737,7 +739,8 @@ export default {
|
|
|
|
this.gridOptions = { ...this.gridOptions, ...newData }
|
|
|
|
this.gridOptions = { ...this.gridOptions, ...newData }
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.gridOptions.data = [...this.gridOptions.data, ...more]
|
|
|
|
this.gridOptions.data = [...this.gridOptions.data, ...more]
|
|
|
|
}, 60)
|
|
|
|
console.log(this.gridOptions.data.length)
|
|
|
|
|
|
|
|
}, 600)
|
|
|
|
}, 10)
|
|
|
|
}, 10)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|