角色管理增加资料中心树结构
This commit is contained in:
@@ -406,6 +406,7 @@ export default {
|
||||
type: '', // 新增/编辑状态
|
||||
addRoleTitle: '',
|
||||
SuperiorRoleData: {},
|
||||
selectype:[],
|
||||
nodeList3: [],
|
||||
SuperiorRoleModel: false,
|
||||
addFormRules: {
|
||||
@@ -440,7 +441,9 @@ export default {
|
||||
treeData4: [],
|
||||
defaultProps3: {
|
||||
children: 'children',
|
||||
label: 'menuName'
|
||||
label: function (a,b){
|
||||
return a.label = a.name || a.menuName
|
||||
}
|
||||
},
|
||||
nodeList2: [],
|
||||
btnLoading: false,
|
||||
@@ -641,9 +644,11 @@ export default {
|
||||
async getTreeAsync(){
|
||||
let tsResource = await this.getTree3()
|
||||
let sarMenuStandard = await this.getTree4()
|
||||
let zlStandard = await this.getTree5()
|
||||
|
||||
let list1 = []
|
||||
let list2 = []
|
||||
let list3 = []
|
||||
if(tsResource && tsResource.ok && tsResource.data){
|
||||
list1 = tsResource.data
|
||||
}
|
||||
@@ -652,8 +657,12 @@ export default {
|
||||
list2 = sarMenuStandard.data
|
||||
}
|
||||
|
||||
if(list2.length > 0){
|
||||
list1 = list1.concat(list2)
|
||||
if(zlStandard && zlStandard.ok && zlStandard.data){
|
||||
list3 = zlStandard.data
|
||||
}
|
||||
|
||||
if(list2.length > 0 && list3.length > 0){
|
||||
list1 = list1.concat(list2,list3)
|
||||
}
|
||||
|
||||
if(list1.length > 0){
|
||||
@@ -693,6 +702,16 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
getTree5(res,json) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$http.get('fileMaterialCenter/zlTree/permissConfig', {}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
const history = res;
|
||||
resolve(history)
|
||||
})
|
||||
})
|
||||
},
|
||||
confirmDialogData() {
|
||||
this.btnLoading = true
|
||||
this.$http.postData('sarRole/role/resource', {
|
||||
|
||||
Reference in New Issue
Block a user