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',