From f17fab4749a7ee1639451ae09550c161a16ed9df Mon Sep 17 00:00:00 2001 From: g7hoo Date: Tue, 16 Aug 2022 16:21:35 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=AE=BE=E5=A4=87=E4=BF=A1=E6=81=AF,?= =?UTF-8?q?=20=E6=9B=B4=E6=96=B0=E5=AD=97=E6=AE=B5=E7=9A=84=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/monitoring/equipment.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/modules/monitoring/equipment.vue b/src/views/modules/monitoring/equipment.vue index cdbb5ee..af0ea2a 100644 --- a/src/views/modules/monitoring/equipment.vue +++ b/src/views/modules/monitoring/equipment.vue @@ -60,7 +60,7 @@ const addOrUpdateConfigs = { type: 'dialog', infoUrl: '/monitoring/equipment', fields: [ - { name: 'name', label: '设备名称' }, + { name: 'name', label: '设备名称', required: true }, { name: 'code', label: '设备编码' }, { name: 'enName', label: '英文名称' }, { name: 'abbr', label: '缩写' }, @@ -68,8 +68,8 @@ const addOrUpdateConfigs = { { name: 'groupId', label: '设备分组', required: true, type: 'select', options: [] }, { name: 'productionTime', label: '生产日期' }, { name: 'enterTime', label: '进厂日期' }, - { name: 'tvalue', label: '设备TT值', required: true }, - { name: 'processingTime', label: '单件产品加工时间' }, + { name: 'tvalue', label: '设备TT值', required: true, rules: [{ type: 'number', message: '请输入正确的浮点值', trigger: 'blur', transform: val => Number(val) }] }, + { name: 'processingTime', label: '单件产品加工时间(秒)', rules: [{ type: 'number', message: '请输入正确的数值', trigger: 'blur', transform: val => Number(val) }] }, { name: 'manufacturer', label: '制造商' }, { name: 'spec', label: '设备规格' }, {