diff --git a/src/api/mes/repairItems/index.ts b/src/api/mes/repairItems/index.ts index fc36d3a2..37d420b7 100644 --- a/src/api/mes/repairItems/index.ts +++ b/src/api/mes/repairItems/index.ts @@ -10,7 +10,7 @@ export interface RepairItemVO { inspectionMethod?: string valueType?: string judgmentCriteria?: string - isEnable: string + isEnable: boolean deviceName?: string componentName?: string creatorName?: string diff --git a/src/views/mes/repairItems/RepairItemsForm.vue b/src/views/mes/repairItems/RepairItemsForm.vue index 8738c185..09f51f49 100644 --- a/src/views/mes/repairItems/RepairItemsForm.vue +++ b/src/views/mes/repairItems/RepairItemsForm.vue @@ -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) {