feat: Bot KPI管理体系 — bot_source字段 + 11个财务Bot KPI + Bot KPI看板
- 新增 bot_source 字段到 kpi_definitions 表(DB迁移 + 模型字段) - 创建 bot_kpis.py API(GET /api/cma/bot-kpis + POST .../value) - 种子脚本 seed_finance_bot_kpis.py 插入11个财务Bot KPI - BotKpiDashboard.vue 看板组件(三区:核心产出5/质量3/用户反馈3) - 路由 /bot-kpis + 侧边栏菜单入口 - 复用五档评分引擎
This commit is contained in:
@@ -72,6 +72,7 @@ class KPIDefinition(Base):
|
||||
responsible_dept = Column(String(200), nullable=True, comment="负责部门")
|
||||
responsible_user = Column(String(100), nullable=True, comment="负责人")
|
||||
status = Column(String(20), default="active")
|
||||
bot_source = Column(String(50), nullable=True, comment="Bot标识: finance-bot/ops-bot等")
|
||||
epic = Column(String(50), default="Epic2", comment="所属Epic")
|
||||
created_by = Column(Integer, nullable=True)
|
||||
created_at = Column(DateTime, server_default=func.now())
|
||||
|
||||
Reference in New Issue
Block a user