|
@ -38,14 +38,18 @@ export default { |
|
|
methods:{ |
|
|
methods:{ |
|
|
all(){ |
|
|
all(){ |
|
|
this.dataAuthorityId = [...this.authoritys] |
|
|
this.dataAuthorityId = [...this.authoritys] |
|
|
|
|
|
this.row.dataAuthorityId = this.dataAuthorityId |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
self(){ |
|
|
self(){ |
|
|
this.dataAuthorityId = this.authoritys.filter(item=>item.ID===this.row.ID) |
|
|
this.dataAuthorityId = this.authoritys.filter(item=>item.ID===this.row.ID) |
|
|
|
|
|
this.row.dataAuthorityId = this.dataAuthorityId |
|
|
}, |
|
|
}, |
|
|
selfAndChildren(){ |
|
|
selfAndChildren(){ |
|
|
const arrBox = [] |
|
|
const arrBox = [] |
|
|
this.getChildrenId(this.row,arrBox) |
|
|
this.getChildrenId(this.row,arrBox) |
|
|
this.dataAuthorityId = this.authoritys.filter(item=>arrBox.indexOf(item.ID)>-1) |
|
|
this.dataAuthorityId = this.authoritys.filter(item=>arrBox.indexOf(item.ID)>-1) |
|
|
|
|
|
this.row.dataAuthorityId = this.dataAuthorityId |
|
|
}, |
|
|
}, |
|
|
getChildrenId(row,arrBox){ |
|
|
getChildrenId(row,arrBox){ |
|
|
arrBox.push(row.ID) |
|
|
arrBox.push(row.ID) |
|
|