From b8d7e403172914e8ca6770e9beb510fb1f3869b2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-2ESM03N\\zcloud" <1275851274@qq.com> Date: Fri, 26 Jul 2024 18:00:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=88=97=E5=BC=B9=E6=A1=86=E7=9A=84=E5=B1=95=E5=BC=80=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../personStrucManage/components/list.vue | 92 ++++++++++--------- 1 file changed, 50 insertions(+), 42 deletions(-) diff --git a/src/views/personStrucManage/components/list.vue b/src/views/personStrucManage/components/list.vue index deb0699..2fa88d5 100644 --- a/src/views/personStrucManage/components/list.vue +++ b/src/views/personStrucManage/components/list.vue @@ -48,7 +48,40 @@ @row-click="rowClick" > - + + + @@ -104,41 +137,6 @@ - - - -
@@ -550,15 +548,25 @@ export default { // 点击操作打开菜单选择框 openPopover() { this.popoverVisible = true + this.$nextTick(() => { + document.getElementsByClassName('el-popover el-popper')[0].style.display = 'none' + }) }, // 处理多选框全部选中 handleCheckAllChange(val) { - const treeRef = this.$refs.treeRef - if (val) { - treeRef.setCheckedNodes(this.getIds(this.optionsColumns)) - } else { - treeRef.setCheckedNodes([]) - } + const columnsValueList = [] + this.getIds(this.optionsColumns).map(item => { + columnsValueList.push(item) + }) + this.checkedColumns = val ? columnsValueList : [] + + console.log('this.checkedColumns :>> ', this.checkedColumns) + // const treeRef = this.$refs.treeRef + // if (val) { + // treeRef.setCheckedNodes(this.getIds(this.optionsColumns)) + // } else { + // treeRef.setCheckedNodes([]) + // } }, canclePopover() { this.popoverVisible = false