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': '未并网'