diff --git a/frontend/src/views/machine/device/components/monitorPopup.vue b/frontend/src/views/machine/device/components/monitorPopup.vue index 64722a2..785dbda 100644 --- a/frontend/src/views/machine/device/components/monitorPopup.vue +++ b/frontend/src/views/machine/device/components/monitorPopup.vue @@ -395,19 +395,17 @@ const open = async (sign: string, data: Monitor.ResPqMon, device: Device.ResPqDe ctSecondary.value = secondary } } else { - dialogFormRef.value?.resetFields() + + // 清空表单校验 + dialogFormRef.value?.clearValidate() + resetFormContent() // 清空PT和CT的临时变量 ptPrimary.value = '' ptSecondary.value = '' ctPrimary.value = '' ctSecondary.value = '' - // 重置表单内容,但保留devId - const devId = formContent.value.devId - resetFormContent() - formContent.value.devId = devId originalNum.value = null - // 设置默认选中第一个线路号 if (lineNum.value.length > 0) { formContent.value.num = lineNum.value[0].id