From 1ad729ca0e3dfb30c6b4bdcd78ab632144c751df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 10 Sep 2021 11:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90=E5=B7=B2?= =?UTF-8?q?=E7=9F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/sys/role-manage/roleManage.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/manager/src/views/sys/role-manage/roleManage.vue b/manager/src/views/sys/role-manage/roleManage.vue index caf93416..71b851f5 100644 --- a/manager/src/views/sys/role-manage/roleManage.vue +++ b/manager/src/views/sys/role-manage/roleManage.vue @@ -580,18 +580,19 @@ export default { submitPermEdit() { this.saveRoleWay = []; this.selectIsSuperModel = true; //打开选择权限 - let selectedNodes = this.$refs.tree.getCheckedNodes(); + let selectedNodes = this.$refs.tree.getCheckedAndIndeterminateNodes(); let way = []; selectedNodes.forEach((e) => { - + console.log(e) let perm = { title: e.title, - isSuper: e.isSuper, + isSuper: e.isSuper || false, menuId: e.id, roleId: this.editRolePermId, }; way.push(perm); - this.saveRoleWay = way; + this.$set(this,'saveRoleWay',way) + }); },