Browse Source

修复bug

zzs 3 months ago
parent
commit
63cd527679
1 changed files with 8 additions and 8 deletions
  1. 8 8
      ruoyi-ui/src/views/tender/tender1/components/CompEval.vue

+ 8 - 8
ruoyi-ui/src/views/tender/tender1/components/CompEval.vue

@@ -6,7 +6,7 @@
       <el-descriptions class="margin-top" title="" :column="2" border>
         <el-descriptions-item label="专家签到表">
           <div v-show="!isEdit">
-            <template v-if="!sSignSrc.tolowerCase().includes('.pdf')">
+            <template v-if="!(sSignSrc?.tolowerCase().includes('.pdf'))">
               <el-image v-show="sSignSrc" style="width: 100px; height: 100px" :src="sSignSrc"
                 :preview-src-list="[sSignSrc]"></el-image>
             </template>
@@ -20,7 +20,7 @@
         <el-descriptions-item label="审查表">
 
           <div v-show="!isEdit">
-            <template v-if="!sCensorSrc.tolowerCase().includes('.pdf')">
+            <template v-if="!(sCensorSrc?.tolowerCase().includes('.pdf'))">
               <el-image v-show="sCensorSrc" style="width: 100px; height: 100px" :src="sCensorSrc"
                 :preview-src-list="[sCensorSrc]"></el-image>
             </template>
@@ -33,7 +33,7 @@
         </el-descriptions-item>
         <el-descriptions-item label="评审表">
           <div v-show="!isEdit">
-            <template v-if="!sReviewSrc.tolowerCase().includes('.pdf')">
+            <template v-if="!(sReviewSrc?.tolowerCase().includes('.pdf'))">
               <el-image v-show="sReviewSrc" style="width: 100px; height: 100px" :src="sReviewSrc"
                 :preview-src-list="[sReviewSrc]"></el-image>
             </template>
@@ -46,7 +46,7 @@
         </el-descriptions-item>
         <el-descriptions-item label="最终汇总表">
           <div v-show="!isEdit">
-            <template v-if="!sSummarySrc.tolowerCase().includes('.pdf')">
+            <template v-if="!(sSummarySrc?.tolowerCase().includes('.pdf'))">
               <el-image v-show="sSummarySrc" style="width: 100px; height: 100px" :src="sSummarySrc"
                 :preview-src-list="[sSummarySrc]"></el-image>
             </template>
@@ -100,13 +100,13 @@ export default {
         sSummary: null,
       },
       loading: false,
-      sSignSrc: null,
+      sSignSrc: '',
       sSignName: null,
-      sCensorSrc: null,
+      sCensorSrc: '',
       sCensorName: null,
-      sReviewSrc: null,
+      sReviewSrc: '',
       sReviewName: null,
-      sSummarySrc: null,
+      sSummarySrc: '',
       sSummaryName: null,
       SSignFiles: [],
       SCensorFiles: [],