pull/110/head
孙萌 2024-02-19 18:03:38 +08:00
parent fd10372039
commit e58028d02d
2 changed files with 62 additions and 54 deletions

View File

@ -371,6 +371,7 @@ export function realTimeLine(id, data,pageId) {
}
export function statusCharts(id, data) {
var chartDom = document.getElementById(id);
var myChart = echarts.init(chartDom);
var option;

View File

@ -148,6 +148,7 @@
alt="">
<img v-else src="../../assets/img/fan-off.png" alt=""> <span>5#风机</span>
</div>
<div style="display: none;"></div>
</div>
</div>
<div v-else class="status-noTrue">
@ -219,6 +220,7 @@
<img v-else src="../../assets/img/fan-off.png" alt="">
<span>8#补光灯</span>
</div>
<div style="display: none;"></div>
</div>
</div>
<div v-else class="status-noTrue">
@ -258,8 +260,7 @@
</div>
<div class="status-fan status-btn" v-else>
<div class="btn" :class="item.index == 1 ? 'blue' : 'off'">
<img class="light-img" :src="getIcon(item)"
alt="">
<img class="light-img" :src="getIcon(item)" alt="">
<!-- <img v-else src="../../assets/img/fan-off.png" alt=""> -->
<span>{{ item.index == 1 ? '开启' : '关闭' }}</span>
</div>
@ -1346,12 +1347,18 @@ export default {
}
})
this.statusList = statusList
this.$forceUpdate();
setTimeout(() => {
this.statusList.forEach((el, index) => {
if (el.open != 0 && (el.type == 6 || el.type == 5 || el.type == 2 || el.type == 15 || el.type == 14 || el.type == 13 || el.type == 12)) {
setTimeout(() => {
statusCharts(`statusCharts${index}`, el.progress)
}, 0);
}
})
}, 10);