Prechádzať zdrojové kódy

性能验证修复6704

zhonghuizhen 5 mesiacov pred
rodič
commit
6437e73d6c

+ 6 - 6
src/views/business/performNew/report/precision.vue

@@ -196,8 +196,8 @@ export default {
               title: k,
               header:reportDataDTO[k]?.header || this.getTableHeader(reportDataDTO[k]?.list) || '',
               hideHeader: this.$utils.isEmpty(reportDataDTO[k]?.header),
-              list: reportDataDTO[k].list,
-              note: reportDataDTO[k].note
+              list: reportDataDTO[k]?.list,
+              note: reportDataDTO[k]?.note
             }))
             .sort((a, b) => a.title.localeCompare(b.title))
         : []
@@ -205,10 +205,10 @@ export default {
         ? Object.keys(chartDataDTO)
             .map((k) => ({
               title: k,
-              id: chartDataDTO[k].name + this.pdf,
-              data: chartDataDTO[k].data,
-              note: chartDataDTO[k].note,
-              option: chartDataDTO[k].option
+              id: chartDataDTO[k]?.name + this.pdf,
+              data: chartDataDTO[k]?.data,
+              note: chartDataDTO[k]?.note,
+              option: chartDataDTO[k]?.option
             }))
             .sort((a, b) => a.title.localeCompare(b.title))
         : []

+ 7 - 4
src/views/business/performNew/xnyzReport.vue

@@ -56,15 +56,16 @@
           <basic-info :info="form" :readonly="true" />
           <reagent-info :info="form.reagentPoList" :readonly="true" />
           <param-info
-            v-if="form.shiYanCanShu"
-            :form-id="formId"
+            v-if="$utils.isNotEmpty(form.shiYanCanShu)"
+            :key="form.id"
+            :form-id="form.id"
             :info="form.shiYanCanShu"
             :config-data="form.configDetailPo.params || []"
             :readonly="true"
           />
           <experimental-data
             :exp="form.jiSuanJieGuo"
-            :form-id="formId"
+            :form-id="form.id"
             :readonly="true"
           />
           <precision
@@ -73,6 +74,7 @@
             :readonly="true"
           />
           <conclusion
+            :key="form.id"
             :result="form.shiYanJieLun"
             :files="form.fuJian"
             :readonly="true"
@@ -208,7 +210,7 @@ export default {
               references: []
             }
           }
-          
+
           formData.shiYanCanShu = formData.shiYanCanShu
             ? JSON.parse(formData.shiYanCanShu)
             : {}
@@ -236,6 +238,7 @@ export default {
           }
 
           this.form = formData
+          console.log('附件----',this.form.fuJian)
           // 获取配置详情
           if (formData.zhiBiaoId) {
             await this.getConfigData({ targetId: formData.zhiBiaoId, methodId: formData.fangFaId })