fix: KPI分类英文改中文+补全缺失分类映射

This commit is contained in:
Hermes CI Fix
2026-07-19 16:55:29 +08:00
parent 56067261ad
commit 2b99b143a8
+5 -4
View File
@@ -392,8 +392,9 @@ const CAT_MAP: Record<string, string> = {
revenue_growth: '收入增长', profitability: '盈利水平', cost_control: '成本费用', revenue_growth: '收入增长', profitability: '盈利水平', cost_control: '成本费用',
asset_efficiency: '资产效率', cash_risk: '现金流风控', asset_efficiency: '资产效率', cash_risk: '现金流风控',
customer_scale: '客户规模', customer_concentration: '客户集中度', customer_satisfaction: '客户满意', customer_scale: '客户规模', customer_concentration: '客户集中度', customer_satisfaction: '客户满意',
supply_chain: '供应链效率', delivery_quality: '交付质量', supply_chain: '供应链效率', delivery_quality: '交付质量', customer_mgmt: '客户管理', regulatory: '法规与社会',
talent_pipeline: '人才梯队', employee_engagement: '员工敬业', innovation: '创新改善', talent_pipeline: '人才梯队', employee_engagement: '员工敬业', innovation_capability: '创新资本',
r_and_d: '研发管理',
} }
const FREQ_MAP: Record<string, string> = { daily: '日', weekly: '周', monthly: '月', quarterly: '季', yearly: '年' } const FREQ_MAP: Record<string, string> = { daily: '日', weekly: '周', monthly: '月', quarterly: '季', yearly: '年' }
const SOURCE_MAP: Record<string, string> = { erp: 'ERP', excel: 'Excel', manual: '手工' } const SOURCE_MAP: Record<string, string> = { erp: 'ERP', excel: 'Excel', manual: '手工' }
@@ -402,8 +403,8 @@ const SOURCE_MAP: Record<string, string> = { erp: 'ERP', excel: 'Excel', manual:
const DIM_CAT_MAP: Record<string, string[]> = { const DIM_CAT_MAP: Record<string, string[]> = {
finance: ['revenue_growth', 'profitability', 'cost_control', 'asset_efficiency', 'cash_risk'], finance: ['revenue_growth', 'profitability', 'cost_control', 'asset_efficiency', 'cash_risk'],
customer: ['customer_scale', 'customer_concentration', 'customer_satisfaction'], customer: ['customer_scale', 'customer_concentration', 'customer_satisfaction'],
process: ['supply_chain', 'delivery_quality'], process: ['supply_chain', 'delivery_quality', 'customer_mgmt', 'regulatory', 'r_and_d'],
learning: ['talent_pipeline', 'employee_engagement', 'innovation'], learning: ['talent_pipeline', 'employee_engagement', 'innovation_capability'],
} }
// 二级类别选项(联动维度) // 二级类别选项(联动维度)