feat:部门选择

This commit is contained in:
houjunxiang
2025-12-01 17:02:40 +08:00
parent 298503fec8
commit b7a94c91fe
3 changed files with 12 additions and 3 deletions

View File

@@ -149,6 +149,7 @@ http.interceptors.response.use(
if (companyDeptList.length === 1) {
const item = companyDeptList[0]
if (!config.header[COMPANY_DEPT_RETRY_HEADER]) {
$store('company-dept').showSelectDept = false
applyCompanyDeptSelection(item, config)
return http.request(config)
}
@@ -159,6 +160,7 @@ http.interceptors.response.use(
})
return Promise.resolve(data)
} else if (companyDeptList.length > 1) {
$store('company-dept').showSelectDept = true
const groupedList = normalizeCompanyDeptList(companyDeptList)
const companyDeptDialogStore = $store('company-dept')
return new Promise(resolve => {