修改列表

szh_zidingyibiaoti
lilu 2 years ago
parent f9c37fa51c
commit 77a40d7e9e

@ -390,7 +390,7 @@ export default {
}, 800)
},
beforeRouteLeave(to, from, next) {
// console.log('== - beforeRouteLeave ==', this.bookingDetails.hbList, this.id, this.bookingDetails.hbList.length > 0 ? this.bookingDetails.hbList[0].hblno : '')
// console.log('== - beforeRouteLeave ==')
this.inChildLoading = true
if (this.isCopy) {
const hisData = {
@ -451,7 +451,7 @@ export default {
},
beforeRouteEnter(to, from, next) {
next(vm => {
// console.log('== - beforeRouteEnter ==', vm.inAddSave)
// console.log('== - beforeRouteEnter ==')
vm.getRouterHis()
})
},

@ -141,7 +141,7 @@ export default {
title: '箱型',
align: 'left',
width: 80,
edit: true,
edit: false,
renderBodyCell: ({ row, column, rowIndex }, h) => {
return (
<a-select

@ -590,24 +590,63 @@ export default {
RecentlyCarrierData: []
}
},
beforeRouteLeave (to, from, next) {
// console.log('')
this.gridOptions = {
border: false,
resizable: true,
showOverflow: true,
loading: true,
stripe: true,
round: true,
autoResize: true,
align: 'center',
columnConfig: { resizable: true },
importConfig: {},
exportConfig: {},
pagerConfig: {
total: 0,
currentPage: 1,
pageSize: 10,
pageSizes: [10, 20, 50, 100, 200, 500]
},
columns: JSON.parse(JSON.stringify(initData.columns)),
data: []
}
next()
},
beforeRouteEnter (to, from, next) {
// console.log('')
next(vm => {
console.log('== 进入路由 - beforeRouteEnter ==', vm.inAddSave)
vm.createdInit()
vm.onresize()
})
},
created() {
this.showColumns = JSON.parse(JSON.stringify(initData.columns))
this.formAllData = JSON.parse(JSON.stringify(initData.condAllData))
this.fromTableAllData = JSON.parse(JSON.stringify(initData.columnsAllData))
this.tableHeight = document.body.clientHeight - 300
console.log('=== 列表创建 ===')
this.getFormData()
this.getTableList()
this.getPageSize()
this.getCarrier()
// this.createdInit()
},
mounted() {
console.log('=== 列表 mounted ===')
window.onresize = () => {
this.screenWidth = document.body.clientWidth
}
// this.onresize()
},
methods: {
createdInit () {
this.showColumns = JSON.parse(JSON.stringify(initData.columns))
this.formAllData = JSON.parse(JSON.stringify(initData.condAllData))
this.fromTableAllData = JSON.parse(JSON.stringify(initData.columnsAllData))
this.tableHeight = document.body.clientHeight - 300
// console.log('=== ===')
this.getFormData()
this.getTableList()
this.getPageSize()
this.getCarrier()
},
onresize () {
// console.log('=== ===')
window.onresize = () => {
this.screenWidth = document.body.clientWidth
}
},
//
editingHandleOk() {
const {

Loading…
Cancel
Save