|
@@ -262,18 +262,18 @@ onMounted(() => {
|
|
const getSelector = () => {
|
|
const getSelector = () => {
|
|
//获取角色岗位选项
|
|
//获取角色岗位选项
|
|
getParams().then((res) => {
|
|
getParams().then((res) => {
|
|
- const roles = res.data.roleList ?? []
|
|
|
|
- const roleAccess = res.data.roleAccess ?? []
|
|
|
|
|
|
+ const roles = res.roleList ?? []
|
|
|
|
+ const roleAccess = res.roleAccess ?? []
|
|
roles.map((item: any) => {
|
|
roles.map((item: any) => {
|
|
if (!roleAccess.includes(item.id)) {
|
|
if (!roleAccess.includes(item.id)) {
|
|
item.disabled = true
|
|
item.disabled = true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
state.roleList = proxy.handleTree(roles ?? [], 'id', 'pid', 'children', true)
|
|
state.roleList = proxy.handleTree(roles ?? [], 'id', 'pid', 'children', true)
|
|
- state.postList = res.data.posts ?? []
|
|
|
|
|
|
+ state.postList = res.posts ?? []
|
|
})
|
|
})
|
|
getDeptTree().then((res) => {
|
|
getDeptTree().then((res) => {
|
|
- state.deptData = res.data.deps
|
|
|
|
|
|
+ state.deptData = res.deps
|
|
})
|
|
})
|
|
}
|
|
}
|
|
const onSubmit = () => {
|
|
const onSubmit = () => {
|