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