From 7c8e24efb8fe0d043290779ddf74eb323538ac50 Mon Sep 17 00:00:00 2001 From: qiankanghui <11284155+qian-kanghui@user.noreply.gitee.com> Date: Wed, 1 Apr 2026 14:08:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor(eam):=20=E7=A7=BB=E9=99=A4=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=88=97=E8=A1=A8=E4=B8=AD=E7=9A=84=E5=88=86=E7=BB=84?= =?UTF-8?q?=E7=BC=96=E7=A0=81=E5=88=97=E8=87=AA=E5=8A=A8=E6=8F=92=E5=85=A5?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了检查并自动插入 GroupID 列的相关代码 - 移除了分组编码列的默认配置逻辑 - 简化了列配置的处理流程 - 优化了设备列表页面的代码结构 --- src/views/modules/eam/eam_device_list.vue | 33 ----------------------- 1 file changed, 33 deletions(-) diff --git a/src/views/modules/eam/eam_device_list.vue b/src/views/modules/eam/eam_device_list.vue index abfe2b6..e1d39bb 100644 --- a/src/views/modules/eam/eam_device_list.vue +++ b/src/views/modules/eam/eam_device_list.vue @@ -4593,38 +4593,6 @@ switch (columnId) { case 1: this.columnList = data.rows - // 检查是否存在 GroupID 列,不存在则插入到 GroupDesc 前面 - const hasGroupID = this.columnList.some(col => col.columnProp === 'groupID' || col.columnProp === 'GroupID') - if (!hasGroupID) { - const groupDescIndex = this.columnList.findIndex(col => col.columnProp === 'groupDesc' || col.columnProp === 'GroupDesc') - const groupIDColumn = { - userId: this.$store.state.user.name, - functionId: 101001008, - serialNumber: '101001008Table1GroupID', - tableId: "101001008Table1", - tableName: "设备清单表", - columnProp: 'groupID', - headerAlign: 'center', - align: 'center', - columnLabel: '分组编码', - columnHidden: false, - columnImage: false, - columnSortable: false, - sortLv: 0, - status: true, - fixed: '', - columnWidth: 120, - } - if (groupDescIndex !== -1) { - this.columnList.splice(groupDescIndex, 0, groupIDColumn) - } else { - // 如果找不到 groupDesc,就插入到 seqNo 后面 - const seqNoIndex = this.columnList.findIndex(col => col.columnProp === 'seqNo' || col.columnProp === 'SeqNo') - if (seqNoIndex !== -1) { - this.columnList.splice(seqNoIndex + 1, 0, groupIDColumn) - } - } - } break; // case 2: // this.detailColumnList = data.rows @@ -4636,7 +4604,6 @@ // this.columnList3 = data.rows // break; } - } else { this.getColumnList(tableId, columnId) }