Browse Source

修改角色

tangning 3 years ago
parent
commit
5e9be5120d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/view/role/index.vue

+ 2 - 1
src/view/role/index.vue

@@ -230,6 +230,7 @@ export default {
           let res = await axios.get(detailRole+id, {roleId:id});
           let { roleName,perm,deptName} = res.data
           data.radioData = perm
+          data.checkedList = Object.keys(perm)
           data.newData = {
             ...data.newData,
             roleName,
@@ -365,7 +366,7 @@ export default {
         "id": id || '',
         "perm": {
           ...perm,
-          // ...this.radioData,
+          ...this.radioData,
         },
         "roleName": this.newData.roleName
       });