双击连线

This commit is contained in:
sjl
2025-10-23 14:41:08 +08:00
parent baccbe6f33
commit 53079c5a1c
2 changed files with 153 additions and 13 deletions

View File

@@ -396,16 +396,22 @@ const open = async (sign: string, data: Monitor.ResPqMon, device: Device.ResPqDe
}
} else {
// 清空表单校验
dialogFormRef.value?.clearValidate()
// 清空PT和CT的临时变量
ptPrimary.value = ''
ptSecondary.value = ''
ctPrimary.value = ''
ctSecondary.value = ''
// 重置表单内容但保留devId
const devId = formContent.value.devId
resetFormContent()
// 清空PT和CT的临时变量
ptPrimary.value = ''
ptSecondary.value = ''
ctPrimary.value = ''
ctSecondary.value = ''
formContent.value.devId = devId
originalNum.value = null
// 使用nextTick确保DOM更新后再清除验证
setTimeout(() => {
dialogFormRef.value?.clearValidate()
}, 0)
// 设置默认选中第一个线路号
if (lineNum.value.length > 0) {
formContent.value.num = lineNum.value[0].id