wangsisi 4 дней назад
Родитель
Сommit
a18a78d201

+ 14 - 10
src/views/old_mini/agri_file/index.vue

@@ -482,17 +482,21 @@ async function fetchReportList() {
             cover,
         },
     ].filter((item) => item.title || item.desc);
+    
+    if(abnormalReports?.id){
+        const abnormalList = [{
+            id: `abnormal-${abnormalReports.id}`,
+            reportId: abnormalReports.id,
+            type: "abnormal_report",
+            title: "异常农情诊断报告",
+            desc: abnormalReports.explain_simple || "",
+            cover,
+        }]
+        reportList.value = [...baseList, ...abnormalList];
+    }else{
+        reportList.value = baseList;
+    }
 
-    const abnormalList = [{
-        id: `abnormal-${abnormalReports.id}`,
-        reportId: abnormalReports.id,
-        type: "abnormal_report",
-        title: "异常农情诊断报告",
-        desc: abnormalReports.explain_simple || "",
-        cover,
-    }]
-
-    reportList.value = [...baseList, ...abnormalList];
 }
 
 const showUploadPopup = ref(false);

+ 4 - 4
src/views/old_mini/growth_report/alert_detail.vue

@@ -6,7 +6,7 @@
             :class="{ 'alert-detail-body--with-bar': detailType === 'stress' }"
             v-loading="loading"
         >
-            <!-- 综合研判:interact_explain + crop_name / phenophase_desc / risk_desc|stress_desc / soil_desc -->
+            <!-- 综合研判:interact_explain + crop_name / phenophase_desc / stress_desc|stress_desc / soil_desc -->
             <div class="section-card" v-if="hasAnalysisSection">
                 <div class="section-card__title">综合研判</div>
                 <div v-if="analysis.summary" class="section-card__desc">{{ analysis.summary }}</div>
@@ -294,7 +294,7 @@ function applyRiskReport(data) {
     if (!data || typeof data !== "object") return;
     applyAnalysisPanel(data, {
         middleLabel: "气象预警",
-        middleValue: data.risk_desc,
+        middleValue: data.stress_desc,
     });
     applyResultAndAnalysis(data);
     importanceDesc.value = "";
@@ -305,7 +305,7 @@ function applyStressReport(data) {
     if (!data || typeof data !== "object") return;
     applyAnalysisPanel(data, {
         middleLabel: "当下胁迫",
-        middleValue: data.stress_desc || data.risk_desc,
+        middleValue: data.stress_desc || data.stress_desc,
     });
     applyResultAndAnalysis(data);
     adviceList.value = normalizeTitleDescList(data.farmwork_info);
@@ -317,7 +317,7 @@ function applyAbnormalReport(report) {
     reportTitle.value = report.title || "";
     applyAnalysisPanel(report, {
         middleLabel: "气象预警",
-        middleValue: report.risk_desc,
+        middleValue: report.stress_desc,
     });
     applyResultAndAnalysis(report);
     importanceDesc.value = "";