|
|
|
|
@ -122,7 +122,7 @@ const formData = ref({
|
|
|
|
|
valueType: undefined as string | undefined,
|
|
|
|
|
judgmentCriteria: undefined as string | undefined,
|
|
|
|
|
projectContent: undefined as string | undefined,
|
|
|
|
|
isEnable: undefined as string | undefined
|
|
|
|
|
isEnable: undefined as boolean | undefined
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const showDeviceSelect = computed(() => formData.value.deviceType === 1 || formData.value.deviceType === 2)
|
|
|
|
|
@ -282,7 +282,10 @@ const open = async (type: string, row?: any) => {
|
|
|
|
|
valueType: row.valueType !== undefined && row.valueType !== null ? String(row.valueType) : undefined,
|
|
|
|
|
judgmentCriteria: row.judgmentCriteria,
|
|
|
|
|
projectContent: row.projectContent,
|
|
|
|
|
isEnable: row.isEnable !== undefined && row.isEnable !== null ? String(row.isEnable) : undefined
|
|
|
|
|
isEnable:
|
|
|
|
|
row.isEnable !== undefined && row.isEnable !== null
|
|
|
|
|
? row.isEnable === true || row.isEnable === 'true'
|
|
|
|
|
: undefined
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (formData.value.deviceType === 1) {
|
|
|
|
|
|