diff --git a/QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue b/QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue index 711c837fb9b0842e213dc50ece722e27e165a263..09d044b7bf325bfb2202a02edee620f9c1ba64ab 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)