Browse Source

Merge branch 'ol_12_30' into test

mo 3 years ago
parent
commit
6c54369a86
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/views/categroyManager/insideSetting/staffManager.vue

+ 4 - 5
src/views/categroyManager/insideSetting/staffManager.vue

@@ -632,7 +632,7 @@ export default {
       // 获取可编辑角色
       // 获取可编辑角色
       try {
       try {
         const res= await userRole()
         const res= await userRole()
-          this.rolerulesList  = []
+          this.roleBaseList  = []
           res.data.forEach(item => {
           res.data.forEach(item => {
             this.roleBaseList.push({
             this.roleBaseList.push({
               label: item.roleName,
               label: item.roleName,
@@ -640,7 +640,7 @@ export default {
               disabled: false,
               disabled: false,
             })
             })
           })
           })
-      res.data
+
       }catch(e){
       }catch(e){
         console.log(e)
         console.log(e)
       }
       }
@@ -725,13 +725,12 @@ export default {
       if (type == 'update') {
       if (type == 'update') {
         let roleIdList = [...data.roleIds]
         let roleIdList = [...data.roleIds]
         this.roleBaseList.forEach(item=>{
         this.roleBaseList.forEach(item=>{
-          if(roleIdList.indexOf(item.id) == -1){
-            roleIdList.push(item.id)
+          if(roleIdList.indexOf(item.value) == -1){
+            roleIdList.push(item.value)
           }
           }
         })
         })
         this.roleResetList = []
         this.roleResetList = []
         this.roleList.forEach(role=>{
         this.roleList.forEach(role=>{
-          console.log(role)
           if(roleIdList.indexOf(role.value) != -1){
           if(roleIdList.indexOf(role.value) != -1){
             this.roleResetList.push(role)
             this.roleResetList.push(role)
           }
           }