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