修改列宽

dev
lilu 2 years ago
parent 13905efd30
commit 30ed956eab

@ -48,7 +48,7 @@ export default {
...mapActions(['setNeedSavePages']),
onEdit(targetKey, action) {
const _that = this
// console.log(this.needSavePages[targetKey])
console.log(this.needSavePages[targetKey], targetKey)
if (targetKey.includes('BookingDetail')) {
if (this.needSavePages[targetKey].details || this.needSavePages[targetKey].hbList) {
this.$confirm({
@ -100,6 +100,7 @@ export default {
}
},
closeLeft(e) {
console.log('=== 测试点1 ===')
const currentIndex = this.fullPathList.indexOf(e)
if (currentIndex > 0) {
this.fullPathList.forEach((item, index) => {
@ -112,6 +113,7 @@ export default {
}
},
closeRight(e) {
console.log('=== 测试点2 ===')
const currentIndex = this.fullPathList.indexOf(e)
if (currentIndex < this.fullPathList.length - 1) {
this.fullPathList.forEach((item, index) => {
@ -124,6 +126,7 @@ export default {
}
},
closeAll(e) {
console.log('=== 测试点3 ===')
const currentIndex = this.fullPathList.indexOf(e)
this.fullPathList.forEach((item, index) => {
if (index !== currentIndex) {

@ -368,6 +368,7 @@ export default {
this.formMoreTableData = moreTableArr
this.$forceUpdate()
}
console.log('== 表头 ==', this.gridOptions.columns)
})
// === ===
console.log('表格自定义数据 - 更多: ', this.formMoreTableData)

@ -31,7 +31,7 @@ export default {
{ field: 'createdUserName', label: 'CREATEDUSERNAME', width: 120, title: '创建人', showHeaderOverflow: true, sortable: true },
{ field: 'createdTime', label: 'CREATEDTIME', width: 160, title: '创建时间', showHeaderOverflow: true, sortable: true },
{ field: 'cntrtotal', label: 'CNTRTOTAL', width: 120, title: '箱型箱量', showHeaderOverflow: true, sortable: true },
{ field: 'operate', title: '操作', width: 80, noDraggable: true, slots: { default: 'operate' }, fixed: 'right' }
{ field: 'operate', title: '操作', width: 80, noDraggable: true, slots: { default: 'operate' }, fixed: 'right', resizable: false }
],
columnsAllData: [
{ field: 'carrier', width: 120, title: '船公司', showHeaderOverflow: true, sortable: true },

Loading…
Cancel
Save