From cb27b59bcac48cdbc71469e513b53278b3b5500b Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Tue, 7 Jan 2020 16:42:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E6=8C=89=E9=92=AE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/view/superAdmin/authority/components/datas.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue b/QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue index 711c837f..09d044b7 100644 --- a/QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue +++ b/QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue @@ -38,14 +38,18 @@ export default { methods:{ all(){ this.dataAuthorityId = [...this.authoritys] + this.row.dataAuthorityId = this.dataAuthorityId + }, self(){ this.dataAuthorityId = this.authoritys.filter(item=>item.ID===this.row.ID) + this.row.dataAuthorityId = this.dataAuthorityId }, selfAndChildren(){ const arrBox = [] this.getChildrenId(this.row,arrBox) this.dataAuthorityId = this.authoritys.filter(item=>arrBox.indexOf(item.ID)>-1) + this.row.dataAuthorityId = this.dataAuthorityId }, getChildrenId(row,arrBox){ arrBox.push(row.ID)