feat: 所有表单的部门/负责人改为下拉框(自动读取组织+用户数据)

- KPI详情: 负责部门+负责人 el-input→el-select filterable
- KPI字典: 新建/编辑/模板实例化 三处同步修改
- 改善行动: 负责人筛选+表单 从userApi.list加载
- 预警中心: 指派人+负责人 从userApi.list加载
- api/index.ts新增orgApi封装
This commit is contained in:
Hermes CI Fix
2026-07-29 18:25:08 +08:00
parent cffb15e8dc
commit 189f442da4
5 changed files with 94 additions and 25 deletions
+9 -1
View File
@@ -437,7 +437,15 @@ async function loadUsers() {
const r: any = await userApi.list()
const d = r.data || []
if (Array.isArray(d)) {
userOptions.value = d.map((u: any) => u.name || u.username).filter(Boolean)
const seen = new Set<string>()
userOptions.value = d
.map((u: any) => u.name || u.username)
.filter(Boolean)
.filter((name: string) => {
if (seen.has(name)) return false
seen.add(name)
return true
})
}
} catch {}
}