双击连线
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user