This commit is contained in:
sjl
2025-10-23 09:54:52 +08:00
parent 5f4b647bed
commit cedf1b6c5e

View File

@@ -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