From 9c13434c4846063b44777e07873b1035f1eae0bf Mon Sep 17 00:00:00 2001 From: g7hoo Date: Sat, 8 Oct 2022 08:55:17 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=AE=BE=E5=A4=87=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/monitoring/equipment.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/modules/monitoring/equipment.vue b/src/views/modules/monitoring/equipment.vue index 9007ccd..7176650 100644 --- a/src/views/modules/monitoring/equipment.vue +++ b/src/views/modules/monitoring/equipment.vue @@ -101,7 +101,7 @@ const addOrUpdateConfigs = { required: true, type: 'select', options: [], - relatedField: 'sectionId', // 关联下面的id,在更换lineId时,会清空相应的sectionId选择结果 + relatedField: 'sectionId' // 关联下面的id,在更换lineId时,会清空相应的sectionId选择结果 }, { name: 'sectionId', @@ -112,7 +112,8 @@ const addOrUpdateConfigs = { }, { name: 'sort', - label: i18n.t('ws.sort') + label: i18n.t('ws.sort'), + rules: [{ type: 'number', message: i18n.t('hints.number'), transform: val => Number(val) }] }, { name: 'groupId',