|
@@ -54,6 +54,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
@Resource
|
|
@Resource
|
|
|
private ObjectMapper objectMapper;
|
|
private ObjectMapper objectMapper;
|
|
|
```
|
|
```
|
|
|
|
|
+(`FamilyContextService` 目前未注入 `ObjectMapper`,需一并补上)
|
|
|
|
|
|
|
|
- [ ] **步骤 3:新增 buildContextFromDraft 方法**
|
|
- [ ] **步骤 3:新增 buildContextFromDraft 方法**
|
|
|
|
|
|
|
@@ -212,7 +213,7 @@ git commit -m "feat(frontend): api.js reportQuickAnalyze 新增可选 draftId
|
|
|
|
|
|
|
|
- [ ] **步骤 1:import 新增**
|
|
- [ ] **步骤 1:import 新增**
|
|
|
|
|
|
|
|
-第 329 行 import 行添加 `reportQuickAnalyze, getMyMembership`:
|
|
|
|
|
|
|
+第 335 行第一个 import 行添加 `reportQuickAnalyze, getMyMembership`:
|
|
|
```javascript
|
|
```javascript
|
|
|
import { getReportDetail, editHealthReport, queryKnowledgeBase, queryIndicatorKnowledge, getGutFloraAnalysis, confirmReportPreview, discardReportDraft, parseReportDraft, getHealthFoods, getFoodCautionList, getFamilyMemberList, addFamilyMember, reportQuickAnalyze, getMyMembership } from '../../utils/api.js'
|
|
import { getReportDetail, editHealthReport, queryKnowledgeBase, queryIndicatorKnowledge, getGutFloraAnalysis, confirmReportPreview, discardReportDraft, parseReportDraft, getHealthFoods, getFoodCautionList, getFamilyMemberList, addFamilyMember, reportQuickAnalyze, getMyMembership } from '../../utils/api.js'
|
|
|
```
|
|
```
|
|
@@ -303,7 +304,7 @@ import { getReportDetail, editHealthReport, queryKnowledgeBase, queryIndicatorKn
|
|
|
|
|
|
|
|
- [ ] **步骤 5:template 新增 FAB + 浮层**
|
|
- [ ] **步骤 5:template 新增 FAB + 浮层**
|
|
|
|
|
|
|
|
-在 `</scroll-view>` 之后(约 223 行),`<health-knowledge-popup>` 之前插入:
|
|
|
|
|
|
|
+在 `</scroll-view>` 之后(约 229 行),`<health-knowledge-popup>` 之前,且在编辑 FAB(✏️)之前插入:
|
|
|
```html
|
|
```html
|
|
|
<!-- 报告快速分析入口(仅查看模式,reportId 或 draftId 存在) -->
|
|
<!-- 报告快速分析入口(仅查看模式,reportId 或 draftId 存在) -->
|
|
|
<view class="quick-analyze-fab" v-if="!isEditing && (reportId || draftId)" @tap="openQuickAnalyze">
|
|
<view class="quick-analyze-fab" v-if="!isEditing && (reportId || draftId)" @tap="openQuickAnalyze">
|
|
@@ -367,9 +368,10 @@ git commit -m "feat(frontend): gut-flora-detail 新增报告快速分析浮层
|
|
|
|
|
|
|
|
- [ ] **步骤 1:import 新增**
|
|
- [ ] **步骤 1:import 新增**
|
|
|
|
|
|
|
|
-第 350 行 import 行添加 `reportQuickAnalyze, getMyMembership`:
|
|
|
|
|
|
|
+第 350-351 行两个 import 行,在第一行后添加 `reportQuickAnalyze, getMyMembership`:
|
|
|
```javascript
|
|
```javascript
|
|
|
import { confirmReportPreview, discardReportDraft, confirmTongue, discardTongue, parseReportDraft, reportQuickAnalyze, getMyMembership } from '../../utils/api.js'
|
|
import { confirmReportPreview, discardReportDraft, confirmTongue, discardTongue, parseReportDraft, reportQuickAnalyze, getMyMembership } from '../../utils/api.js'
|
|
|
|
|
+import { addFamilyMember, getFamilyMemberList } from '../../utils/api.js'
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
- [ ] **步骤 2:data 新增 quickAnalyze 对象**
|
|
- [ ] **步骤 2:data 新增 quickAnalyze 对象**
|
|
@@ -454,7 +456,7 @@ import { confirmReportPreview, discardReportDraft, confirmTongue, discardTongue,
|
|
|
|
|
|
|
|
- [ ] **步骤 5:template 新增 FAB + 浮层**
|
|
- [ ] **步骤 5:template 新增 FAB + 浮层**
|
|
|
|
|
|
|
|
-在 `</view>`(form-section 结束)之后、`<view class="bottom-spacer"></view>` 之前插入:
|
|
|
|
|
|
|
+在 `</view>`(form-section 结束,约 343 行)之后、`<view class="bottom-spacer"></view>`(约 345 行)之前插入:
|
|
|
```html
|
|
```html
|
|
|
<!-- 报告快速分析入口(解析完成、非解析中) -->
|
|
<!-- 报告快速分析入口(解析完成、非解析中) -->
|
|
|
<view class="quick-analyze-fab" v-if="!parsing && draftId" @tap="openQuickAnalyze">
|
|
<view class="quick-analyze-fab" v-if="!parsing && draftId" @tap="openQuickAnalyze">
|