|
@@ -69,7 +69,8 @@
|
|
|
>
|
|
|
</el-tree>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="档案菜单权限">
|
|
|
+
|
|
|
+ <el-tab-pane label="档案菜单权限">
|
|
|
<el-tree
|
|
|
:data="archivesMenuList"
|
|
|
show-checkbox
|
|
@@ -80,6 +81,30 @@
|
|
|
>
|
|
|
</el-tree>
|
|
|
</el-tab-pane>
|
|
|
+
|
|
|
+ <el-tab-pane label="内控菜单权限">
|
|
|
+ <el-tree
|
|
|
+ :data="hacMenuList"
|
|
|
+ show-checkbox
|
|
|
+ node-key="id"
|
|
|
+ ref="treeHacMenu"
|
|
|
+ :default-checked-keys="hacmenuObj"
|
|
|
+ :props="props"
|
|
|
+ >
|
|
|
+ </el-tree>
|
|
|
+ </el-tab-pane>
|
|
|
+
|
|
|
+ <el-tab-pane label="征拆菜单权限">
|
|
|
+ <el-tree
|
|
|
+ :data="larMenuList"
|
|
|
+ show-checkbox
|
|
|
+ node-key="id"
|
|
|
+ ref="treelarMenu"
|
|
|
+ :default-checked-keys="larmenuObj"
|
|
|
+ :props="props"
|
|
|
+ >
|
|
|
+ </el-tree>
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="表单权限">
|
|
|
<el-tree
|
|
|
:data="tableOwnerList"
|
|
@@ -148,6 +173,8 @@
|
|
|
},
|
|
|
menuGrantList: [],
|
|
|
archivesMenuList:[],
|
|
|
+ larMenuList:[],
|
|
|
+ hacMenuList:[],
|
|
|
dataScopeGrantList: [],
|
|
|
menuClientList: [],
|
|
|
apiScopeGrantList: [],
|
|
@@ -156,6 +183,8 @@
|
|
|
menuTreeObj: [],
|
|
|
menuClientObj: [],
|
|
|
archivesmenuObj:[],
|
|
|
+ larmenuObj:[],
|
|
|
+ hacmenuObj:[],
|
|
|
tableOwnerObj: [],
|
|
|
dataScopeTreeObj: [],
|
|
|
apiScopeTreeObj: [],
|
|
@@ -306,9 +335,13 @@
|
|
|
const menuList = this.$refs.treeMenu.getCheckedKeys();
|
|
|
const menuClientList = this.$refs.treeClientMenu.getCheckedKeys();
|
|
|
const menuArchivesList = this.$refs.treeArchivestMenu.getCheckedKeys();
|
|
|
+ const menuHacList=this.$refs.treeHacMenu.getCheckedKeys();
|
|
|
+ const menuLarList= this.$refs.treelarMenu.getCheckedKeys();
|
|
|
const menuListHanlf = this.$refs.treeMenu.getHalfCheckedKeys();
|
|
|
const menuClientListHanlf = this.$refs.treeClientMenu.getHalfCheckedKeys();
|
|
|
const menuArchivesListHalf = this.$refs.treeArchivestMenu.getHalfCheckedKeys();
|
|
|
+ const menuLarsListHalf = this.$refs.treelarMenu.getHalfCheckedKeys();
|
|
|
+ const menuHacListHalf = this.$refs.treeHacMenu.getHalfCheckedKeys();
|
|
|
const dataScopeList = this.$refs.treeDataScope.getCheckedKeys();
|
|
|
const apiScopeList = this.$refs.treeApiScope.getCheckedKeys();
|
|
|
const tableOwnersList = this.$refs.tableOwners.getCheckedKeys();
|
|
@@ -316,6 +349,8 @@
|
|
|
let menuAll = [];
|
|
|
let menuClientAll = [];
|
|
|
let menuArchivesAll = [];
|
|
|
+ let menuHacAll = [];
|
|
|
+ let menuLarAll = [];
|
|
|
menuList.forEach((id)=>{
|
|
|
menuAll.push(id+'---all')
|
|
|
})
|
|
@@ -336,8 +371,20 @@
|
|
|
menuArchivesAll.push(id+'---hanlf')
|
|
|
})
|
|
|
|
|
|
+ menuHacList.forEach((id)=>{
|
|
|
+ menuHacAll.push(id+'---all')
|
|
|
+ })
|
|
|
+ menuHacListHalf.forEach((id)=>{
|
|
|
+ menuHacAll.push(id+'---hanlf')
|
|
|
+ })
|
|
|
|
|
|
- grant(this.idsArray, menuAll, menuClientAll,menuArchivesAll, dataScopeList, apiScopeList, tableOwnersList).then(() => {
|
|
|
+ menuLarList.forEach((id)=>{
|
|
|
+ menuLarAll.push(id+'---all')
|
|
|
+ })
|
|
|
+ menuLarsListHalf.forEach((id)=>{
|
|
|
+ menuLarAll.push(id+'---hanlf')
|
|
|
+ })
|
|
|
+ grant(this.idsArray, menuAll, menuClientAll,menuArchivesAll,menuHacAll,menuLarAll, dataScopeList, apiScopeList, tableOwnersList).then(() => {
|
|
|
this.box = false;
|
|
|
this.$message({
|
|
|
type: "success",
|
|
@@ -425,6 +472,8 @@
|
|
|
this.menuTreeObj = [];
|
|
|
this.menuClientObj = [];
|
|
|
this.archivesmenuObj=[];
|
|
|
+ this.larmenuObj=[]
|
|
|
+ this.hacmenuObj=[];
|
|
|
this.dataScopeTreeObj = [];
|
|
|
this.apiScopeTreeObj = [];
|
|
|
this.tableOwnerObj = [];
|
|
@@ -432,6 +481,8 @@
|
|
|
.then(res => {
|
|
|
this.menuGrantList = res.data.data.menu;
|
|
|
this.archivesMenuList= res.data.data.archivesMenu;
|
|
|
+ this.larMenuList= res.data.data.alarMenu;
|
|
|
+ this.hacMenuList=res.data.data.hacMenu;
|
|
|
this.menuClientList = res.data.data.usermenu;
|
|
|
this.tableOwnerList = res.data.data.tableOwners;
|
|
|
this.dataScopeGrantList = res.data.data.dataScope;
|
|
@@ -448,15 +499,21 @@
|
|
|
|
|
|
let menuClientObj = [];
|
|
|
let archivesmenuObj=[];
|
|
|
+ let larmenuObj=[]
|
|
|
+ let hacmenuObj=[]
|
|
|
res.data.data.usermenu.forEach((item)=>{
|
|
|
let arr = item.split("---");
|
|
|
if(arr[1] == 'all'){
|
|
|
menuClientObj.push(arr[0])
|
|
|
archivesmenuObj.push(arr[0])
|
|
|
+ hacmenuObj.push(arr[0])
|
|
|
+ larmenuObj.push(arr[0])
|
|
|
}
|
|
|
});
|
|
|
this.menuClientObj = menuClientObj;
|
|
|
this.archivesmenuObj=archivesmenuObj
|
|
|
+ this.hacmenuObj=hacmenuObj
|
|
|
+ this.larmenuObj=larmenuObj
|
|
|
|
|
|
this.tableOwnerObj = res.data.data.tableOwners;
|
|
|
this.dataScopeTreeObj = res.data.data.dataScope;
|