优化
This commit is contained in:
@ -59,6 +59,15 @@ export function deleteService(id) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//pcs开、关机
|
||||||
|
export function updateDeviceStatus(data) {
|
||||||
|
return request({
|
||||||
|
url: `/ems/siteConfig/updateDeviceStatus`,
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 获取上级设备id列表
|
// 获取上级设备id列表
|
||||||
export function getParentDeviceId({siteId, deviceCategory}) {
|
export function getParentDeviceId({siteId, deviceCategory}) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@ -9,11 +9,13 @@
|
|||||||
padding: 24px;
|
padding: 24px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
//除去顶部信息(如搜索栏、站点基本信息等)外的 白色背景内容区域
|
//除去顶部信息(如搜索栏、站点基本信息等)外的 白色背景内容区域
|
||||||
.ems-content-container {
|
.ems-content-container {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
//需要设置内padding的白色背景区域
|
//需要设置内padding的白色背景区域
|
||||||
.ems-content-container-padding {
|
.ems-content-container-padding {
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
@ -27,26 +29,31 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
background: #F1F5FB;
|
background: #F1F5FB;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.card-title {
|
.card-title {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-button--text {
|
.el-button--text {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.common-card-container-body-no-padding {
|
.common-card-container-body-no-padding {
|
||||||
.el-card__body {
|
.el-card__body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.common-card-container-no-title-bg {
|
.common-card-container-no-title-bg {
|
||||||
.el-card__header {
|
.el-card__header {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//单站监控 设备监控card公共样式
|
//单站监控 设备监控card公共样式
|
||||||
.sbjk-card-container {
|
.sbjk-card-container {
|
||||||
.el-card__header {
|
.el-card__header {
|
||||||
@ -55,6 +62,7 @@
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: 5px 5px 0 0;
|
border-radius: 5px 5px 0 0;
|
||||||
|
|
||||||
.large-title {
|
.large-title {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@ -63,6 +71,7 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
@ -70,14 +79,17 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-button--text {
|
.el-button--text {
|
||||||
color: #666666;
|
color: #666666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alarm {
|
.alarm {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 25px;
|
right: 25px;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
|
|
||||||
.alarm-icon {
|
.alarm-icon {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@ -86,18 +98,21 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//红色背景颜色标题
|
//红色背景颜色标题
|
||||||
&.warning-card-container {
|
&.warning-card-container {
|
||||||
.el-card__header {
|
.el-card__header {
|
||||||
background-color: #fc6b69;
|
background-color: #b64040; //#fc6b69;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//绿色背景颜色标题
|
//绿色背景颜色标题
|
||||||
&.running-card-container {
|
&.running-card-container {
|
||||||
.el-card__header {
|
.el-card__header {
|
||||||
background-color: #05aea3;
|
background-color: #40b6a5; //#05aea3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//灰色背景颜色标题
|
//灰色背景颜色标题
|
||||||
&.timing-card-container {
|
&.timing-card-container {
|
||||||
.el-card__header {
|
.el-card__header {
|
||||||
@ -111,11 +126,13 @@
|
|||||||
&.common-card-container .el-card__header {
|
&.common-card-container .el-card__header {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
|
||||||
.time-range-header {
|
.time-range-header {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.card-title {
|
.card-title {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
@ -124,22 +141,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//描述样式 PCS、BMS总览、BMS电池簇页面公共样式
|
//描述样式 PCS、BMS总览、BMS电池簇页面公共样式
|
||||||
.descriptions-main {
|
.descriptions-main {
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&.descriptions-main-bg-color {
|
&.descriptions-main-bg-color {
|
||||||
background-color: #f1f5fc;
|
background-color: #f1f5fc;
|
||||||
|
|
||||||
.el-descriptions__body {
|
.el-descriptions__body {
|
||||||
background-color: #f1f5fc;
|
background-color: #f1f5fc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-descriptions-item__cell[colspan='1'] {
|
.el-descriptions-item__cell[colspan='1'] {
|
||||||
width: 25%
|
width: 25%
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-descriptions__body .el-descriptions__table {
|
.el-descriptions__body .el-descriptions__table {
|
||||||
.descriptions-direction {
|
.descriptions-direction {
|
||||||
line-height: 19px;
|
line-height: 19px;
|
||||||
@ -147,27 +165,33 @@
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.descriptions-label {
|
.descriptions-label {
|
||||||
line-height: 14px;
|
line-height: 14px;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.danger {
|
.danger {
|
||||||
color: #FC6B69;
|
color: #FC6B69;
|
||||||
}
|
}
|
||||||
|
|
||||||
.save {
|
.save {
|
||||||
color: #09ADA3;
|
color: #09ADA3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.keep {
|
.keep {
|
||||||
color: #3C81FF;
|
color: #3C81FF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//电表、液冷公共样式
|
//电表、液冷公共样式
|
||||||
.device-info-row {
|
.device-info-row {
|
||||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||||
border-left: 1px solid #eee;
|
border-left: 1px solid #eee;
|
||||||
border-top: 1px solid #eee;
|
border-top: 1px solid #eee;
|
||||||
|
|
||||||
.device-info-col {
|
.device-info-col {
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -176,8 +200,10 @@
|
|||||||
line-height: 14px;
|
line-height: 14px;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid #eee;
|
||||||
border-right: 1px solid #eee;
|
border-right: 1px solid #eee;
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
display: block;
|
display: block;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@ -193,17 +219,22 @@
|
|||||||
.el-table {
|
.el-table {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.common-table.el-table {
|
.common-table.el-table {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
|
||||||
.el-table__header-wrapper th, .el-table__fixed-header-wrapper th {
|
.el-table__header-wrapper th, .el-table__fixed-header-wrapper th {
|
||||||
background: #f1f5fc;
|
background: #f1f5fc;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|
||||||
.table-head {
|
.table-head {
|
||||||
color: #515a6e;
|
color: #515a6e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.warning-status {
|
.warning-status {
|
||||||
color: #FC6B69;
|
color: #FC6B69;
|
||||||
|
|
||||||
&.circle::before {
|
&.circle::before {
|
||||||
content: "";
|
content: "";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -219,22 +250,27 @@
|
|||||||
//二、三级菜单栏样式
|
//二、三级菜单栏样式
|
||||||
.ems-second-menu {
|
.ems-second-menu {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
|
||||||
.el-menu-item {
|
.el-menu-item {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.el-menu--horizontal > .el-menu-item.is-active, &.el-menu--horizontal > .el-menu-item {
|
&.el-menu--horizontal > .el-menu-item.is-active, &.el-menu--horizontal > .el-menu-item {
|
||||||
border-bottom: none !important;
|
border-bottom: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-menu-item.is-active {
|
.el-menu-item.is-active {
|
||||||
background: #0366c1 !important;
|
background: #0366c1 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ems-third-menu-container {
|
.ems-third-menu-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 140px;
|
padding-left: 140px;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
|
||||||
.ems-third-menu {
|
.ems-third-menu {
|
||||||
border-right: none;
|
border-right: none;
|
||||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||||
@ -242,6 +278,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
||||||
.el-menu-item {
|
.el-menu-item {
|
||||||
line-height: 45px;
|
line-height: 45px;
|
||||||
height: 45px;
|
height: 45px;
|
||||||
@ -249,10 +286,12 @@
|
|||||||
width: 125px;
|
width: 125px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-menu-item:hover {
|
.el-menu-item:hover {
|
||||||
background: #67b1ff !important;
|
background: #67b1ff !important;
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-menu-item.is-active {
|
.el-menu-item.is-active {
|
||||||
background: #409eff !important;
|
background: #409eff !important;
|
||||||
}
|
}
|
||||||
@ -261,7 +300,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//按钮栏 选中样式
|
//按钮栏 选中样式
|
||||||
.ems-btns-group {
|
.ems-btns-group {
|
||||||
.activeBtn {
|
.activeBtn {
|
||||||
@ -276,6 +314,7 @@
|
|||||||
.select-container.el-form--inline .el-form-item {
|
.select-container.el-form--inline .el-form-item {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
//红色背景颜色按钮
|
//红色背景颜色按钮
|
||||||
.alarm-btn, .alarm-btn:hover, .alarm-btn:focus {
|
.alarm-btn, .alarm-btn:hover, .alarm-btn:focus {
|
||||||
background-color: #FC6B69;
|
background-color: #FC6B69;
|
||||||
|
|||||||
@ -1,19 +1,22 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<div v-for="(baseInfo,index) in baseInfoList" :key="index+'bmsdccContainer'" style="margin-bottom:25px;">
|
<div v-for="(baseInfo,index) in baseInfoList" :key="index+'bmsdccContainer'" style="margin-bottom:25px;">
|
||||||
<el-card shadow="always" class="sbjk-card-container common-card-container-body-no-padding common-card-container-no-title-bg"
|
<el-card shadow="always"
|
||||||
|
class="sbjk-card-container common-card-container-body-no-padding common-card-container-no-title-bg"
|
||||||
:class="{
|
:class="{
|
||||||
'warning-card-container':baseInfo.workStatus && baseInfo.workStatus !== '0',
|
'warning-card-container':baseInfo.workStatus && baseInfo.workStatus !== '0',
|
||||||
'running-card-container':baseInfo.workStatus === '0'
|
'running-card-container':baseInfo.workStatus === '0'
|
||||||
}">
|
}">
|
||||||
<div slot="header">
|
<div slot="header">
|
||||||
<span class="large-title">{{baseInfo.parentDeviceName?`${baseInfo.parentDeviceName} -> ` : ''}}{{baseInfo.deviceName}}</span>
|
<span
|
||||||
|
class="large-title">{{ baseInfo.parentDeviceName ? `${baseInfo.parentDeviceName} -> ` : '' }}{{ baseInfo.deviceName }}</span>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div>数据更新时间:{{ baseInfo.dataUpdateTime || '-' }}</div>
|
<div>数据更新时间:{{ baseInfo.dataUpdateTime || '-' }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alarm">
|
<div class="alarm">
|
||||||
<el-button type="primary" size="small" style="margin-right:20px;" @click="pointDetail(baseInfo,'point')">详细</el-button>
|
<el-button type="primary" round size="small" style="margin-right:20px;"
|
||||||
|
@click="pointDetail(baseInfo,'point')">详细
|
||||||
|
</el-button>
|
||||||
<el-badge :value="baseInfo.alarmNum || 0" class="item">
|
<el-badge :value="baseInfo.alarmNum || 0" class="item">
|
||||||
<i
|
<i
|
||||||
class="el-icon-message-solid alarm-icon"
|
class="el-icon-message-solid alarm-icon"
|
||||||
@ -24,14 +27,26 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="descriptions-main">
|
<div class="descriptions-main">
|
||||||
<el-descriptions direction="vertical" :column="3" :colon="false">
|
<el-descriptions direction="vertical" :column="3" :colon="false">
|
||||||
<el-descriptions-item labelClassName="descriptions-label" :contentClassName="`descriptions-direction ${baseInfo.workStatus === '0' ? 'save' :'danger'}`" :span="1" label="工作状态" >{{$store.state.ems.workStatusOptions[baseInfo.workStatus]}}</el-descriptions-item>
|
<el-descriptions-item labelClassName="descriptions-label"
|
||||||
<el-descriptions-item labelClassName="descriptions-label" contentClassName="descriptions-direction" :span="1" label="与PCS通信">{{$store.state.ems.communicationStatusOptions[baseInfo.pcsCommunicationStatus]}}</el-descriptions-item>
|
:contentClassName="`descriptions-direction ${baseInfo.workStatus === '0' ? 'save' :'danger'}`"
|
||||||
<el-descriptions-item labelClassName="descriptions-label" contentClassName="descriptions-direction" :span="1" label="与EMS通信">{{$store.state.ems.communicationStatusOptions[baseInfo.emsCommunicationStatus]}}</el-descriptions-item>
|
:span="1" label="工作状态">
|
||||||
|
{{ $store.state.ems.workStatusOptions[baseInfo.workStatus] }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item labelClassName="descriptions-label" contentClassName="descriptions-direction"
|
||||||
|
:span="1" label="与PCS通信">
|
||||||
|
{{ $store.state.ems.communicationStatusOptions[baseInfo.pcsCommunicationStatus] }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item labelClassName="descriptions-label" contentClassName="descriptions-direction"
|
||||||
|
:span="1" label="与EMS通信">
|
||||||
|
{{ $store.state.ems.communicationStatusOptions[baseInfo.emsCommunicationStatus] }}
|
||||||
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
<div class="descriptions-main descriptions-main-bg-color">
|
<div class="descriptions-main descriptions-main-bg-color">
|
||||||
<el-descriptions direction="vertical" :column="3" :colon="false">
|
<el-descriptions direction="vertical" :column="3" :colon="false">
|
||||||
<el-descriptions-item labelClassName="descriptions-label" contentClassName="descriptions-direction" v-for="(item,index) in infoData" :key="index+'pcsInfoData'" :span="1" :label="item.label">
|
<el-descriptions-item labelClassName="descriptions-label" contentClassName="descriptions-direction"
|
||||||
|
v-for="(item,index) in infoData" :key="index+'pcsInfoData'" :span="1"
|
||||||
|
:label="item.label">
|
||||||
<span class="pointer" @click="showChart(item.pointName || '',baseInfo.deviceId)">
|
<span class="pointer" @click="showChart(item.pointName || '',baseInfo.deviceId)">
|
||||||
{{ baseInfo[item.attr] | formatNumber }} <span v-if="item.unit" v-html="item.unit"></span>
|
{{ baseInfo[item.attr] | formatNumber }} <span v-if="item.unit" v-html="item.unit"></span>
|
||||||
</span>
|
</span>
|
||||||
@ -42,7 +57,9 @@
|
|||||||
<div class="process-line-bg">
|
<div class="process-line-bg">
|
||||||
<div class="process-line" :style="{height:baseInfo.currentSoc+'%'}"></div>
|
<div class="process-line" :style="{height:baseInfo.currentSoc+'%'}"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="process pointer" @click="showChart( '当前SOC',baseInfo.deviceId)">当前SOC : {{baseInfo.currentSoc}}%</div>
|
<div class="process pointer" @click="showChart( '当前SOC',baseInfo.deviceId)">当前SOC :
|
||||||
|
{{ baseInfo.currentSoc }}%
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@ -62,14 +79,16 @@
|
|||||||
label="单体平均值"
|
label="单体平均值"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="pointer" @click="showChart( tablePointNameMap[scope.row.dataName+scope.column.label],baseInfo.deviceId)">{{scope.row.avgData}}</span>
|
<span class="pointer"
|
||||||
|
@click="showChart( tablePointNameMap[scope.row.dataName+scope.column.label],baseInfo.deviceId)">{{ scope.row.avgData }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="minData"
|
prop="minData"
|
||||||
label="单体最小值">
|
label="单体最小值">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="pointer" @click="showChart( tablePointNameMap[scope.row.dataName+scope.column.label],baseInfo.deviceId)">{{scope.row.minData}}</span>
|
<span class="pointer"
|
||||||
|
@click="showChart( tablePointNameMap[scope.row.dataName+scope.column.label],baseInfo.deviceId)">{{ scope.row.minData }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -80,7 +99,8 @@
|
|||||||
prop="maxData"
|
prop="maxData"
|
||||||
label="单体最大值">
|
label="单体最大值">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="pointer " @click="showChart( tablePointNameMap[scope.row.dataName+scope.column.label],baseInfo.deviceId)">{{scope.row.maxData}}</span>
|
<span class="pointer "
|
||||||
|
@click="showChart( tablePointNameMap[scope.row.dataName+scope.column.label],baseInfo.deviceId)">{{ scope.row.maxData }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -103,6 +123,7 @@ import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
|||||||
import {getBMSBatteryCluster} from '@/api/ems/dzjk'
|
import {getBMSBatteryCluster} from '@/api/ems/dzjk'
|
||||||
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
||||||
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DzjkSbjkBmsdcc',
|
name: 'DzjkSbjkBmsdcc',
|
||||||
mixins: [getQuerySiteId, intervalUpdate],
|
mixins: [getQuerySiteId, intervalUpdate],
|
||||||
@ -153,7 +174,9 @@ export default {
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
getBMSBatteryCluster(this.siteId).then(response => {
|
getBMSBatteryCluster(this.siteId).then(response => {
|
||||||
this.baseInfoList = JSON.parse(JSON.stringify(response?.data || []));
|
this.baseInfoList = JSON.parse(JSON.stringify(response?.data || []));
|
||||||
}).finally(() => {this.loading = false})
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
this.updateData()
|
this.updateData()
|
||||||
@ -169,10 +192,12 @@ export default {
|
|||||||
.descriptions-main {
|
.descriptions-main {
|
||||||
padding: 24px 300px 24px 24px;
|
padding: 24px 300px 24px 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.descriptions-main-bottom {
|
.descriptions-main-bottom {
|
||||||
padding: 14px 300px 14px 24px;
|
padding: 14px 300px 14px 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 进度条样式
|
// 进度条样式
|
||||||
.process-container {
|
.process-container {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
@ -180,6 +205,7 @@ export default {
|
|||||||
right: 70px;
|
right: 70px;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
|
|
||||||
.process-line-bg {
|
.process-line-bg {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -187,6 +213,7 @@ export default {
|
|||||||
background-color: #fff2cb;
|
background-color: #fff2cb;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
box-shadow: 0 0 10px #fff2cb, 0 0 0 rgba(255, 242, 203, 0.5);
|
box-shadow: 0 0 10px #fff2cb, 0 0 0 rgba(255, 242, 203, 0.5);
|
||||||
|
|
||||||
.process-line {
|
.process-line {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -198,6 +225,7 @@ export default {
|
|||||||
box-shadow: 0 0 10px #ffbf14, 0 0 0 rgba(255, 191, 20, 0.5);
|
box-shadow: 0 0 10px #ffbf14, 0 0 0 rgba(255, 191, 20, 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.process {
|
.process {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<div v-for="(baseInfo,index) in baseInfoList" :key="index+'bmszlContainer'" style="margin-bottom:25px;">
|
<div v-for="(baseInfo,index) in baseInfoList" :key="index+'bmszlContainer'" style="margin-bottom:25px;">
|
||||||
@ -13,7 +12,9 @@
|
|||||||
<div>数据更新时间:{{ baseInfo.dataUpdateTime || '-' }}</div>
|
<div>数据更新时间:{{ baseInfo.dataUpdateTime || '-' }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alarm">
|
<div class="alarm">
|
||||||
<el-button type="primary" size="small" style="margin-right:20px;" @click="pointDetail(baseInfo,'point')">详细</el-button>
|
<el-button type="primary" round size="small" style="margin-right:20px;"
|
||||||
|
@click="pointDetail(baseInfo,'point')">详细
|
||||||
|
</el-button>
|
||||||
<el-badge :value="baseInfo.alarmNum || 0" class="item">
|
<el-badge :value="baseInfo.alarmNum || 0" class="item">
|
||||||
<i
|
<i
|
||||||
class="el-icon-message-solid alarm-icon"
|
class="el-icon-message-solid alarm-icon"
|
||||||
@ -24,14 +25,26 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="descriptions-main">
|
<div class="descriptions-main">
|
||||||
<el-descriptions :colon="false" :column="3" direction="vertical">
|
<el-descriptions :colon="false" :column="3" direction="vertical">
|
||||||
<el-descriptions-item :contentClassName="`descriptions-direction ${baseInfo.workStatus === '0' ? 'save' :'danger'}`" :span="1" label="工作状态" labelClassName="descriptions-label" >{{$store.state.ems.workStatusOptions[baseInfo.workStatus]}}</el-descriptions-item>
|
<el-descriptions-item
|
||||||
<el-descriptions-item :span="1" contentClassName="descriptions-direction" label="与PCS通信" labelClassName="descriptions-label">{{$store.state.ems.communicationStatusOptions[baseInfo.pcsCommunicationStatus]}}</el-descriptions-item>
|
:contentClassName="`descriptions-direction ${baseInfo.workStatus === '0' ? 'save' :'danger'}`" :span="1"
|
||||||
<el-descriptions-item :span="1" contentClassName="descriptions-direction" label="与EMS通信" labelClassName="descriptions-label">{{$store.state.ems.communicationStatusOptions[baseInfo.emsCommunicationStatus]}}</el-descriptions-item>
|
label="工作状态" labelClassName="descriptions-label">
|
||||||
|
{{ $store.state.ems.workStatusOptions[baseInfo.workStatus] }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item :span="1" contentClassName="descriptions-direction" label="与PCS通信"
|
||||||
|
labelClassName="descriptions-label">
|
||||||
|
{{ $store.state.ems.communicationStatusOptions[baseInfo.pcsCommunicationStatus] }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item :span="1" contentClassName="descriptions-direction" label="与EMS通信"
|
||||||
|
labelClassName="descriptions-label">
|
||||||
|
{{ $store.state.ems.communicationStatusOptions[baseInfo.emsCommunicationStatus] }}
|
||||||
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
<div class="descriptions-main descriptions-main-bg-color">
|
<div class="descriptions-main descriptions-main-bg-color">
|
||||||
<el-descriptions :colon="false" :column="3" direction="vertical">
|
<el-descriptions :colon="false" :column="3" direction="vertical">
|
||||||
<el-descriptions-item v-for="(item,index) in infoData" :key="index+'pcsInfoData'" :label="item.label" :span="1" contentClassName="descriptions-direction" labelClassName="descriptions-label">
|
<el-descriptions-item v-for="(item,index) in infoData" :key="index+'pcsInfoData'" :label="item.label"
|
||||||
|
:span="1" contentClassName="descriptions-direction"
|
||||||
|
labelClassName="descriptions-label">
|
||||||
<span class="pointer" @click="showChart(item.pointName || '',baseInfo.deviceId)">
|
<span class="pointer" @click="showChart(item.pointName || '',baseInfo.deviceId)">
|
||||||
{{ baseInfo[item.attr] | formatNumber }}<span v-if="item.unit" v-html="item.unit"></span>
|
{{ baseInfo[item.attr] | formatNumber }}<span v-if="item.unit" v-html="item.unit"></span>
|
||||||
</span>
|
</span>
|
||||||
@ -42,7 +55,9 @@
|
|||||||
<div class="process-line-bg">
|
<div class="process-line-bg">
|
||||||
<div :style="{height:baseInfo.stackSoc+'%'}" class="process-line"></div>
|
<div :style="{height:baseInfo.stackSoc+'%'}" class="process-line"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="process pointer" @click="showChart('当前SOC',baseInfo.deviceId)">当前SOC : {{baseInfo.stackSoc}}%</div>
|
<div class="process pointer" @click="showChart('当前SOC',baseInfo.deviceId)">当前SOC :
|
||||||
|
{{ baseInfo.stackSoc }}%
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
@ -59,26 +74,30 @@
|
|||||||
label="簇电压"
|
label="簇电压"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="pointer" @click="showChart('簇电压',scope.row.clusterId,'CLUSTER')">{{scope.row.clusterVoltage}} V</span>
|
<span class="pointer"
|
||||||
|
@click="showChart('簇电压',scope.row.clusterId,'CLUSTER')">{{ scope.row.clusterVoltage }} V</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="簇电流">
|
label="簇电流">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="pointer" @click="showChart('簇电流',scope.row.clusterId,'CLUSTER')">{{scope.row.clusterCurrent}} A</span>
|
<span class="pointer"
|
||||||
|
@click="showChart('簇电流',scope.row.clusterId,'CLUSTER')">{{ scope.row.clusterCurrent }} A</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="簇SOC">
|
label="簇SOC">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="pointer" @click="showChart('当前SOC',scope.row.clusterId,'CLUSTER')">{{scope.row.currentSoc}} %</span>
|
<span class="pointer"
|
||||||
|
@click="showChart('当前SOC',scope.row.clusterId,'CLUSTER')">{{ scope.row.currentSoc }} %</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="单体最高电压"
|
label="单体最高电压"
|
||||||
prop="maxVoltage">
|
prop="maxVoltage">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="pointer" @click="showChart('最高单体电压',scope.row.clusterId,'CLUSTER')">{{scope.row.maxCellVoltage}} V</span>
|
<span class="pointer"
|
||||||
|
@click="showChart('最高单体电压',scope.row.clusterId,'CLUSTER')">{{ scope.row.maxCellVoltage }} V</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -89,7 +108,8 @@
|
|||||||
label="单体最低电压"
|
label="单体最低电压"
|
||||||
prop="minVoltage">
|
prop="minVoltage">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="pointer" @click="showChart('最低单体电压',scope.row.clusterId,'CLUSTER')">{{scope.row.minCellVoltage}} V</span>
|
<span class="pointer"
|
||||||
|
@click="showChart('最低单体电压',scope.row.clusterId,'CLUSTER')">{{ scope.row.minCellVoltage }} V</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -99,7 +119,8 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="单体最高温度">
|
label="单体最高温度">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="pointer" @click="showChart('最高单体温度',scope.row.clusterId,'CLUSTER')">{{scope.row.maxCellTemp}} ℃</span>
|
<span class="pointer"
|
||||||
|
@click="showChart('最高单体温度',scope.row.clusterId,'CLUSTER')">{{ scope.row.maxCellTemp }} ℃</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -110,7 +131,8 @@
|
|||||||
label="单体最低温度"
|
label="单体最低温度"
|
||||||
prop="minTemperature">
|
prop="minTemperature">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span class="pointer" @click="showChart('最低单体温度',scope.row.clusterId,'CLUSTER')">{{scope.row.minCellTemp}} ℃</span>
|
<span class="pointer"
|
||||||
|
@click="showChart('最低单体温度',scope.row.clusterId,'CLUSTER')">{{ scope.row.minCellTemp }} ℃</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -133,6 +155,7 @@ import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
|||||||
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
||||||
import pointChart from "./../PointChart.vue";
|
import pointChart from "./../PointChart.vue";
|
||||||
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DzjkSbjkBmszl',
|
name: 'DzjkSbjkBmszl',
|
||||||
components: {pointChart, PointTable},
|
components: {pointChart, PointTable},
|
||||||
@ -167,7 +190,9 @@ export default {
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
getBMSOverView(this.siteId).then(response => {
|
getBMSOverView(this.siteId).then(response => {
|
||||||
this.baseInfoList = JSON.parse(JSON.stringify(response?.data || []));
|
this.baseInfoList = JSON.parse(JSON.stringify(response?.data || []));
|
||||||
}).finally(() => {this.loading = false})
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
this.updateData()
|
this.updateData()
|
||||||
@ -189,6 +214,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 进度条样式
|
// 进度条样式
|
||||||
.process-container {
|
.process-container {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
@ -196,6 +222,7 @@ export default {
|
|||||||
right: 70px;
|
right: 70px;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
|
|
||||||
.process-line-bg {
|
.process-line-bg {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -203,6 +230,7 @@ export default {
|
|||||||
background-color: #fff2cb;
|
background-color: #fff2cb;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
box-shadow: 0 0 10px #fff2cb, 0 0 0 rgba(255, 242, 203, 0.5);
|
box-shadow: 0 0 10px #fff2cb, 0 0 0 rgba(255, 242, 203, 0.5);
|
||||||
|
|
||||||
.process-line {
|
.process-line {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -214,6 +242,7 @@ export default {
|
|||||||
box-shadow: 0 0 10px rgb(252 108 108), 0 0 0 rgba(252, 108, 108, 0.5);
|
box-shadow: 0 0 10px rgb(252 108 108), 0 0 0 rgba(252, 108, 108, 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.process {
|
.process {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
|
|||||||
@ -23,7 +23,9 @@
|
|||||||
<div>数据更新时间:{{ item.dataUpdateTime }}</div>
|
<div>数据更新时间:{{ item.dataUpdateTime }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alarm">
|
<div class="alarm">
|
||||||
<el-button type="primary" size="small" style="margin-right:20px;" @click="pointDetail(item,'point')">详细</el-button>
|
<el-button type="primary" round size="small" style="margin-right:20px;" @click="pointDetail(item,'point')">
|
||||||
|
详细
|
||||||
|
</el-button>
|
||||||
<el-badge :value="item.alarmNum || 0" class="item">
|
<el-badge :value="item.alarmNum || 0" class="item">
|
||||||
<i
|
<i
|
||||||
class="el-icon-message-solid alarm-icon"
|
class="el-icon-message-solid alarm-icon"
|
||||||
@ -33,9 +35,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-row class="device-info-row">
|
<el-row class="device-info-row">
|
||||||
<el-col v-for="(tempDataItem,tempDataIndex) in deviceIdTypeMsg[item.deviceId]" :key="tempDataIndex+'dbTempData'" :span="8" class="device-info-col">
|
<el-col v-for="(tempDataItem,tempDataIndex) in deviceIdTypeMsg[item.deviceId]" :key="tempDataIndex+'dbTempData'"
|
||||||
|
:span="8" class="device-info-col">
|
||||||
<span class="pointer" @click="showChart(tempDataItem.pointName,item.deviceId)">
|
<span class="pointer" @click="showChart(tempDataItem.pointName,item.deviceId)">
|
||||||
<span class="left">{{tempDataItem.name}}</span> <span class="right">{{item[tempDataItem.attr]}}<span v-html="tempDataItem.unit"></span></span>
|
<span class="left">{{ tempDataItem.name }}</span> <span class="right">{{ item[tempDataItem.attr] }}<span
|
||||||
|
v-html="tempDataItem.unit"></span></span>
|
||||||
</span>
|
</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -52,6 +56,7 @@ import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
|||||||
import {getAmmeterDataList} from "@/api/ems/dzjk";
|
import {getAmmeterDataList} from "@/api/ems/dzjk";
|
||||||
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
||||||
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "DzjkSbjkDb",
|
name: "DzjkSbjkDb",
|
||||||
mixins: [getQuerySiteId, intervalUpdate],
|
mixins: [getQuerySiteId, intervalUpdate],
|
||||||
@ -174,7 +179,8 @@ export default {
|
|||||||
this.updateInterval(this.updateData)
|
this.updateInterval(this.updateData)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<el-card
|
<el-card
|
||||||
@ -12,7 +11,9 @@
|
|||||||
<div>数据更新时间:{{ item.dataUpdateTime || '-' }}</div>
|
<div>数据更新时间:{{ item.dataUpdateTime || '-' }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alarm">
|
<div class="alarm">
|
||||||
<el-button type="primary" size="small" style="margin-right:20px;" @click="pointDetail(item,'point')">详细</el-button>
|
<el-button type="primary" round size="small" style="margin-right:20px;" @click="pointDetail(item,'point')">
|
||||||
|
详细
|
||||||
|
</el-button>
|
||||||
<el-badge :value="item.alarmNum || 0" class="item">
|
<el-badge :value="item.alarmNum || 0" class="item">
|
||||||
<i
|
<i
|
||||||
class="el-icon-message-solid alarm-icon"
|
class="el-icon-message-solid alarm-icon"
|
||||||
@ -22,9 +23,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-row class="device-info-row">
|
<el-row class="device-info-row">
|
||||||
<el-col v-for="(tempDataItem,tempDataIndex) in tempData" :key="tempDataIndex+'hdTempData'" :span="12" class="device-info-col">
|
<el-col v-for="(tempDataItem,tempDataIndex) in tempData" :key="tempDataIndex+'hdTempData'" :span="12"
|
||||||
|
class="device-info-col">
|
||||||
<span class="pointer" @click="showChart(tempDataItem.title,item.deviceId)">
|
<span class="pointer" @click="showChart(tempDataItem.title,item.deviceId)">
|
||||||
<span class="left">{{tempDataItem.title}}</span> <span class="right">{{item[tempDataItem.attr]}}<span v-html="tempDataItem.unit"></span></span>
|
<span class="left">{{ tempDataItem.title }}</span> <span class="right">{{ item[tempDataItem.attr] }}<span
|
||||||
|
v-html="tempDataItem.unit"></span></span>
|
||||||
</span>
|
</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -42,6 +45,7 @@ import {getDhDataList} from '@/api/ems/dzjk'
|
|||||||
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
||||||
import pointChart from "./../PointChart.vue";
|
import pointChart from "./../PointChart.vue";
|
||||||
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DzjkSbjkDh',
|
name: 'DzjkSbjkDh',
|
||||||
mixins: [getQuerySiteId, intervalUpdate],
|
mixins: [getQuerySiteId, intervalUpdate],
|
||||||
@ -51,8 +55,8 @@ export default {
|
|||||||
loading: false,
|
loading: false,
|
||||||
list: [],
|
list: [],
|
||||||
tempData: [
|
tempData: [
|
||||||
{title:'湿度',attr:'humidity',unit:'℃'},
|
{title: '湿度', attr: 'humidity', unit: ''},
|
||||||
{title:'温度',attr:'temperature',unit:''},
|
{title: '温度', attr: 'temperature', unit: '℃'},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -69,7 +73,9 @@ export default {
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
getDhDataList(this.siteId).then(response => {
|
getDhDataList(this.siteId).then(response => {
|
||||||
this.list = JSON.parse(JSON.stringify(response?.data || []));
|
this.list = JSON.parse(JSON.stringify(response?.data || []));
|
||||||
}).finally(() => {this.loading = false})
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
this.updateData()
|
this.updateData()
|
||||||
@ -87,20 +93,24 @@ export default {
|
|||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-row {
|
.el-row {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
border: 1px solid #eeeeee;
|
border: 1px solid #eeeeee;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
|
||||||
.el-col {
|
.el-col {
|
||||||
padding: 12px 0;
|
padding: 12px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-col {
|
.el-col {
|
||||||
border-bottom: 1px solid #eeeeee;
|
border-bottom: 1px solid #eeeeee;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-col:not(:nth-child(3n)) {
|
.el-col:not(:nth-child(3n)) {
|
||||||
border-right: 1px solid #eeeeee;
|
border-right: 1px solid #eeeeee;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -218,7 +218,7 @@
|
|||||||
<div>数据更新时间:{{ item.dataUpdateTime }}</div>
|
<div>数据更新时间:{{ item.dataUpdateTime }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alarm">
|
<div class="alarm">
|
||||||
<el-button size="small" style="margin-right:20px;" type="primary" @click="pointDetail(item,'point')">详细
|
<el-button size="small" round style="margin-right:20px;" type="primary" @click="pointDetail(item,'point')">详细
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-badge :value="item.alarmNum || 0" class="item">
|
<el-badge :value="item.alarmNum || 0" class="item">
|
||||||
<i
|
<i
|
||||||
|
|||||||
@ -32,10 +32,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="alarm">
|
<div class="alarm">
|
||||||
<pcs-switch style="margin-right:10px;"
|
<pcs-switch style="margin-right:10px;"
|
||||||
|
:round="true"
|
||||||
size="small"
|
size="small"
|
||||||
|
type="danger"
|
||||||
:data="pcsItem"
|
:data="pcsItem"
|
||||||
@updateSuccess="init"/>
|
@updateSuccess="init"/>
|
||||||
<el-button type="primary" size="small" style="margin-right:20px;" @click="pointDetail(pcsItem,'point')">
|
<el-button type="primary" round size="small" style="margin-right:20px;"
|
||||||
|
@click="pointDetail(pcsItem,'point')">
|
||||||
详细
|
详细
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-badge :value="pcsItem.alarmNum || 0" class="item">
|
<el-badge :value="pcsItem.alarmNum || 0" class="item">
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<el-card
|
<el-card
|
||||||
@ -23,7 +22,9 @@
|
|||||||
<div>数据更新时间:{{ item.dataUpdateTime || '-' }}</div>
|
<div>数据更新时间:{{ item.dataUpdateTime || '-' }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alarm">
|
<div class="alarm">
|
||||||
<el-button type="primary" size="small" style="margin-right:20px;" @click="pointDetail(item,'point')">详细</el-button>
|
<el-button type="primary" round size="small" style="margin-right:20px;" @click="pointDetail(item,'point')">
|
||||||
|
详细
|
||||||
|
</el-button>
|
||||||
<el-badge :value="item.alarmNum || 0" class="item">
|
<el-badge :value="item.alarmNum || 0" class="item">
|
||||||
<i
|
<i
|
||||||
class="el-icon-message-solid alarm-icon"
|
class="el-icon-message-solid alarm-icon"
|
||||||
@ -33,9 +34,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-row class="device-info-row">
|
<el-row class="device-info-row">
|
||||||
<el-col v-for="(tempDataItem,tempDataIndex) in tempData" :key="tempDataIndex+'hdTempData'" :span="12" class="device-info-col">
|
<el-col v-for="(tempDataItem,tempDataIndex) in tempData" :key="tempDataIndex+'hdTempData'" :span="12"
|
||||||
|
class="device-info-col">
|
||||||
<span class="pointer" @click="showChart(tempDataItem.title,item.deviceId)">
|
<span class="pointer" @click="showChart(tempDataItem.title,item.deviceId)">
|
||||||
<span class="left">{{tempDataItem.title}}</span> <span class="right">{{item[tempDataItem.attr] || ''}}<span v-html="tempDataItem.unit"></span></span>
|
<span class="left">{{ tempDataItem.title }}</span> <span class="right">{{ item[tempDataItem.attr] || '' }}<span
|
||||||
|
v-html="tempDataItem.unit"></span></span>
|
||||||
</span>
|
</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -53,6 +56,7 @@ import {getXfDataList} from '@/api/ems/dzjk'
|
|||||||
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
||||||
import pointChart from "./../PointChart.vue";
|
import pointChart from "./../PointChart.vue";
|
||||||
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DzjkSbjkXf',
|
name: 'DzjkSbjkXf',
|
||||||
mixins: [getQuerySiteId, intervalUpdate],
|
mixins: [getQuerySiteId, intervalUpdate],
|
||||||
@ -82,7 +86,9 @@ export default {
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
getXfDataList(this.siteId).then(response => {
|
getXfDataList(this.siteId).then(response => {
|
||||||
this.list = JSON.parse(JSON.stringify(response?.data || []));
|
this.list = JSON.parse(JSON.stringify(response?.data || []));
|
||||||
}).finally(() => {this.loading = false})
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
this.updateData()
|
this.updateData()
|
||||||
@ -100,20 +106,24 @@ export default {
|
|||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-row {
|
.el-row {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
border: 1px solid #eeeeee;
|
border: 1px solid #eeeeee;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
|
||||||
.el-col {
|
.el-col {
|
||||||
padding: 12px 0;
|
padding: 12px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-col {
|
.el-col {
|
||||||
border-bottom: 1px solid #eeeeee;
|
border-bottom: 1px solid #eeeeee;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-col:not(:nth-child(3n)) {
|
.el-col:not(:nth-child(3n)) {
|
||||||
border-right: 1px solid #eeeeee;
|
border-right: 1px solid #eeeeee;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<el-card
|
<el-card
|
||||||
@ -12,7 +11,9 @@
|
|||||||
<div>数据更新时间:{{ item.dataUpdateTime || '-' }}</div>
|
<div>数据更新时间:{{ item.dataUpdateTime || '-' }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alarm">
|
<div class="alarm">
|
||||||
<el-button type="primary" size="small" style="margin-right:20px;" @click="pointDetail(item,'point')">详细</el-button>
|
<el-button type="primary" round size="small" style="margin-right:20px;" @click="pointDetail(item,'point')">
|
||||||
|
详细
|
||||||
|
</el-button>
|
||||||
<el-badge :value="item.alarmNum || 0" class="item">
|
<el-badge :value="item.alarmNum || 0" class="item">
|
||||||
<i
|
<i
|
||||||
class="el-icon-message-solid alarm-icon"
|
class="el-icon-message-solid alarm-icon"
|
||||||
@ -22,9 +23,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-row class="device-info-row">
|
<el-row class="device-info-row">
|
||||||
<el-col v-for="(tempDataItem,tempDataIndex) in tempData" :key="tempDataIndex+'ylTempData'" :span="8" class="device-info-col">
|
<el-col v-for="(tempDataItem,tempDataIndex) in tempData" :key="tempDataIndex+'ylTempData'" :span="8"
|
||||||
|
class="device-info-col">
|
||||||
<span class="pointer" @click="showChart(tempDataItem.title,item.deviceId)">
|
<span class="pointer" @click="showChart(tempDataItem.title,item.deviceId)">
|
||||||
<span class="left">{{tempDataItem.title}}</span> <span class="right">{{item[tempDataItem.attr]}}<span v-html="tempDataItem.unit"></span></span>
|
<span class="left">{{ tempDataItem.title }}</span> <span class="right">{{ item[tempDataItem.attr] }}<span
|
||||||
|
v-html="tempDataItem.unit"></span></span>
|
||||||
</span>
|
</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -42,6 +45,7 @@ import {getCoolingDataList} from '@/api/ems/dzjk'
|
|||||||
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
||||||
import pointChart from "./../PointChart.vue";
|
import pointChart from "./../PointChart.vue";
|
||||||
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DzjkSbjkYl',
|
name: 'DzjkSbjkYl',
|
||||||
mixins: [getQuerySiteId, intervalUpdate],
|
mixins: [getQuerySiteId, intervalUpdate],
|
||||||
@ -74,7 +78,9 @@ export default {
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
getCoolingDataList(this.siteId).then(response => {
|
getCoolingDataList(this.siteId).then(response => {
|
||||||
this.list = JSON.parse(JSON.stringify(response?.data || []));
|
this.list = JSON.parse(JSON.stringify(response?.data || []));
|
||||||
}).finally(() => {this.loading = false})
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
this.updateData()
|
this.updateData()
|
||||||
|
|||||||
@ -34,10 +34,10 @@
|
|||||||
<div
|
<div
|
||||||
class="status"
|
class="status"
|
||||||
:class="
|
:class="
|
||||||
item.runningStatus === '2' ? 'status-running' : ''
|
item.deviceStatus === '2' ? 'status-running' : ''
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ deviceStatusOptions[item.runningStatus] }}
|
{{ deviceStatusOptions[item.deviceStatus] }}
|
||||||
</div>
|
</div>
|
||||||
<div class="row-items-img">
|
<div class="row-items-img">
|
||||||
<img
|
<img
|
||||||
@ -68,10 +68,10 @@
|
|||||||
<div
|
<div
|
||||||
class="status"
|
class="status"
|
||||||
:class="
|
:class="
|
||||||
item.runningStatus === '2' ? 'status-running' : ''
|
item.deviceStatus === '2' ? 'status-running' : ''
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ deviceStatusOptions[item.runningStatus] }}
|
{{ deviceStatusOptions[item.deviceStatus] }}
|
||||||
</div>
|
</div>
|
||||||
<div class="row-items-img">
|
<div class="row-items-img">
|
||||||
<img
|
<img
|
||||||
@ -107,10 +107,10 @@
|
|||||||
<div
|
<div
|
||||||
class="status"
|
class="status"
|
||||||
:class="
|
:class="
|
||||||
item.runningStatus === '2' ? 'status-running' : ''
|
item.deviceStatus === '2' ? 'status-running' : ''
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ deviceStatusOptions[item.runningStatus] }}
|
{{ deviceStatusOptions[item.deviceStatus] }}
|
||||||
</div>
|
</div>
|
||||||
<div class="row-items-img row-items-img-bms">
|
<div class="row-items-img row-items-img-bms">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
@ -150,10 +150,10 @@
|
|||||||
<div
|
<div
|
||||||
class="status"
|
class="status"
|
||||||
:class="
|
:class="
|
||||||
item.runningStatus === '2' ? 'status-running' : ''
|
item.deviceStatus === '2' ? 'status-running' : ''
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ deviceStatusOptions[item.runningStatus] }}
|
{{ deviceStatusOptions[item.deviceStatus] }}
|
||||||
</div>
|
</div>
|
||||||
<div class="row-items-img">
|
<div class="row-items-img">
|
||||||
<img
|
<img
|
||||||
@ -171,14 +171,14 @@
|
|||||||
<div
|
<div
|
||||||
class="status"
|
class="status"
|
||||||
:class="
|
:class="
|
||||||
item.children[0].runningStatus === '2'
|
item.children[0].deviceStatus === '2'
|
||||||
? 'status-running'
|
? 'status-running'
|
||||||
: ''
|
: ''
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
deviceStatusOptions[
|
deviceStatusOptions[
|
||||||
item.children[0].runningStatus
|
item.children[0].deviceStatus
|
||||||
]
|
]
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
@ -207,6 +207,7 @@
|
|||||||
import {getDeviceList} from "@/api/ems/site";
|
import {getDeviceList} from "@/api/ems/site";
|
||||||
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
||||||
import {mapState} from "vuex";
|
import {mapState} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "DzjkZxlt",
|
name: "DzjkZxlt",
|
||||||
mixins: [getQuerySiteId],
|
mixins: [getQuerySiteId],
|
||||||
@ -329,6 +330,7 @@ $lineColor: #86bcc7;
|
|||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
//云 、计算机 、箭头
|
//云 、计算机 、箭头
|
||||||
.top {
|
.top {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
@ -343,6 +345,7 @@ $lineColor: #86bcc7;
|
|||||||
//云 样式
|
//云 样式
|
||||||
.cloud-container {
|
.cloud-container {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
.cloud {
|
.cloud {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
height: 26px;
|
height: 26px;
|
||||||
@ -354,6 +357,7 @@ $lineColor: #86bcc7;
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cloud:before,
|
.cloud:before,
|
||||||
.cloud:after {
|
.cloud:after {
|
||||||
content: "";
|
content: "";
|
||||||
@ -363,20 +367,24 @@ $lineColor: #86bcc7;
|
|||||||
height: 30px;
|
height: 30px;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cloud:before {
|
.cloud:before {
|
||||||
top: -9px;
|
top: -9px;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cloud:after {
|
.cloud:after {
|
||||||
top: -6px;
|
top: -6px;
|
||||||
right: 9px;
|
right: 9px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//双箭头
|
//双箭头
|
||||||
.double-arrows {
|
.double-arrows {
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
.top-arrows,
|
.top-arrows,
|
||||||
.bottom-arrows {
|
.bottom-arrows {
|
||||||
height: 4px;
|
height: 4px;
|
||||||
@ -384,6 +392,7 @@ $lineColor: #86bcc7;
|
|||||||
background-color: #5ea9df;
|
background-color: #5ea9df;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -392,9 +401,11 @@ $lineColor: #86bcc7;
|
|||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-arrows {
|
.top-arrows {
|
||||||
vertical-align: super;
|
vertical-align: super;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-arrows::after {
|
.top-arrows::after {
|
||||||
top: -4px;
|
top: -4px;
|
||||||
border-bottom: 6px solid transparent;
|
border-bottom: 6px solid transparent;
|
||||||
@ -403,8 +414,10 @@ $lineColor: #86bcc7;
|
|||||||
border-top: 6px solid transparent;
|
border-top: 6px solid transparent;
|
||||||
left: -11px;
|
left: -11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom-arrows {
|
.bottom-arrows {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
top: -4px;
|
top: -4px;
|
||||||
border-top: 6px solid transparent;
|
border-top: 6px solid transparent;
|
||||||
@ -425,6 +438,7 @@ $lineColor: #86bcc7;
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: auto;
|
height: auto;
|
||||||
@ -432,6 +446,7 @@ $lineColor: #86bcc7;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.outer-border {
|
.outer-border {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
@ -467,8 +482,10 @@ $lineColor: #86bcc7;
|
|||||||
color: #000;
|
color: #000;
|
||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row-lists {
|
.row-lists {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.row-items {
|
.row-items {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
@ -503,16 +520,20 @@ $lineColor: #86bcc7;
|
|||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background: #aaaaaa;
|
background: #aaaaaa;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
|
||||||
&.status-running {
|
&.status-running {
|
||||||
background: #00c69c;
|
background: #00c69c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 图片+设备名称
|
// 图片+设备名称
|
||||||
.row-items-img {
|
.row-items-img {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
|
|
||||||
&.row-items-img-bms {
|
&.row-items-img-bms {
|
||||||
padding-top: 14px;
|
padding-top: 14px;
|
||||||
|
|
||||||
.num {
|
.num {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -2px;
|
top: -2px;
|
||||||
@ -526,21 +547,26 @@ $lineColor: #86bcc7;
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: auto;
|
height: auto;
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&.img-lq {
|
&.img-lq {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.img-pcs {
|
&.img-pcs {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.img-db {
|
&.img-db {
|
||||||
width: 56px;
|
width: 56px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
@ -559,19 +585,24 @@ $lineColor: #86bcc7;
|
|||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row-items {
|
.row-items {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.parent-dash {
|
.parent-dash {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
position: inherit;
|
position: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
content: "";
|
content: "";
|
||||||
@ -585,16 +616,19 @@ $lineColor: #86bcc7;
|
|||||||
transform: scale(0.4, 1);
|
transform: scale(0.4, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.children-dash {
|
.children-dash {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin: -20px 0 0 26px;
|
margin: -20px 0 0 26px;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
position: inherit;
|
position: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
content: "";
|
content: "";
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-button :size="size" :type="type" :circle='circle' @click="switchStatus"
|
<el-button :size="size" :type="type" :round="round" @click="switchStatus"
|
||||||
icon="el-icon-refresh-left">
|
>
|
||||||
|
{{ label }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -8,6 +9,7 @@
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
|
import {updateDeviceStatus} from "@/api/ems/site";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
@ -16,26 +18,21 @@ export default {
|
|||||||
default: 'mini',
|
default: 'mini',
|
||||||
required: false
|
required: false
|
||||||
},
|
},
|
||||||
|
round: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
required: false
|
||||||
|
},
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'primary',
|
default: 'primary',
|
||||||
required: false
|
required: false
|
||||||
},
|
},
|
||||||
// plain: {
|
|
||||||
// type: Boolean,
|
|
||||||
// default: true,
|
|
||||||
// required: false
|
|
||||||
// },
|
|
||||||
circle: {
|
|
||||||
type: Boolean,
|
|
||||||
default: true,
|
|
||||||
required: false
|
|
||||||
},
|
|
||||||
data: {
|
data: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => {
|
default: () => {
|
||||||
return {
|
return {
|
||||||
runningStatus: null,
|
deviceStatus: null,
|
||||||
deviceId: null,
|
deviceId: null,
|
||||||
deviceName: null,
|
deviceName: null,
|
||||||
}
|
}
|
||||||
@ -45,12 +42,13 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
label() {
|
label() {
|
||||||
return this.data.runningStatus === '4' ? '开机' : '关机'
|
return this.data.deviceStatus === '4' ? '开机' : '关机'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
switchStatus() {
|
switchStatus() {
|
||||||
const {runningStatus, deviceId, deviceName} = this.data
|
console.log(this.data, 11111111)
|
||||||
|
const {deviceStatus, deviceId, deviceName, siteId} = this.data
|
||||||
this.$confirm(`确认要${this.label}设备${deviceName || ''}吗?`, {
|
this.$confirm(`确认要${this.label}设备${deviceName || ''}吗?`, {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
@ -61,17 +59,17 @@ export default {
|
|||||||
if (action === "confirm") {
|
if (action === "confirm") {
|
||||||
instance.confirmButtonLoading = true;
|
instance.confirmButtonLoading = true;
|
||||||
//做开关机操作,更新成功后刷新表格
|
//做开关机操作,更新成功后刷新表格
|
||||||
setTimeout(() => {
|
updateDeviceStatus({
|
||||||
instance.confirmButtonLoading = false; //todo delete
|
siteId,
|
||||||
done()
|
deviceStatus,
|
||||||
}, 2000)
|
deviceId
|
||||||
// deleteProtectPlan(row.id)
|
})
|
||||||
// .then((response) => {
|
.then((response) => {
|
||||||
// response.code === 200 && done();
|
response.code === 200 && done();
|
||||||
// })
|
})
|
||||||
// .finally(() => {
|
.finally(() => {
|
||||||
// instance.confirmButtonLoading = false;
|
instance.confirmButtonLoading = false;
|
||||||
// });
|
});
|
||||||
} else {
|
} else {
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -80,12 +80,12 @@
|
|||||||
label="设备类别">
|
label="设备类别">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="runningStatus"
|
prop="deviceStatus"
|
||||||
label="在线状态">
|
label="在线状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ $store.state.ems.deviceStatusOptions[scope.row.runningStatus] }}</span>
|
<span>{{ $store.state.ems.deviceStatusOptions[scope.row.deviceStatus] }}</span>
|
||||||
<pcs-switch v-if="scope.row.deviceCategory === 'PCS'" style="margin-left:5px;"
|
<pcs-switch v-if="scope.row.deviceCategory === 'PCS'" style="margin-left:5px;"
|
||||||
:data="{runningStatus:scope.row.runningStatus,deviceId:scope.row.deviceId,deviceName:scope.row.deviceName}"
|
:data="{siteId:scope.row.siteId,deviceStatus:scope.row.deviceStatus,deviceId:scope.row.deviceId,deviceName:scope.row.deviceName}"
|
||||||
@updateSuccess="getData"/>
|
@updateSuccess="getData"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
Reference in New Issue
Block a user