feat: 支持 ITTO 明细功能

- 更新类型定义,支持 ProcessRef(字符串或对象)
- 添加 DetailItem 和 ProcessEntityUse 接口
- 为 P1.2(制定项目管理计划)添加工具明细示例
  - 数据收集:头脑风暴、核对单、焦点小组、访谈
  - 人际关系与团队技能:冲突管理、引导、会议管理
- 更新数据查询函数,支持新数据结构
- 更新前端展示,支持明细显示(带缩进和项目符号)
- 修复 ProcessGraphPage 类型错误

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
This commit is contained in:
ittoview
2026-02-14 13:49:42 +00:00
parent 3c1451ca3f
commit 145e6e7549
5 changed files with 163 additions and 34 deletions

View File

@@ -36,6 +36,23 @@ export interface Process5W1H {
how: string; // 如何执行(关键方法)
}
// 明细项
export interface DetailItem {
id?: string; // 可选:若明细在工具库里注册,可复用该 ID
label: string; // 明细名称
description?: string; // 明细描述
}
// 过程实体使用(支持明细)
export interface ProcessEntityUse {
id: string; // 实体ID工件/工具ID
detail?: DetailItem[]; // 明细列表
note?: string; // 针对此过程的补充说明
}
// 过程引用类型字符串ID 或 带明细的对象)
export type ProcessRef = string | ProcessEntityUse;
// 过程
export interface Process {
id: string; // 如 "P4.1"
@@ -45,9 +62,9 @@ export interface Process {
knowledgeAreaId: string; // 所属知识领域ID
processGroupId: string; // 所属过程组ID
order: number; // 在知识领域内的序号
inputs: string[]; // 输入工件ID列表
tools: string[]; // 工具与技术ID列表
outputs: string[]; // 输出工件ID列表
inputs: ProcessRef[]; // 输入工件ID列表(支持明细)
tools: ProcessRef[]; // 工具与技术ID列表(支持明细)
outputs: ProcessRef[]; // 输出工件ID列表(支持明细)
w5h1?: Process5W1H; // 5W1H记忆辅助信息
}