快捷按钮功能修复
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user