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
+5 -1
View File
@@ -631,7 +631,6 @@ async function loadAlerts() {
}
alerts.value = items
} catch (e) {}
try { const u: any = await userApi.list(); users.value = u.data || [] } catch (e) {}
loading.value = false
}
@@ -667,6 +666,10 @@ async function loadKpis() {
try { const r: any = await kpiApi.list(); kpiOptions.value = r.data || [] } catch (e) {}
}
async function loadUsers() {
try { const r: any = await userApi.list(); users.value = r.data || [] } catch (e) {}
}
// ── 风险矩阵 ──
const riskEntity = ref('hanke')
const riskData = ref<any>(null)
@@ -701,6 +704,7 @@ onMounted(() => {
loadRules()
loadPlans()
loadKpis()
loadUsers()
})
</script>