Sfoglia il codice sorgente

兼容一个图类型

jwyu 1 anno fa
parent
commit
39d55d29a6
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      src/hooks/chart/render.js
  2. 1 1
      src/views/myETA/components/EDBInfo.vue

+ 1 - 1
src/hooks/chart/render.js

@@ -338,7 +338,7 @@ function setChartTitle(showChartTitle){
 
 //曲线图
 function setSplineOpt(e){
-    const data=e.EdbInfoList
+    const data=e.ChartInfo.Source===6?[e.DataResp]:e.EdbInfoList
     let series=[]
     let yAxis=[]
     let xAxis = {}

+ 1 - 1
src/views/myETA/components/EDBInfo.vue

@@ -137,7 +137,7 @@ function handleLeadUnitChange(e){
                     <span class="text">{{data[item.key]}}</span>
                 </li>
             </ul>
-            <div class="opt-box" v-if="sameOptionType.includes(chartInfo.ChartType) && chartInfo.ChartType!==5">
+            <div class="opt-box" v-if="sameOptionType.includes(chartInfo.ChartType) && chartInfo.ChartType!==5 && chartInfo.Source===1">
                 <div class="lable">指标操作</div>
                 <div class="con">
                     <div class="item-box" v-if="showYOptionsHandle">