1
This commit is contained in:
@@ -395,19 +395,17 @@ const open = async (sign: string, data: Monitor.ResPqMon, device: Device.ResPqDe
|
|||||||
ctSecondary.value = secondary
|
ctSecondary.value = secondary
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dialogFormRef.value?.resetFields()
|
|
||||||
|
// 清空表单校验
|
||||||
|
dialogFormRef.value?.clearValidate()
|
||||||
|
resetFormContent()
|
||||||
// 清空PT和CT的临时变量
|
// 清空PT和CT的临时变量
|
||||||
ptPrimary.value = ''
|
ptPrimary.value = ''
|
||||||
ptSecondary.value = ''
|
ptSecondary.value = ''
|
||||||
ctPrimary.value = ''
|
ctPrimary.value = ''
|
||||||
ctSecondary.value = ''
|
ctSecondary.value = ''
|
||||||
// 重置表单内容,但保留devId
|
|
||||||
const devId = formContent.value.devId
|
|
||||||
resetFormContent()
|
|
||||||
formContent.value.devId = devId
|
|
||||||
originalNum.value = null
|
originalNum.value = null
|
||||||
|
|
||||||
|
|
||||||
// 设置默认选中第一个线路号
|
// 设置默认选中第一个线路号
|
||||||
if (lineNum.value.length > 0) {
|
if (lineNum.value.length > 0) {
|
||||||
formContent.value.num = lineNum.value[0].id
|
formContent.value.num = lineNum.value[0].id
|
||||||
|
|||||||
Reference in New Issue
Block a user