mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
修改储能标签上的显示信息,实现通过queryDevicByCategory接口更新EMU和充电桩状态及预制舱msg
This commit is contained in:
@@ -42,8 +42,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<videos v-if="systemType == 4" :station-id="selectStationId" />
|
||||
<device v-else :station-id="selectStationId" :system-type="systemType" />
|
||||
<videos v-if="systemType == 4" :station-id="selectStationId" @updateGatewayData="updateGatewayData" />
|
||||
<device v-else :station-id="selectStationId" :system-type="systemType" @updateGatewayData="updateGatewayData" />
|
||||
</div>
|
||||
</div>
|
||||
<a-modal
|
||||
@@ -83,7 +83,9 @@ export default {
|
||||
name: '储能系统',
|
||||
titles: [
|
||||
{ v: '运行模式', key: 'workmode' },
|
||||
{ v: '总有功功率(台区)', key: 'power', sufix: 'kW' }
|
||||
{ v: '储能EMU状态', key: 'emu' },
|
||||
{ v: '充电桩状态', key: 'cdz' },
|
||||
//{ v: '总有功功率(台区)', key: 'power', sufix: 'kW' }
|
||||
],
|
||||
power: 60,
|
||||
num: 62,
|
||||
@@ -158,6 +160,13 @@ export default {
|
||||
this.getStations()
|
||||
},
|
||||
methods: {
|
||||
updateGatewayData(gatewayData) {
|
||||
this.systems[0].workmode = gatewayData.workmode
|
||||
this.systems[0].emu = gatewayData.emu
|
||||
this.systems[0].cdz = gatewayData.cdz
|
||||
this.message = gatewayData.msg
|
||||
},
|
||||
|
||||
handleMessage(){
|
||||
this.msgModal=true
|
||||
},
|
||||
@@ -288,7 +297,7 @@ export default {
|
||||
.des {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 40px;
|
||||
line-height: 30px;
|
||||
display: inline-block;
|
||||
max-width: 160px;
|
||||
white-space: nowrap;
|
||||
|
||||
Reference in New Issue
Block a user