Browse Source

菜单权限增加内控、拆分

duy 2 years ago
parent
commit
a3fe1fb010
2 changed files with 7 additions and 3 deletions
  1. 5 2
      src/api/system/role.js
  2. 2 1
      src/views/authority/role.vue

+ 5 - 2
src/api/system/role.js

@@ -18,7 +18,7 @@ export const grantTree = () => {
   })
   })
 }
 }
 
 
-export const grant = (roleIds, menuIds, menuClientIds,menuArchivesIds, dataScopeIds, apiScopeIds, tableOwners) => {
+export const grant = (roleIds, menuIds, menuClientIds,menuArchivesIds,menuHacIds,menularIds, dataScopeIds, apiScopeIds, tableOwners) => {
   return request({
   return request({
     url: '/api/blade-system/role/grant',
     url: '/api/blade-system/role/grant',
     method: 'post',
     method: 'post',
@@ -27,9 +27,12 @@ export const grant = (roleIds, menuIds, menuClientIds,menuArchivesIds, dataScope
       menuIds,
       menuIds,
       menuClientIds,
       menuClientIds,
       menuArchivesIds,
       menuArchivesIds,
+      menuHacIds,
+      menularIds,
       tableOwners,
       tableOwners,
       dataScopeIds,
       dataScopeIds,
-      apiScopeIds
+      apiScopeIds,
+
     }
     }
   })
   })
 }
 }

+ 2 - 1
src/views/authority/role.vue

@@ -311,6 +311,7 @@
         return ids.join(",");
         return ids.join(",");
       },
       },
       idsArray() {
       idsArray() {
+        console.log(this.selectionList,'this.selectionList');
         let ids = [];
         let ids = [];
         this.selectionList.forEach(ele => {
         this.selectionList.forEach(ele => {
           ids.push(ele.id);
           ids.push(ele.id);
@@ -481,7 +482,7 @@
           .then(res => {
           .then(res => {
             this.menuGrantList = res.data.data.menu;
             this.menuGrantList = res.data.data.menu;
             this.archivesMenuList= res.data.data.archivesMenu;
             this.archivesMenuList= res.data.data.archivesMenu;
-            this.larMenuList= res.data.data.alarMenu;
+            this.larMenuList= res.data.data.larMenu;
             this.hacMenuList=res.data.data.hacMenu;
             this.hacMenuList=res.data.data.hacMenu;
             this.menuClientList = res.data.data.usermenu;
             this.menuClientList = res.data.data.usermenu;
             this.tableOwnerList = res.data.data.tableOwners;
             this.tableOwnerList = res.data.data.tableOwners;