From ed4b3871bcafddf762fa8bcb3c709446b49cf4b7 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Wed, 6 Sep 2023 14:40:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90QQYUN-6424=E3=80=91table=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=88=97=E8=A1=A8=E8=AE=BE=E7=BD=AE=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=90=8E=EF=BC=8C=E5=86=8D=E6=8B=96=E6=8B=BD=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E9=A1=BA=E5=BA=8F=EF=BC=8C=E5=8E=9F=E6=9C=AC=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84=EF=BC=8C=E5=8F=88=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BA=86=20---?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Table/src/components/settings/ColumnSetting.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Table/src/components/settings/ColumnSetting.vue b/src/components/Table/src/components/settings/ColumnSetting.vue index 62d7972..4b18309 100644 --- a/src/components/Table/src/components/settings/ColumnSetting.vue +++ b/src/components/Table/src/components/settings/ColumnSetting.vue @@ -331,7 +331,15 @@ } plainSortOptions.value = columns; - setColumns(columns); + // update-begin--author:liaozhiyang---date:20230904---for:【QQYUN-6424】table字段列表设置不显示后,再拖拽字段顺序,原本不显示的,又显示了 + if(state.checkedList.length != columns.length){ + const cols = columns.map(item => item.value); + const arr = cols.filter((cItem) => state.checkedList.find((lItem) => lItem === cItem)); + setColumns(arr); + } else { + setColumns(columns); + } + // update-begin--author:liaozhiyang---date:20230904---for:【QQYUN-6424】table字段列表设置不显示后,再拖拽字段顺序,原本不显示的,又显示了 }, }); // 记录原始 order 序列