From ae8a3668c831c2578b01e7670803f230fcbc186e Mon Sep 17 00:00:00 2001 From: g7hoo Date: Fri, 30 Sep 2022 15:04:19 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=AE=BE=E5=A4=87=E7=9A=84=E5=B7=A5?= =?UTF-8?q?=E6=AE=B5=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/zh-CN.js | 2 +- src/views/modules/monitoring/equipment.vue | 37 +++++++++++++++++++++- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js index bdd9795..402ecce 100644 --- a/src/i18n/zh-CN.js +++ b/src/i18n/zh-CN.js @@ -275,7 +275,7 @@ t.ws.code = '工段编码' t.ws.binded = '已绑定的设备' t.ws.unbind = '设备名称' t.ws.eqbindplaceholder = '选择一个设备进行绑定' -t.ws.sort = '排序' +t.ws.sort = '工段排序' t.ws.setorder = '请输入工段中设备的顺序' t.ws.bind = '绑定' t.ws.eqbind = '设备绑定' diff --git a/src/views/modules/monitoring/equipment.vue b/src/views/modules/monitoring/equipment.vue index 153bc46..88e109c 100644 --- a/src/views/modules/monitoring/equipment.vue +++ b/src/views/modules/monitoring/equipment.vue @@ -11,7 +11,15 @@ - + { + const wsConfig = this.addOrUpdateConfigs.fields.find(item => item.name === 'sectionId') + wsConfig.options = + res.data?.map(item => ({ + value: item.id, + label: item.name + })) || [] + }) + }, // 获取设备类型列表 getTypeList() { this.$http({