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:
@@ -369,6 +369,7 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.deviceList = res.data
|
this.deviceList = res.data
|
||||||
|
this.$emit('updateGatewayData', res.gateway);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.deviceList = []
|
this.deviceList = []
|
||||||
|
|
||||||
|
|||||||
@@ -196,6 +196,8 @@ export default {
|
|||||||
|
|
||||||
this.videoList = res.data.concat(res.data)
|
this.videoList = res.data.concat(res.data)
|
||||||
this.videoList = this.videoList.concat(this.videoList)
|
this.videoList = this.videoList.concat(this.videoList)
|
||||||
|
|
||||||
|
this.$emit('updateGatewayData', res.gateway);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.videoList = []
|
this.videoList = []
|
||||||
|
|
||||||
|
|||||||
@@ -42,8 +42,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<videos v-if="systemType == 4" :station-id="selectStationId" />
|
<videos v-if="systemType == 4" :station-id="selectStationId" @updateGatewayData="updateGatewayData" />
|
||||||
<device v-else :station-id="selectStationId" :system-type="systemType" />
|
<device v-else :station-id="selectStationId" :system-type="systemType" @updateGatewayData="updateGatewayData" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-modal
|
<a-modal
|
||||||
@@ -83,7 +83,9 @@ export default {
|
|||||||
name: '储能系统',
|
name: '储能系统',
|
||||||
titles: [
|
titles: [
|
||||||
{ v: '运行模式', key: 'workmode' },
|
{ v: '运行模式', key: 'workmode' },
|
||||||
{ v: '总有功功率(台区)', key: 'power', sufix: 'kW' }
|
{ v: '储能EMU状态', key: 'emu' },
|
||||||
|
{ v: '充电桩状态', key: 'cdz' },
|
||||||
|
//{ v: '总有功功率(台区)', key: 'power', sufix: 'kW' }
|
||||||
],
|
],
|
||||||
power: 60,
|
power: 60,
|
||||||
num: 62,
|
num: 62,
|
||||||
@@ -158,6 +160,13 @@ export default {
|
|||||||
this.getStations()
|
this.getStations()
|
||||||
},
|
},
|
||||||
methods: {
|
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(){
|
handleMessage(){
|
||||||
this.msgModal=true
|
this.msgModal=true
|
||||||
},
|
},
|
||||||
@@ -288,7 +297,7 @@ export default {
|
|||||||
.des {
|
.des {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 40px;
|
line-height: 30px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
max-width: 160px;
|
max-width: 160px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|||||||
Reference in New Issue
Block a user