Pārlūkot izejas kodu

Merge branch 'master' of http://8.136.199.33:3000/eta_front/eta_report_front

Karsa 1 gadu atpakaļ
vecāks
revīzija
3bd88941d2
1 mainītis faili ar 20 papildinājumiem un 1 dzēšanām
  1. 20 1
      src/views/reportEn/detail.vue

+ 20 - 1
src/views/reportEn/detail.vue

@@ -42,6 +42,11 @@
       </div>
       </div>
       <div style="padding: 0.6rem; box-sizing: border-box; overflow: hidden">
       <div style="padding: 0.6rem; box-sizing: border-box; overflow: hidden">
         <!-- <div id="resetcss" style="overflow:hidden;" v-html="reportInfo.Content"></div> -->
         <!-- <div id="resetcss" style="overflow:hidden;" v-html="reportInfo.Content"></div> -->
+        <div id="overview" style="margin-bottom:1.25rem;font: 0.7rem/1.5 'segoe';" v-if="reportInfo.Overview">
+          <p><strong>Overview:</strong></p>
+          <!-- <p id="overview-content">{{reportInfo.Overview||''}}</p> -->
+          <div class="overview" style="overflow:hidden;margin-top:0.83rem;line-height:1.3rem;" v-html="reportInfo.Overview"></div>
+        </div>
         <div id="resetcss" style="overflow:hidden;">
         <div id="resetcss" style="overflow:hidden;">
         <ul>
         <ul>
           <li v-for="(html,index) in realContent" :key="index" v-html="html"></li>
           <li v-for="(html,index) in realContent" :key="index" v-html="html"></li>
@@ -167,6 +172,15 @@ export default {
     $("#resetcss")
     $("#resetcss")
       .find("pre")
       .find("pre")
       .css({ display: "block", whiteSpace: "pre-wrap" });
       .css({ display: "block", whiteSpace: "pre-wrap" });
+    $("#overview")
+      .find("p")
+      .css({
+        margin: "0 auto 0",
+        font: "0.7rem/1.5 'segoe'",
+        color: "#333",
+        letterSpacing: "0",
+        lineHeight: "1.3rem",
+      });
   },
   },
   methods: {
   methods: {
     showTips() {
     showTips() {
@@ -182,7 +196,7 @@ export default {
     },
     },
 
 
     async getreportdetail() {
     async getreportdetail() {
-      const { Data,Ret  } = await reportEnDetail({ ReportCode: this.id });
+      const { Data,Ret  } = await reportEnDetail({ ReportCode: this.id,ShareEmail:Number(this.$route.query.ShareEmail)||0 });
         if (Ret !== 200) return
         if (Ret !== 200) return
 
 
         this.reportInfo = Data.Report;
         this.reportInfo = Data.Report;
@@ -338,6 +352,11 @@ export default {
       margin-top: 1.5rem;
       margin-top: 1.5rem;
     }
     }
   }
   }
+  #overview{
+    padding:0.83rem;
+    background-color: rgba(77, 130, 191, 0.1);
+    border: 1px solid #E2E2E2;
+  }
   table {
   table {
     border-top: 1px solid #ccc;
     border-top: 1px solid #ccc;
     border-left: 1px solid #ccc;
     border-left: 1px solid #ccc;