zhulizhen 5 years ago
parent
commit
0c19ee0cf0
2 changed files with 12 additions and 2 deletions
  1. 10 0
      src/views/evaluate/evSnapshotsDialog.vue
  2. 2 2
      src/views/strategy/animationBox.vue

+ 10 - 0
src/views/evaluate/evSnapshotsDialog.vue

@@ -206,6 +206,8 @@ export default {
           time: this.time
         }
       };
+      this.chillerCommand = {}
+      this.chillerHourList = []
       queryQuickData(params).then(res => {
         this.chillerOrg = res.chillerOrg || {};
         this.chillerCommand = res.chillerOrg || {};
@@ -214,6 +216,14 @@ export default {
       });
     },
     drawData() {
+      this.dataY1 = []
+      this.dataX = []
+      this.loadX = []
+      this.dataY2 = []
+      this.dataY3 = []
+      this.loadY1 = []
+      this.loadY2 = []
+      this.loadY3 = []
       this.chillerHourList.forEach(el => {
         el.value = el.time.slice(0, 2) + ":" + el.time.slice(2, 4);
         this.dataX.push(el.value);

+ 2 - 2
src/views/strategy/animationBox.vue

@@ -44,7 +44,7 @@
             </div>
         </div>
 
-        <div class='side-r' :class='data.isExecuted==true?"green":"red"'>
+        <div class='side-r' :class='data.isExecuted==true?"green":"red"' v-if="data.isExecuted">
             <div v-if='!showDraw' class='float-r' @click='showDraw = true'>
                 <div class='float-line' :class='data.isExecuted==true?"green":"red"'></div>
                 <img src='../../assets/open.png' alt />
@@ -171,7 +171,7 @@ export default {
                     type: 'value',
                     min: Number(this.dataY1Min),
                     max: Number(this.dataY1Max),
-                    interval: 5,
+                    interval: 2,
                     axisLabel: { formatter: '{value}  ℃' }
                 },
                 series: [