fix(workbench): 我的工作台待办跳转直达行动方案详情 (plan_id定位) todo-jump-fix

- MyDashboard goToDetail: action_plan 跳转带 plan_id(原只跳列表丢ID,与KPI待办直达详情语义对齐)
- ActionPlanLibrary: 支持 route.query.plan_id 定位,onMounted loadData 后在列表 find 目标行并 viewDetail 直达详情弹窗
- 边界: plan_id 不存在/无权限/非plans tab → 静默不弹,保持原列表行为
This commit is contained in:
Hermes CI Fix
2026-08-31 15:34:13 +08:00
parent 79bc877f31
commit 26e0c8da53
2 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ function planTagType(p: any) {
function goToDetail(r: any) {
if (r.related_type === 'kpi') router.push('/kpis/' + r.related_id)
else if (r.related_type === 'action_plan') router.push('/action-plans')
else if (r.related_type === 'action_plan') router.push('/action-plans?plan_id=' + r.related_id)
}
onMounted(async () => {