2025-06-18 01:01:17 +08:00
|
|
|
|
<template>
|
2025-09-17 14:52:08 +08:00
|
|
|
|
<div v-loading="loading" class="pcs-ems-dashboard-editor-container">
|
2025-10-12 23:10:15 +08:00
|
|
|
|
<!-- 顶部六个方块-->
|
2025-12-11 17:59:34 +08:00
|
|
|
|
<real-time-base-info :data="runningHeadData"/>
|
2025-10-12 23:10:15 +08:00
|
|
|
|
<div
|
2025-12-11 17:59:34 +08:00
|
|
|
|
v-for="(pcsItem, pcsIndex) in pcsList"
|
|
|
|
|
|
:key="pcsIndex + 'PcsHome'"
|
|
|
|
|
|
style="margin-bottom: 25px"
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
<el-card
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:class="{
|
2026-01-12 14:15:21 +08:00
|
|
|
|
'timing-card-container':!['0','2'].includes(pcsItem.workStatus),
|
|
|
|
|
|
'warning-card-container':pcsItem.workStatus === '2',
|
|
|
|
|
|
'running-card-container':pcsItem.workStatus === '0'
|
2025-10-12 23:10:15 +08:00
|
|
|
|
}"
|
2025-12-11 17:59:34 +08:00
|
|
|
|
class="sbjk-card-container common-card-container-body-no-padding common-card-container-no-title-bg"
|
|
|
|
|
|
shadow="always"
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
2025-09-17 14:52:08 +08:00
|
|
|
|
<div slot="header">
|
2025-10-12 23:10:15 +08:00
|
|
|
|
<span class="large-title"
|
2025-12-11 17:59:34 +08:00
|
|
|
|
>{{ pcsItem.deviceName }}</span
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
2025-09-17 14:52:08 +08:00
|
|
|
|
<div class="info">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
{{
|
|
|
|
|
|
$store.state.ems.communicationStatusOptions[
|
2025-12-11 17:59:34 +08:00
|
|
|
|
pcsItem.communicationStatus
|
|
|
|
|
|
]
|
2025-09-17 14:52:08 +08:00
|
|
|
|
}}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>数据更新时间:{{ pcsItem.dataUpdateTime }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="alarm">
|
2025-12-18 16:26:57 +08:00
|
|
|
|
<!-- <pcs-switch style="margin-right:10px;"-->
|
|
|
|
|
|
<!-- :round="true"-->
|
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
|
<!-- type="danger"-->
|
|
|
|
|
|
<!-- :data="pcsItem"-->
|
|
|
|
|
|
<!-- @updateSuccess="init"/>-->
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<el-button type="primary" round size="small" style="margin-right:20px;"
|
|
|
|
|
|
@click="pointDetail(pcsItem,'point')">
|
2025-12-11 17:59:34 +08:00
|
|
|
|
详细
|
|
|
|
|
|
</el-button>
|
2025-09-17 14:52:08 +08:00
|
|
|
|
<el-badge :value="pcsItem.alarmNum || 0" class="item">
|
2025-10-12 23:10:15 +08:00
|
|
|
|
<i
|
2025-12-11 17:59:34 +08:00
|
|
|
|
class="el-icon-message-solid alarm-icon"
|
|
|
|
|
|
@click="pointDetail(pcsItem,'alarmPoint')"
|
2025-10-12 23:10:15 +08:00
|
|
|
|
></i>
|
2025-09-17 14:52:08 +08:00
|
|
|
|
</el-badge>
|
|
|
|
|
|
</div>
|
2025-06-21 23:59:01 +08:00
|
|
|
|
</div>
|
2025-10-12 23:10:15 +08:00
|
|
|
|
<div class="descriptions-main">
|
|
|
|
|
|
<el-descriptions :colon="false" :column="4" direction="vertical">
|
|
|
|
|
|
<el-descriptions-item
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:contentClassName="`descriptions-direction ${
|
2025-10-12 23:10:15 +08:00
|
|
|
|
pcsItem.workStatus === '0' ? 'save' : 'danger'
|
|
|
|
|
|
}`"
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:span="1"
|
|
|
|
|
|
label="工作状态"
|
|
|
|
|
|
labelClassName="descriptions-label"
|
|
|
|
|
|
>{{
|
2025-10-12 23:10:15 +08:00
|
|
|
|
$store.state.ems.workStatusOptions[pcsItem.workStatus]
|
2025-12-11 17:59:34 +08:00
|
|
|
|
}}
|
|
|
|
|
|
</el-descriptions-item
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
<el-descriptions-item
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:span="1"
|
|
|
|
|
|
contentClassName="descriptions-direction"
|
|
|
|
|
|
label="并网状态"
|
|
|
|
|
|
labelClassName="descriptions-label"
|
|
|
|
|
|
>{{
|
2025-10-12 23:10:15 +08:00
|
|
|
|
$store.state.ems.gridStatusOptions[pcsItem.gridStatus]
|
2025-12-11 17:59:34 +08:00
|
|
|
|
}}
|
|
|
|
|
|
</el-descriptions-item
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
<el-descriptions-item
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:contentClassName="`descriptions-direction ${
|
2026-01-08 16:59:15 +08:00
|
|
|
|
pcsItem.deviceStatus === '1' ? 'save' : 'danger'
|
2025-10-12 23:10:15 +08:00
|
|
|
|
}`"
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:span="1"
|
|
|
|
|
|
label="设备状态"
|
|
|
|
|
|
labelClassName="descriptions-label"
|
|
|
|
|
|
>{{
|
2025-10-12 23:10:15 +08:00
|
|
|
|
$store.state.ems.deviceStatusOptions[pcsItem.deviceStatus]
|
2025-12-11 17:59:34 +08:00
|
|
|
|
}}
|
|
|
|
|
|
</el-descriptions-item
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
<el-descriptions-item
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:span="1"
|
|
|
|
|
|
contentClassName="descriptions-direction"
|
|
|
|
|
|
label="控制模式"
|
|
|
|
|
|
labelClassName="descriptions-label"
|
|
|
|
|
|
>{{
|
2025-10-12 23:10:15 +08:00
|
|
|
|
$store.state.ems.controlModeOptions[pcsItem.controlMode]
|
2025-12-11 17:59:34 +08:00
|
|
|
|
}}
|
|
|
|
|
|
</el-descriptions-item
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="descriptions-main descriptions-main-bg-color">
|
|
|
|
|
|
<el-descriptions
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:colon="false"
|
|
|
|
|
|
:column="4"
|
|
|
|
|
|
contentClassName="descriptions-direction"
|
|
|
|
|
|
direction="vertical"
|
|
|
|
|
|
labelClassName="descriptions-label"
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
<el-descriptions-item
|
2025-12-11 17:59:34 +08:00
|
|
|
|
v-for="(item, index) in infoData"
|
|
|
|
|
|
:key="index + 'pcsInfoData'"
|
|
|
|
|
|
:label="item.label"
|
|
|
|
|
|
:span="1"
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
<span
|
2025-12-11 17:59:34 +08:00
|
|
|
|
class="pointer"
|
|
|
|
|
|
@click="
|
2025-10-16 16:10:29 +08:00
|
|
|
|
showChart(item.pointName || '', pcsItem.deviceId)
|
2025-10-12 23:10:15 +08:00
|
|
|
|
"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ pcsItem[item.attr] | formatNumber }}
|
|
|
|
|
|
<span v-if="item.unit" v-html="item.unit"></span>
|
2025-09-13 20:36:46 +08:00
|
|
|
|
</span>
|
2025-10-12 23:10:15 +08:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div
|
2025-12-11 17:59:34 +08:00
|
|
|
|
v-for="(item, index) in pcsItem.pcsBranchInfoList"
|
|
|
|
|
|
:key="index + 'pcsBranchInfoList'"
|
|
|
|
|
|
class="descriptions-main"
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
<el-descriptions
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:colon="false"
|
|
|
|
|
|
:column="4"
|
2025-10-12 23:10:15 +08:00
|
|
|
|
contentClassName="descriptions-direction keep"
|
2025-12-11 17:59:34 +08:00
|
|
|
|
direction="vertical"
|
2025-10-12 23:10:15 +08:00
|
|
|
|
labelClassName="descriptions-label"
|
2025-12-11 17:59:34 +08:00
|
|
|
|
>
|
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
|
:label="'支路' + (index + 1)"
|
|
|
|
|
|
:span="4"
|
|
|
|
|
|
contentClassName="descriptions-direction keep"
|
|
|
|
|
|
labelClassName="descriptions-label"
|
|
|
|
|
|
>{{ item.dischargeStatus }}
|
|
|
|
|
|
</el-descriptions-item
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
<el-descriptions-item
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:span="1"
|
|
|
|
|
|
contentClassName="descriptions-direction"
|
|
|
|
|
|
label="直流功率"
|
|
|
|
|
|
labelClassName="descriptions-label"
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
<span
|
2025-12-11 17:59:34 +08:00
|
|
|
|
class="pointer"
|
|
|
|
|
|
@click="showChart('直流功率', item.deviceId,true)"
|
|
|
|
|
|
>{{ item.dcPower }}kW</span
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
<el-descriptions-item
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:span="1"
|
|
|
|
|
|
contentClassName="descriptions-direction"
|
|
|
|
|
|
label="直流电压"
|
|
|
|
|
|
labelClassName="descriptions-label"
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
<span
|
2025-12-11 17:59:34 +08:00
|
|
|
|
class="pointer"
|
|
|
|
|
|
@click="showChart('直流电压', item.deviceId,true)"
|
|
|
|
|
|
>{{ item.dcVoltage }}V</span
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
<el-descriptions-item
|
2025-12-11 17:59:34 +08:00
|
|
|
|
:span="1"
|
|
|
|
|
|
contentClassName="descriptions-direction"
|
|
|
|
|
|
label="直流电流"
|
|
|
|
|
|
labelClassName="descriptions-label"
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
<span
|
2025-12-11 17:59:34 +08:00
|
|
|
|
class="pointer"
|
|
|
|
|
|
@click="showChart('直流电流', item.deviceId,true)"
|
|
|
|
|
|
>{{ item.dcCurrent }}A</span
|
2025-10-12 23:10:15 +08:00
|
|
|
|
>
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
</div>
|
2025-09-17 14:52:08 +08:00
|
|
|
|
</el-card>
|
|
|
|
|
|
</div>
|
2025-10-12 23:10:15 +08:00
|
|
|
|
<el-empty v-show="pcsList.length <= 0" :image-size="200"></el-empty>
|
2025-12-11 17:59:34 +08:00
|
|
|
|
<point-chart ref="pointChart" :site-id="siteId"/>
|
2025-11-25 17:56:12 +08:00
|
|
|
|
<point-table ref="pointTable"/>
|
2025-06-21 23:59:01 +08:00
|
|
|
|
</div>
|
2025-06-18 01:01:17 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
2025-06-21 23:59:01 +08:00
|
|
|
|
<script>
|
2025-09-13 20:36:46 +08:00
|
|
|
|
import pointChart from "./../PointChart.vue";
|
2025-11-25 17:56:12 +08:00
|
|
|
|
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
2025-06-21 23:59:01 +08:00
|
|
|
|
import RealTimeBaseInfo from "./../RealTimeBaseInfo.vue";
|
2025-06-28 14:52:49 +08:00
|
|
|
|
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
2025-12-11 17:59:34 +08:00
|
|
|
|
import {getPcsDetailInfo, getRunningHeadInfo} from "@/api/ems/dzjk";
|
2025-09-09 17:51:52 +08:00
|
|
|
|
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
2025-12-18 16:26:57 +08:00
|
|
|
|
// import PcsSwitch from "@/views/ems/site/sblb/PcsSwitch.vue";
|
2025-12-11 17:59:34 +08:00
|
|
|
|
|
2025-06-21 23:59:01 +08:00
|
|
|
|
export default {
|
2025-10-12 23:10:15 +08:00
|
|
|
|
name: "DzjkSbjkPcs",
|
2025-12-18 16:26:57 +08:00
|
|
|
|
components: {RealTimeBaseInfo, pointChart, PointTable},
|
2025-10-12 23:10:15 +08:00
|
|
|
|
mixins: [getQuerySiteId, intervalUpdate],
|
2025-06-21 23:59:01 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2025-10-12 23:10:15 +08:00
|
|
|
|
loading: false,
|
|
|
|
|
|
runningHeadData: {}, //运行信息
|
|
|
|
|
|
pcsList: [],
|
|
|
|
|
|
infoData: [
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "总交流有功电率",
|
|
|
|
|
|
attr: "totalActivePower",
|
|
|
|
|
|
unit: "kW",
|
|
|
|
|
|
pointName: "总交流有功电率",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "当天交流充电量",
|
|
|
|
|
|
attr: "dailyAcChargeEnergy",
|
|
|
|
|
|
unit: "kWh",
|
|
|
|
|
|
pointName: "当天交流充电量 (kWh)",
|
|
|
|
|
|
},
|
2025-12-11 17:59:34 +08:00
|
|
|
|
{label: "A相电压", attr: "aPhaseVoltage", unit: "V", pointName: ""},
|
2025-10-12 23:10:15 +08:00
|
|
|
|
{
|
|
|
|
|
|
label: "A相电流",
|
|
|
|
|
|
attr: "aPhaseCurrent",
|
|
|
|
|
|
unit: "A",
|
|
|
|
|
|
pointName: "A相电流",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "总交流无功电率",
|
|
|
|
|
|
attr: "totalReactivePower",
|
|
|
|
|
|
unit: "kVar",
|
|
|
|
|
|
pointName: "总交流无功电率",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "当天交流放电量",
|
|
|
|
|
|
attr: "dailyAcDischargeEnergy",
|
|
|
|
|
|
unit: "kWh",
|
|
|
|
|
|
pointName: "当天交流放电量 (kWh)",
|
|
|
|
|
|
},
|
2025-12-11 17:59:34 +08:00
|
|
|
|
{label: "B相电压", attr: "bPhaseVoltage", unit: "V", pointName: ""},
|
2025-10-12 23:10:15 +08:00
|
|
|
|
{
|
|
|
|
|
|
label: "B相电流",
|
|
|
|
|
|
attr: "bPhaseCurrent",
|
|
|
|
|
|
unit: "A",
|
|
|
|
|
|
pointName: "B相电流",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "总交流视在功率",
|
|
|
|
|
|
attr: "totalApparentPower",
|
|
|
|
|
|
unit: "kVA",
|
|
|
|
|
|
pointName: "总交流视在功率",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "PCS模块温度",
|
|
|
|
|
|
attr: "pcsModuleTemperature",
|
|
|
|
|
|
unit: "℃",
|
|
|
|
|
|
pointName: "",
|
|
|
|
|
|
},
|
2025-12-11 17:59:34 +08:00
|
|
|
|
{label: "C相电压", attr: "cPhaseVoltage", unit: "V", pointName: ""},
|
2025-10-12 23:10:15 +08:00
|
|
|
|
{
|
|
|
|
|
|
label: "C相电流",
|
|
|
|
|
|
attr: "cPhaseCurrent",
|
|
|
|
|
|
unit: "A",
|
|
|
|
|
|
pointName: "C相电流",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "总交流功率因数",
|
|
|
|
|
|
attr: "totalPowerFactor",
|
|
|
|
|
|
unit: "",
|
|
|
|
|
|
pointName: "总交流功率因数",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "PCS环境温度",
|
|
|
|
|
|
attr: "pcsEnvironmentTemperature",
|
|
|
|
|
|
unit: "℃",
|
|
|
|
|
|
pointName: "",
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "交流频率",
|
|
|
|
|
|
attr: "acFrequency",
|
|
|
|
|
|
unit: "Hz",
|
|
|
|
|
|
pointName: "交流频率",
|
|
|
|
|
|
},
|
2025-06-21 23:59:01 +08:00
|
|
|
|
],
|
2025-10-12 23:10:15 +08:00
|
|
|
|
pcsBranchList: [], //pcs的支路列表
|
|
|
|
|
|
};
|
2025-06-21 23:59:01 +08:00
|
|
|
|
},
|
2025-10-12 23:10:15 +08:00
|
|
|
|
methods: {
|
2025-11-25 17:56:12 +08:00
|
|
|
|
// 查看设备电位表格
|
2025-12-11 17:59:34 +08:00
|
|
|
|
pointDetail(row, dataType) {
|
2025-11-27 15:58:23 +08:00
|
|
|
|
const {deviceId} = row
|
2025-12-11 17:59:34 +08:00
|
|
|
|
this.$refs.pointTable.showTable({siteId: this.siteId, deviceId, deviceCategory: 'PCS'}, dataType)
|
2025-11-25 17:56:12 +08:00
|
|
|
|
},
|
2025-12-11 17:59:34 +08:00
|
|
|
|
showChart(pointName, deviceId, isBranch = false) {
|
2025-10-12 23:10:15 +08:00
|
|
|
|
pointName &&
|
2025-12-11 17:59:34 +08:00
|
|
|
|
this.$refs.pointChart.showChart({pointName, deviceCategory: isBranch ? 'BRANCH' : 'PCS', deviceId});
|
2025-06-28 14:52:49 +08:00
|
|
|
|
},
|
|
|
|
|
|
//6个方块数据
|
2025-10-12 23:10:15 +08:00
|
|
|
|
getRunningHeadData() {
|
|
|
|
|
|
getRunningHeadInfo(this.siteId).then((response) => {
|
|
|
|
|
|
this.runningHeadData = response?.data || {};
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
getPcsList() {
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
getPcsDetailInfo(this.siteId)
|
2025-12-11 17:59:34 +08:00
|
|
|
|
.then((response) => {
|
|
|
|
|
|
const data = response?.data || {};
|
|
|
|
|
|
this.pcsList = JSON.parse(JSON.stringify(data));
|
|
|
|
|
|
})
|
|
|
|
|
|
.finally(() => (this.loading = false));
|
2025-06-28 14:52:49 +08:00
|
|
|
|
},
|
2025-10-12 23:10:15 +08:00
|
|
|
|
updateData() {
|
|
|
|
|
|
this.getRunningHeadData();
|
|
|
|
|
|
this.getPcsList();
|
2025-06-28 14:52:49 +08:00
|
|
|
|
},
|
2025-10-12 23:10:15 +08:00
|
|
|
|
init() {
|
|
|
|
|
|
this.updateData();
|
|
|
|
|
|
this.updateInterval(this.updateData);
|
2025-09-09 17:51:52 +08:00
|
|
|
|
},
|
2025-06-28 14:52:49 +08:00
|
|
|
|
},
|
2025-10-12 23:10:15 +08:00
|
|
|
|
};
|
2025-06-21 23:59:01 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
2025-10-12 23:10:15 +08:00
|
|
|
|
<style lang="scss" scoped></style>
|