zhulizhen1111 5 anni fa
parent
commit
2bcdb8a148
1 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  1. 7 3
      src/views/strategy/animationBox.vue

+ 7 - 3
src/views/strategy/animationBox.vue

@@ -50,7 +50,7 @@
                 <p>当前策略</p>
             </div>
         </div>
-        <bom-box v-if='Object.keys(chillerCommandQ).length>0' :class='["draw", {"open": showDraw}]' :data='chillerCommandQ' @close='showDraw = false'></bom-box>
+        <bom-box :class='["draw", {"open": showDraw}]' :data='chillerCommandQ' @close='showDraw = false'></bom-box>
     </div>
 </template>
 
@@ -62,7 +62,7 @@ import strategyLine from '@/components/strategyLine'
 export default {
     data() {
         return {
-            showDraw: false,
+            showDraw: true,
             dataX: [],
             dataY1: [],
             dataY2: [],
@@ -76,12 +76,16 @@ export default {
         }
     },
     components: { bomBox, strategyLine },
+    computed:{
+
+    },
     methods:{
         isShowDraw(){
+            
             if((Object.keys(this.chillerCommandQ).length>0 && this.chillerCommandQ.isNew) || (Object.keys(this.chillerCommandQ).length>0 && !this.chillerCommandQ.isExecuted)){
                 this.showDraw = true
             }else{
-                this.showDraw = false
+                 this.showDraw = false
             }
         }
     },