From 28c7322d718185accc8ddb9ddd146e0db2c97f45 Mon Sep 17 00:00:00 2001 From: hwj Date: Tue, 26 May 2026 17:59:25 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E8=AE=BE=E5=A4=87=E7=AE=A1?= =?UTF-8?q?=E7=90=86-=E7=BB=B4=E4=BF=AE=E9=A1=B9=E7=9B=AE-=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=90=AF=E7=94=A8=E5=AD=97=E6=AE=B5=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/repairItems/index.ts | 2 +- src/views/mes/repairItems/RepairItemsForm.vue | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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) {