被检设备监测点

This commit is contained in:
sjl
2025-10-22 13:43:56 +08:00
parent 91b2a939b9
commit 5ec688a659
2 changed files with 9 additions and 2 deletions

View File

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

View File

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