浏览代码

Merge branch 'ol_12_30' into test

mo 3 年之前
父节点
当前提交
6c54369a86
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      src/views/categroyManager/insideSetting/staffManager.vue

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

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