소스 검색

需求200-摘要无内容不显示

hbchen 10 달 전
부모
커밋
d4f43b439b
4개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      src/views/report/reportDetail.vue
  2. 1 1
      src/views/report/reportDetailPdf.vue
  3. 1 1
      src/views/smartReport/detail.vue
  4. 1 1
      src/views/smartReport/detailPdf.vue

+ 1 - 1
src/views/report/reportDetail.vue

@@ -68,7 +68,7 @@
 
       <div id="abstract">
         <div class="abstract_cont">
-          <div>摘要:{{ reportInfo.Abstract }}</div>
+          <div v-if="reportInfo.Abstract">摘要:{{ reportInfo.Abstract }}</div>
           <div style="color: #666; margintop: 1.2rem">
             *注:请务必阅读&nbsp;<strong
               style="fontweight: normal; cursor: pointer; color: #3e8ce6"

+ 1 - 1
src/views/report/reportDetailPdf.vue

@@ -56,7 +56,7 @@
 
       <div id="abstract">
         <div class="abstract_cont">
-          <div>摘要:{{ reportInfo.Abstract }}</div>
+          <div v-if="reportInfo.Abstract">摘要:{{ reportInfo.Abstract }}</div>
           <div style="color: #666; margin-top: 1.2rem">
             *注:请务必阅读&nbsp;<strong
               style="font-weight: normal; cursor: pointer; color: #3e8ce6"

+ 1 - 1
src/views/smartReport/detail.vue

@@ -27,7 +27,7 @@
           </div>
         </div>
         <div class="abstract" v-if="reportInfo && !!reportInfo.NeedSplice">
-          <div>摘要: <span v-html="reportInfo.Abstract"></span></div> 
+          <div v-if="reportInfo.Abstract">摘要: <span v-html="reportInfo.Abstract"></span></div> 
         </div>
         <div id="resetcss" style="overflow:hidden;" v-html="reportInfo.Content"></div>
         <div class="html-end-img-box" v-if="reportInfo && !!reportInfo.NeedSplice && reportInfo.EndImg">

+ 1 - 1
src/views/smartReport/detailPdf.vue

@@ -20,7 +20,7 @@
           </div>
         </div>
         <div class="abstract" v-if="reportInfo && !!reportInfo.NeedSplice">
-          <div>摘要: <span v-html="reportInfo.Abstract"></span></div> 
+          <div v-if="reportInfo.Abstract">摘要: <span v-html="reportInfo.Abstract"></span></div> 
         </div>
         <div id="resetcss" style="overflow:hidden;" v-html="reportInfo.Content"></div>
         <div class="html-end-img-box" v-if="reportInfo && !!reportInfo.NeedSplice && reportInfo.EndImg">