From e7bc43008f1df08ff583d56e81960f01eebad9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8F=9C?= <43331987+JiaLiBai@users.noreply.github.com> Date: Sat, 1 Nov 2025 13:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=8A=B6=E6=80=81=E6=9E=9A?= =?UTF-8?q?=E4=B8=BE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/work/index.vue | 17 +++++++++++++++-- pages/work/pcs/index.vue | 2 +- store/modules/ems.js | 9 ++++++--- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/pages/work/index.vue b/pages/work/index.vue index 38abe4e..05b72c4 100644 --- a/pages/work/index.vue +++ b/pages/work/index.vue @@ -5,13 +5,13 @@ - - @@ -397,6 +397,19 @@ margin-top: 40rpx; } + ::v-deep { + .uni-select__input-box { + width: 100%; + } + + .uni-select__selector-empty, + .uni-select__selector-item { + line-height: 18px; + padding-top: 5px; + padding-bottom: 5px; + } + } + .grid-item-box { flex: 1; /* #ifndef APP-NVUE */ diff --git a/pages/work/pcs/index.vue b/pages/work/pcs/index.vue index fef7d59..0a8db03 100644 --- a/pages/work/pcs/index.vue +++ b/pages/work/pcs/index.vue @@ -42,7 +42,7 @@ 设备状态 {{deviceStatusOptions[item.deviceStatus]}} + :class="item.deviceStatus === '2' ? 'status-running' : 'status-danger'">{{deviceStatusOptions[item.deviceStatus]}} diff --git a/store/modules/ems.js b/store/modules/ems.js index c10b3f9..8014901 100644 --- a/store/modules/ems.js +++ b/store/modules/ems.js @@ -6,10 +6,13 @@ const ems = { '2': '停止' }, //工作状态 deviceStatusOptions: { - '0': '在线', - '1': '离线', - '2': '维修中' + '0': '离线', + '1': '待机', + '2': '运行', + '3': '故障', + '4': '停机' }, //设备状态 + gridStatusOptions: { '0': '并网', '1': '未并网'