@@ -75,6 +75,15 @@ export default {
},
components: { bomBox },
props: ['data', 'chillerHourList', 'chillerCommandQ'],
+ watch: {
+ chillerHourList(newVal, oldVal) {
+ if(newVal) {
+ this.getData()
+ this.drawLeft()
+ this.drawRight()
+ }
+ },
methods: {
getData() {
this.chillerHourList.forEach(el => {
@@ -32,11 +32,11 @@
<p class="strate-right-title">当前状态</p>
<water-unit :data="chillerOrg " :type="1"></water-unit>
<animation-box
- v-if="chillerHourList.length>0"
:data="chillerCommand"
:chillerHourList="chillerHourList"
:chillerCommandQ="chillerCommand"
></animation-box>
+
</div>
<el-dialog title="提示" :visible.sync="showTodayStrategy" width="1260px">