|
|
@ -86,7 +86,7 @@ |
|
|
|
ref="whistleDeptListTree" |
|
|
|
accordion |
|
|
|
show-checkbox |
|
|
|
check-strictly=true> |
|
|
|
:check-strictly="true"> |
|
|
|
</el-tree> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -166,9 +166,9 @@ export default { |
|
|
|
this.getMenuList(), |
|
|
|
this.getDeptList(), |
|
|
|
this.getAppMenuList(), |
|
|
|
this.getCategoryList(), |
|
|
|
this.getWhistleDeptList(), |
|
|
|
this.getAnalysisMenuList() |
|
|
|
this.getCategoryList() |
|
|
|
// this.getWhistleDeptList() |
|
|
|
// this.getAnalysisMenuList() |
|
|
|
]).then(() => { |
|
|
|
if (this.dataForm.id) { |
|
|
|
this.getInfo() |
|
|
@ -192,24 +192,27 @@ export default { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.deptList = res.data |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
// 获取吹哨部门列表 |
|
|
|
getWhistleDeptList () { |
|
|
|
return this.$http.get('/sys/dept/list').then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
// 吹哨部门列表与全部部门列表相同 |
|
|
|
this.whistleDeptList = res.data |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
// 获取吹哨部门列表 |
|
|
|
// getWhistleDeptList () { |
|
|
|
// return this.$http.get('/sys/dept/list').then(({ data: res }) => { |
|
|
|
// if (res.code !== 0) { |
|
|
|
// return this.$message.error(res.msg) |
|
|
|
// } |
|
|
|
// this.whistleDeptList = res.data |
|
|
|
// }).catch(() => { }) |
|
|
|
// }, |
|
|
|
// 获取App菜单列表 |
|
|
|
getAppMenuList () { |
|
|
|
return this.$http.get('/sys/appmenu/select').then(({ data: res }) => { |
|
|
|
return this.$http.get('/sys/appmenu/v2/select').then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.appMenuList = res.data |
|
|
|
this.appMenuList = res.data.workMenu |
|
|
|
this.analysisMenuList = res.data.analysisMenu |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
// 获取项目处理类型授权 |
|
|
@ -221,14 +224,14 @@ export default { |
|
|
|
this.categoryList = res.data |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
getAnalysisMenuList () { |
|
|
|
return this.$http.get('/sys/analysismenu/select').then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.analysisMenuList = res.data |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
// getAnalysisMenuList () { |
|
|
|
// return this.$http.get('/sys/analysismenu/select').then(({ data: res }) => { |
|
|
|
// if (res.code !== 0) { |
|
|
|
// return this.$message.error(res.msg) |
|
|
|
// } |
|
|
|
// this.analysisMenuList = res.data |
|
|
|
// }).catch(() => { }) |
|
|
|
// }, |
|
|
|
// 获取信息 |
|
|
|
getInfo () { |
|
|
|
this.$http.get(`/sys/role/${this.dataForm.id}`).then(({ data: res }) => { |
|
|
|