fix: 需求池操作矩阵微调 + 来源管理 bug 修复
需求池:
- 已采纳状态去掉「删除」操作(推进后不应直接删除,要走拒绝路径)
来源管理:
- 清空预设 mock 数据(海底捞/西贝/喜茶/奈雪等 17 条),用户自己维护
- 修复新建需求选「新建的来源对象」时显示数字 ID bug:
原因是 RequirementModal 里 <option value={t.id}> 存了 ID,但 mock
和详情页直接读 sourceTarget 当名字展示,导致新建的对象只显示 ID。
改为 <option value={t.name}> 与 mock 数据格式对齐
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -390,8 +390,8 @@ function RequirementsPageContent() {
|
||||
关闭
|
||||
</button>
|
||||
)}
|
||||
{/* 删除:待评审/已采纳/已拒绝/已关闭 */}
|
||||
{(['pending_review', 'adopted', 'rejected', 'closed'] as const).includes(req.status as any) && (
|
||||
{/* 删除:待评审/已拒绝/已关闭(已采纳后不能直接删,需走拒绝) */}
|
||||
{(['pending_review', 'rejected', 'closed'] as const).includes(req.status as any) && (
|
||||
<button
|
||||
onClick={() => deleteRequirement(req.id)}
|
||||
className="h-6 px-2 rounded text-[11px] font-medium text-red-500 hover:bg-red-50 transition-colors"
|
||||
|
||||
Reference in New Issue
Block a user