新增设备时监测点清空

This commit is contained in:
sjl
2025-11-04 09:17:34 +08:00
parent e12a1baf99
commit a4b016ef0d
3 changed files with 4 additions and 3 deletions

View File

@@ -89,8 +89,8 @@ export namespace Device {
boundPlanName?: string | null
assign?: number ////是否分配给检测人员 0否 1是
monitorList: Monitor.ResPqMon[]
checked: boolean // 是否已选择
disabled: boolean // 是否禁用
checked?: boolean // 是否已选择
disabled?: boolean // 是否禁用
}
export interface SelectOption {

View File

@@ -479,7 +479,6 @@ const close = () => {
//子组件监测点变化通知父组件设备台账
const getParameter = (data: Monitor.ResPqMon[]) => {
console.log('子组件监测点变化通知父组件设备台账', data)
monitor.value = data
//保存监测点信息自动更新设备台账的被检通道
formContent.inspectChannel = monitor.value
@@ -619,6 +618,7 @@ const open = async (
}
monitor.value = data.monitorList
} else {
monitor.value = []
resetFormContent()
//只有比对式设备ID由前端传
if (currentMode === '比对式') formContent.id = generateUUID().replaceAll('-', '')

View File

@@ -216,6 +216,7 @@ watch(
() => props.DevFormContent.monitorList,
newVal => {
tableData.value = newVal || []
},
{ immediate: true }
)