Compare commits
No commits in common. "d13ae033551bc857725287e1d9cba72d6259d61d" and "32e8428f46e1553a8f5e61ed719f3657f2fe033c" have entirely different histories.
d13ae03355
...
32e8428f46
@ -917,7 +917,7 @@ const init = async () => {
|
|||||||
depTreeMyList.value = []
|
depTreeMyList.value = []
|
||||||
crumbs.value = []
|
crumbs.value = []
|
||||||
|
|
||||||
await getDepsTreeMy2(state.chooseMode)
|
await getDepsTreeMy2()
|
||||||
if (depTreeMyList.value.length) {
|
if (depTreeMyList.value.length) {
|
||||||
if (state.chooseMode === 1) {
|
if (state.chooseMode === 1) {
|
||||||
// 部门选择模式才创建 all 节点
|
// 部门选择模式才创建 all 节点
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -38,35 +38,33 @@ export const useGroupTypeStore = createGlobalState(() => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// userInfo?.value?.ID
|
// userInfo?.value?.ID
|
||||||
const getDepsTreeMy2 = async (chooseMode) => {
|
const getDepsTreeMy2 = async () => {
|
||||||
let params = { nowUserId: 0 }
|
|
||||||
if (chooseMode === 1) {
|
|
||||||
const isHasRes = await userHasPermission({
|
const isHasRes = await userHasPermission({
|
||||||
erpUserId: userInfo?.value?.ID,
|
erpUserId: userInfo?.value?.ID,
|
||||||
ruleUrl: [
|
ruleUrl: [
|
||||||
'auth_chat_app_create_all_dept',
|
"auth_chat_app_create_all_dept",
|
||||||
'auth_chat_app_create_limit_dept',
|
"auth_chat_app_create_limit_dept"
|
||||||
],
|
]
|
||||||
})
|
})
|
||||||
|
let pramas = { nowUserId : 0 }
|
||||||
if (isHasRes.code === 200) {
|
if (isHasRes.code === 200) {
|
||||||
if (isHasRes.data.auth_chat_app_create_all_dept) {
|
if (isHasRes.data.auth_chat_app_create_all_dept) {
|
||||||
params = {
|
pramas = {
|
||||||
nowUserId: 0,
|
nowUserId : 0
|
||||||
}
|
}
|
||||||
} else{
|
} else{
|
||||||
if (isHasRes.data.auth_chat_app_create_limit_dept) {
|
if (isHasRes.data.auth_chat_app_create_limit_dept) {
|
||||||
params = {
|
pramas = {
|
||||||
nowUserId: userInfo?.value?.ID,
|
nowUserId : userInfo?.value?.ID
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
params = {
|
pramas = {
|
||||||
nowUserId: 0,
|
nowUserId : 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
const res = await departmentV2TreeAll2(pramas)
|
||||||
const res = await departmentV2TreeAll2(params)
|
|
||||||
if (res.status === 0) {
|
if (res.status === 0) {
|
||||||
depTreeMyList.value = res.data.nodes
|
depTreeMyList.value = res.data.nodes
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user