style:设备管理-维修项目-是否启用字段回显

test
黄伟杰 2 weeks ago
parent 7707a320c3
commit 28c7322d71

@ -10,7 +10,7 @@ export interface RepairItemVO {
inspectionMethod?: string
valueType?: string
judgmentCriteria?: string
isEnable: string
isEnable: boolean
deviceName?: string
componentName?: string
creatorName?: string

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

Loading…
Cancel
Save