Guoxiaohuan 5 年之前
父节点
当前提交
15de8b54c9

+ 1 - 1
src/views/evaluate/evCard.vue

@@ -62,7 +62,7 @@
         </div>
         <div class='view-dialog'>
             <el-dialog title='策略推出时状况' :visible.sync='viewSnapshots' :close-on-click-modal='false' width='1260px'>
-                <ev-snapshots-dialog :appealsDate='date' :time='time'></ev-snapshots-dialog>
+                <ev-snapshots-dialog v-if="date && time" :appealsDate='date' :time='time'></ev-snapshots-dialog>
             </el-dialog>
         </div>
     </div>

+ 2 - 2
src/views/evaluate/evIndoorTemperature.vue

@@ -85,7 +85,7 @@ export default {
     drawIt() {
       let myCharts = echarts.init(document.getElementById("pCharts2"));
       var colors = ["#34C724", "#8D9399", "#F54E45", "#00D6B9", "#0091FF"];
-      var option = {
+      var option = { 
         color: colors,
         tooltip: {
           trigger: "axis",
@@ -93,7 +93,7 @@ export default {
             type: "shadow"
           },
           formatter:function(params){
-            return params[0].name +'<br/> Legend'+params[0].seriesName+'<br/>'+'<i class="icon1"></i> 室内温度:'+params[1].value +'% <br/>'+'<i class="icon2"></i>节能率:'+params[2].value+'%'
+            return params[0].name +'<br/>'+params[0].seriesName+'<br/>'+'<i class="icon1"></i> 室内温度:'+ (params[1].value || 0) +'% <br/>'+'<i class="icon2"></i>节能率:' + (params[2].value || 0) + '%'
           }
         
         },

+ 6 - 3
src/views/evaluate/evSnapshotsDialog.vue

@@ -167,11 +167,14 @@ export default {
     };
   },
   mounted() {
-    
     this.getQuickData();
   },
+  watch:{
+    time(newV,old){
+      this.getQuickData();
+    }
+  },
   methods: {
-   
     getQuickData() {
       let params = {
         getParams: {
@@ -181,7 +184,7 @@ export default {
       };
       queryQuickData(params).then(res => {
         this.chillerOrg = res.chillerOrg || {};
-        this.chillerCommand = res.chillerCommand || {};
+        this.chillerCommand = res.chillerOrg || {};
         this.chillerHourList = res.chillerHourList || [];
         this.drawData();
       });