Browse Source

快捷按钮功能修复

pixel 5 years ago
parent
commit
cb27b59bca
1 changed files with 4 additions and 0 deletions
  1. 4 0
      QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue

+ 4 - 0
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)