Files
cn-rdms-web/src/views/product/dashboard/mock.ts

61 lines
1.9 KiB
TypeScript
Raw Normal View History

import type {
ProductHomepageExtensionModule,
ProductRequirementPoolRecentChangeSource,
ProductRequirementPoolSummarySource
} from './homepage';
export const productRequirementPoolMock = {
summary: {
total: 18,
todo: 3,
analyzing: 5,
planned: 6,
done: 4,
highPriorityTodo: 2
} satisfies ProductRequirementPoolSummarySource,
recentChanges: [
{
id: 'req-1001',
title: '支持产品资料标签归档',
actionLabel: '新增需求',
time: '2026-04-22 16:20:00',
statusLabel: '待处理'
},
{
id: 'req-1002',
title: '统一需求池状态颜色',
actionLabel: '状态流转',
time: '2026-04-23 11:00:00',
statusLabel: '分析中'
},
{
id: 'req-1003',
title: '补充对象首页需求池统计接口',
actionLabel: '关闭需求',
time: '2026-04-23 14:30:00',
statusLabel: '已完成'
}
] satisfies ProductRequirementPoolRecentChangeSource[]
};
export const productHomepageExtensionMock = [
{
key: 'milestone',
title: '里程碑',
description: '当前先承接产品对象下的版本节点与阶段目标,后续接真实里程碑聚合接口。',
items: ['对象首页改版验收', '需求池统计接口接入', '产品资料结构梳理']
},
{
key: 'risk',
title: '风险点管理',
description: '预留给跨需求、跨团队的产品级风险摘要,避免把风险信息挤进时间线。',
items: ['需求池真实接口尚未接入', '对象首页长期指标来源待统一', '团队调整记录缺少专用日志接口']
},
{
key: 'document',
title: '产品资料',
description: '用于承接产品说明、制度文档、对外资料等对象档案信息,当前先保留正式结构位。',
items: ['产品定位说明', '对象上下文使用说明', '需求池维护约定']
}
] satisfies ProductHomepageExtensionModule[];