yujinwen 4 months ago
parent
commit
15a947ec12
2 changed files with 9 additions and 4 deletions
  1. 3 1
      src/views/report/Detail.vue
  2. 6 3
      src/views/report/PDF.vue

+ 3 - 1
src/views/report/Detail.vue

@@ -230,7 +230,7 @@ function handleGoTestRisk(){
           <span class="name">{{
             reportInfo.author.split(",").join("、")
           }}</span>
-          <span class="time">{{ reportInfo.publishTime }}</span>
+          <span class="time">{{ reportInfo.publishTime }}&nbsp;{{reportInfo.riskLevel}}</span>
         </div>
         <div
           @click="changeFollowState"
@@ -416,6 +416,8 @@ function handleGoTestRisk(){
     text-align: right;
     .btn {
       color: var(--primary-color);
+      position: relative;
+      top: -34px;
     }
   }
   .des-box {

+ 6 - 3
src/views/report/PDF.vue

@@ -141,9 +141,10 @@ function handleGoTestRisk(){
           <span class="name">{{
             reportInfo.author.split(",").join("、")
           }}</span>
-          <span class="time">{{
-            dayjs(reportInfo.publishedTime).format("YYYY-MM-DD HH:mm:ss")
-          }}</span>
+          <span class="time">
+            {{dayjs(reportInfo.publishedTime).format("YYYY-MM-DD HH:mm:ss")}}&nbsp;
+            {{reportInfo.riskLevel}}
+          </span>
         </div>
         <div
           @click="changeFollowState"
@@ -275,6 +276,8 @@ function handleGoTestRisk(){
     text-align: right;
     .btn {
       color: var(--primary-color);
+      position: relative;
+      top: -34px;
     }
   }
   .des-box {