From 228499272edeece72a2a38d7c955f2beb25feb8e Mon Sep 17 00:00:00 2001 From: "HUOJIN\\92525" <925258474@qq.com> Date: Fri, 12 Apr 2024 16:03:31 +0800 Subject: [PATCH] no message --- src/components/Crud/CRUD.operation.vue | 23 +- src/views/base-data/item/index.vue | 66 +----- src/views/business-data/mo/index.vue | 275 ++++++++++++++---------- src/views/business-data/order/index.vue | 62 +++--- 4 files changed, 212 insertions(+), 214 deletions(-) diff --git a/src/components/Crud/CRUD.operation.vue b/src/components/Crud/CRUD.operation.vue index c4e6dc7..cf36583 100644 --- a/src/components/Crud/CRUD.operation.vue +++ b/src/components/Crud/CRUD.operation.vue @@ -203,17 +203,20 @@ export default { }, showcolumn() { const table = this.crud.props.table - this.hiddenColumns.forEach((column, index) => { - const vm = table.$children.find(e => e.prop === column.property) - const columnConfig = vm.columnConfig - if (column.visible) { - columnConfig.width = column.width - columnConfig.visible = column.visible - vm.owner.store.commit('insertColumn', columnConfig, index + 1, null) - } + if(this.hiddenColumns!== undefined && this.hiddenColumns!=null){ + this.hiddenColumns.forEach((column, index) => { + const vm = table.$children.find(e => e.prop === column.property) + const columnConfig = vm.columnConfig + if (column.visible) { + columnConfig.width = column.width + columnConfig.visible = column.visible + vm.owner.store.commit('insertColumn', columnConfig, index + 1, null) + } + + }) + this.updateTableColumns(); + } - }) - this.updateTableColumns(); }, //列拖拽 columnDrop() { diff --git a/src/views/base-data/item/index.vue b/src/views/base-data/item/index.vue index 8f4ffd5..2f4921b 100644 --- a/src/views/base-data/item/index.vue +++ b/src/views/base-data/item/index.vue @@ -12,9 +12,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +