Przeglądaj źródła

fix(miniapp): 恢复心智维度页 DAN 报告模板块(72f6e0693 误删,参照 wisdom-detail)

- mind-detail/index.vue 补回 DAN 报告列表模板(v-for danReports + 查看详情/上传入口)
- JS 方法 loadDanReports/goDanUpload/viewDanReport 与 CSS 一直在,仅模板缺失导致采集内容不显示
- 与 wisdom-detail L167-184 同构
Xiaogang Liao 1 tydzień temu
rodzic
commit
26e7fef3d5
1 zmienionych plików z 21 dodań i 0 usunięć
  1. 21 0
      cfc-frontend/pages/mind-detail/index.vue

+ 21 - 0
cfc-frontend/pages/mind-detail/index.vue

@@ -149,6 +149,27 @@
           </view>
         </view>
 
+
+        <!-- ===== DAN 报告(登录后) ===== -->
+        <view class="section" v-if="isLoggedIn">
+          <view class="section-header">
+            <text class="section-title">📊 DAN 报告</text>
+            <text class="section-more" @click="goDanUpload('mind')">上传 +</text>
+          </view>
+          <view class="dan-card" v-for="report in danReports" :key="report.id" @click="viewDanReport(report)">
+            <view class="dan-card-header">
+              <text class="dan-report-date">{{ formatDate(report.assessmentDate) }}</text>
+              <text :class="['dan-status', report.draftStatus === 'confirmed' ? 'confirmed' : 'pending']">
+                {{ report.draftStatus === 'confirmed' ? '已确认' : '待确认' }}
+              </text>
+            </view>
+            <text class="dan-report-desc">DAN A2 心维度测评报告</text>
+          </view>
+          <view class="dan-empty" v-if="danReports.length === 0">
+            <text class="dan-empty-text">暂无 DAN 报告,点击上方「上传 +」上传测评报告</text>
+          </view>
+        </view>
+
         <!-- 肠脑轴情绪卡片 -->
         <view class="section" v-if="gutIndicators && gutIndicators.length > 0">
           <view class="section-header">