[WEB]1.修改首页场站图标显示颜色不正确的问题,2.修改运行监控页面储能系统的运行模式和预制舱参数在页面切换时数据不显示问题

This commit is contained in:
lixiaoyuan
2025-10-09 18:37:18 +08:00
parent 272154c06a
commit 0975ea52d4
25 changed files with 2377 additions and 135 deletions

View File

@@ -97,9 +97,9 @@ export default {
this.markers = res.data.map((item) => {
return {
...item,
iconMap: !+item.status
? require('../../assets/home/homeIcon1.png')
: require('../../assets/home/homeIcon.png')
iconMap: (item.status === 1)
? require('../../assets/home/homeIcon.png')
: require('../../assets/home/homeIcon1.png')
}
})
} else {

View File

@@ -127,7 +127,7 @@ export default {
handler(newVal, oldVal) {
if (newVal !== oldVal) {
// 0正常 1故障
this.curStatus=['正常','故障'][this.propsTotal.status]
this.curStatus=['故障','正常'][this.propsTotal.status]
this.list.forEach((item) => {
if(item.key=='work_mode'){
item.value = ['手动','峰谷套利','增网配容','应急供电','并网保电','自定时段'][this.propsTotal[item.key]]

View File

@@ -7,9 +7,9 @@
<span class="iconfont" :class="getIcongont(item)"></span>
</div>
<div class="title">
<span class="number">{{ item.device_id }}</span>
<span class="name" :title="item.name">{{ item.name }}</span>
<span class="number type">{{ item.typename }}</span>
<span class="name" :title="item.name">{{ item.name }}</span>
<span class="number">{{ item.device_id }}</span>
</div>
</div>

View File

@@ -433,10 +433,11 @@ export default {
res.data.device_group.forEach((Element, index) => {
this.systems[index].num = Element.count
this.systems[index].power = Element.power
this.systems[index].workmode = Element.workmode
if (Element.category == 1) {
this.message = Element.msg
}
// workmode 和 msg 数据通过 queryDevicByCategory 接口返回
//this.systems[index].workmode = Element.workmode
// if (Element.category == 1) {
// this.message = Element.msg
// }
})
this.workMode = res.data.work_mode
} catch (error) {