Просмотр исходного кода

feat(frontend): 报告详情页支持 mode=edit 参数直入编辑模式

列表点击肠道菌群报告时跳过查看过渡页,直接以编辑模式进入表单。
仅 reportType=gut_flora 生效,draft 流程不受影响。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
liaoxg 1 месяц назад
Родитель
Сommit
26a031153b
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      cfc-frontend/pages/health/report-detail.vue

+ 4 - 0
cfc-frontend/pages/health/report-detail.vue

@@ -527,6 +527,10 @@ export default {
       this.pageMode = 'draft'
       this.parseByDraftId()
     } else if (this.reportId) {
+      // 列表直入编辑模式:跳过查看过渡页(仅肠道菌群报告支持编辑)
+      if (options.mode === 'edit' && this.reportType === 'gut_flora') {
+        this.pageMode = 'edit'
+      }
       this.loadData()
     }
   },