浏览代码

裂解巡检 - 测温/测压趋势图切换tab不显示问题

wangggziwen 2 周之前
父节点
当前提交
b55e98dee9
共有 2 个文件被更改,包括 4 次插入5 次删除
  1. 2 3
      ui/src/views/production/pressure/coil.vue
  2. 2 2
      ui/src/views/production/temperature/coil.vue

+ 2 - 3
ui/src/views/production/pressure/coil.vue

@@ -122,7 +122,7 @@
           <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleCoilAnalysis(null, null)">搜索</el-button>
         </el-form-item>
       </el-form>
-      <div id="trendChart" style="width:100%; height: 600px;"></div>
+      <div id="trendChartPressure" style="width:100%; height: 600px;"></div>
     </el-dialog>
   </div>
 </template>
@@ -273,7 +273,6 @@
       draw() {
         this.valueList = [];
         this.dateList = [];
-        console.log(this.analysisQueryParams.passNo)
         listCoilAnalysis(this.analysisQueryParams).then(response => {
           let data = response.data;
           this.maxValue = 0;
@@ -290,7 +289,7 @@
               }
             }
           }
-          this.chart = this.echarts.init(document.getElementById("trendChart"));
+          this.chart = this.echarts.init(document.getElementById("trendChartPressure"));
           let option = {
             tooltip: {
               trigger: "item"

+ 2 - 2
ui/src/views/production/temperature/coil.vue

@@ -133,7 +133,7 @@
           <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleCoilAnalysis(null, null)">搜索</el-button>
         </el-form-item>
       </el-form>
-      <div id="trendChart" style="width:100%; height: 600px;"></div>
+      <div id="trendChartTemperature" style="width:100%; height: 600px;"></div>
     </el-dialog>
   </div>
 </template>
@@ -300,7 +300,7 @@
               }
             }
           }
-          this.chart = this.echarts.init(document.getElementById("trendChart"));
+          this.chart = this.echarts.init(document.getElementById("trendChartTemperature"));
           let option = {
             tooltip: {
               trigger: "item"