功能变化: 优化角色管理中部门显示不全问题

pull/79/head
李强 2022-11-13 10:14:51 +08:00
parent 9a8e3a79fd
commit 1a9cca1308
2 changed files with 11 additions and 3 deletions

View File

@ -13,6 +13,14 @@ export function GetList (query) {
})
}
export function GetListAll (query) {
return request({
url: urlPrefix + 'all_dept/',
method: 'get',
params: query
})
}
/**
* 新增
*/

View File

@ -163,7 +163,7 @@ export default {
},
{
value: 4,
label: '自定数据权限'
label: '自定数据权限'
}
],
dataAuthorizationTips: '授权用户可操作的数据范围',
@ -212,8 +212,8 @@ export default {
},
//
getDeptData () {
deptApi.GetList({ status: 1 }).then(ret => {
this.deptOptions = ret.data.data
deptApi.GetListAll().then(ret => {
this.deptOptions = XEUtils.toArrayTree(ret.data, { parentKey: 'parent', strict: false })
})
},
//