From cedf1b6c5eceab05932530f06705161fb3ec0a9b Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Thu, 23 Oct 2025 09:54:52 +0800 Subject: [PATCH] 1 --- .../views/machine/device/components/monitorPopup.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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