hbchen 1 year ago
parent
commit
838c88fe45
1 changed files with 13 additions and 3 deletions
  1. 13 3
      src/views/hzyb/chart/Detail.vue

+ 13 - 3
src/views/hzyb/chart/Detail.vue

@@ -2162,9 +2162,10 @@ onMounted(()=>{
         </div>
 
         <!-- 最新值 -->
-        <div class="latest-value-wrap" v-if="resData&&resData.ChartInfo.Source===1">
+        <div class="latest-value-wrap" v-if="resData&&resData.ChartInfo.Source===1" 
+        :class="{'marginTopZone': sameOptionType.includes(resData.ChartInfo.ChartType)}">
             <!-- <p style="margin-bottom:10px">最新数值</p> -->
-            <ul class="list" v-if="sameOptionType.includes(resData.ChartInfo.ChartType)">
+            <ul class="list same-option-type-list" v-if="sameOptionType.includes(resData.ChartInfo.ChartType)">
                 <li v-for="item in chartData.series" :key="item.name">
                     <p style="color:#333">{{moment(item.LatestDate).format('YYYY-MM-DD')}}</p>
                     <p :style="{color:item.color,flex:1}">{{item.name.length>20?item.name.replace(/<br>/g,''):item.name}}</p>
@@ -2487,8 +2488,17 @@ onMounted(()=>{
                 border-right: none !important;
             }
         }
+        .same-option-type-list{
+            li{
+                &:first-child{
+                    border-top: none;
+                }
+            }
+        }
+    }
+    .marginTopZone{
+        margin-top: 0;
     }
-
     .set-limit-box{
         min-height: 450px;
         padding-top: 5px;