mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
[WEB]1.修改首页场站图标显示颜色不正确的问题,2.修改运行监控页面储能系统的运行模式和预制舱参数在页面切换时数据不显示问题
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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]]
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user