From 5ec688a65977171ac9e72383669ca6b2b1c132e4 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Wed, 22 Oct 2025 13:43:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A2=AB=E6=A3=80=E8=AE=BE=E5=A4=87=E7=9B=91?= =?UTF-8?q?=E6=B5=8B=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/home/components/reportResultPopup.vue | 1 + .../views/machine/device/components/monitorPopup.vue | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/home/components/reportResultPopup.vue b/frontend/src/views/home/components/reportResultPopup.vue index 512171a..d15a834 100644 --- a/frontend/src/views/home/components/reportResultPopup.vue +++ b/frontend/src/views/home/components/reportResultPopup.vue @@ -182,6 +182,7 @@ import { type MonitorResult } from '@/api/result/interface' import { generateDevReport } from '@/api/plan/plan' import { useCheckStore } from '@/stores/modules/check' import { ElMessage } from 'element-plus' +import { reactive, ref } from 'vue' const dialogVisible = ref(false) const dialogSourceVisible = ref(false) diff --git a/frontend/src/views/machine/device/components/monitorPopup.vue b/frontend/src/views/machine/device/components/monitorPopup.vue index 3a69a52..a11c034 100644 --- a/frontend/src/views/machine/device/components/monitorPopup.vue +++ b/frontend/src/views/machine/device/components/monitorPopup.vue @@ -352,8 +352,7 @@ const sendParameter = () => { } // 打开弹窗,可能是新增,也可能是编辑 const open = async (sign: string, data: Monitor.ResPqMon, device: Device.ResPqDev, table: any[], options: any) => { - // 重置表单 - //dialogFormRef.value?.resetFields() + selectOptions.value = options titleType.value = sign dialogVisible.value = true @@ -394,8 +393,15 @@ const open = async (sign: string, data: Monitor.ResPqMon, device: Device.ResPqDe ctSecondary.value = secondary } } else { + // 重置表单 + dialogFormRef.value?.resetFields() resetFormContent() originalNum.value = null + // 清空PT和CT的临时变量 + ptPrimary.value = '' + ptSecondary.value = '' + ctPrimary.value = '' + ctSecondary.value = '' // 设置默认选中第一个线路号 if (lineNum.value.length > 0) { formContent.value.num = lineNum.value[0].id