From 4079c40e5da1df95374424ea2258a7f5d32dfa71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8F=9C?= <43331987+JiaLiBai@users.noreply.github.com> Date: Thu, 8 Jan 2026 16:59:15 +0800 Subject: [PATCH] =?UTF-8?q?workStatus=E3=80=81deviceStatus=E6=9E=9A?= =?UTF-8?q?=E4=B8=BE=E6=9B=B4=E6=96=B0,pcs=E5=BC=80=E5=85=B3=E6=9C=BA?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/ems.js | 4 ++-- src/views/ems/dzjk/sbjk/pcs/index.vue | 6 +++--- src/views/ems/dzjk/zxlt/index.vue | 10 +++++----- src/views/ems/site/sblb/PcsSwitch.vue | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/store/modules/ems.js b/src/store/modules/ems.js index 8ea863d..bec3904 100644 --- a/src/store/modules/ems.js +++ b/src/store/modules/ems.js @@ -5,8 +5,8 @@ const ems = { dzjkAlarmLighting: false,//单站监控 告警统计红点标志 zdList: [], zdDeviceCategoryOptions: {},//站点各个站点包含的设备种类 {021_DDS_01:["BATTERY","CLUSTER","STACK", "DH", "AMMETER", "PCS", "XF"],021_DDS_02:[]...} - workStatusOptions: {'0': '正常', '1': '异常', '2': '停止'},//工作状态 - deviceStatusOptions: {'0': '离线', '1': '待机', '2': '运行', '3': '故障', '4': '停机'},//设备状态 + workStatusOptions: {'0': '运行', '1': '停机', '2': '故障'},//工作状态 + deviceStatusOptions: {'0': '离线', '1': '在线'},//设备状态 gridStatusOptions: {'0': '并网', '1': '未并网'},//并网状态 controlModeOptions: {'0': '远程', '1': '本地'},//控制模式 warnOptions: {0: '正常', 1: '中断', 2: '不在线', 3: '异常'},//告警状态 diff --git a/src/views/ems/dzjk/sbjk/pcs/index.vue b/src/views/ems/dzjk/sbjk/pcs/index.vue index b9085cb..0b9f221 100644 --- a/src/views/ems/dzjk/sbjk/pcs/index.vue +++ b/src/views/ems/dzjk/sbjk/pcs/index.vue @@ -9,8 +9,8 @@ > {{ deviceStatusOptions[item.deviceStatus] }} @@ -68,7 +68,7 @@
{{ deviceStatusOptions[item.deviceStatus] }} @@ -107,7 +107,7 @@
{{ deviceStatusOptions[item.deviceStatus] }} @@ -150,7 +150,7 @@
{{ deviceStatusOptions[item.deviceStatus] }} @@ -171,7 +171,7 @@
{ return { - deviceStatus: null, + workStatus: null, deviceId: null, deviceName: null, } @@ -42,13 +42,13 @@ export default { }, computed: { label() { - return this.data.deviceStatus === '4' ? '开机' : '关机' + return this.data.workStatus === '0' ? '关机' : '开机' } }, methods: { switchStatus() { console.log(this.data, 11111111) - const {deviceStatus, deviceId, deviceName, siteId} = this.data + const {workStatus, deviceId, deviceName, siteId} = this.data this.$confirm(`确认要${this.label}设备${deviceName || ''}吗?`, { confirmButtonText: "确定", cancelButtonText: "取消", @@ -61,7 +61,7 @@ export default { //做开关机操作,更新成功后刷新表格 updateDeviceStatus({ siteId, - deviceStatus, + workStatus: workStatus === '0' ? "1" : '0', deviceId }) .then((response) => {