Browse Source

快捷按钮功能修复

main
pixel 5 years ago
parent
commit
cb27b59bca
  1. 4
      QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue

4
QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue

@ -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)

Loading…
Cancel
Save