From 821b7cb1e591944d066a7e51cfccd71600b1904e Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Fri, 22 Mar 2024 15:35:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devicemaintenancejob/deviceMaintenanceMain.data.ts | 2 +- src/views/eam/device/devicemaintenancejob/index.vue | 6 +++--- src/views/eam/mold/moldmaintenancejob/index.vue | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts b/src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts index bc94d75..8a58e57 100644 --- a/src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts +++ b/src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts @@ -382,7 +382,7 @@ export const DeviceMaintenanceDetail = useCrudSchemas(reactive([ }, form:{ component: 'Select', - // api: () => userListAll, + // api: () => dutyUserList, componentProps: { multiple:true, collapseTags:true, diff --git a/src/views/eam/device/devicemaintenancejob/index.vue b/src/views/eam/device/devicemaintenancejob/index.vue index 97e2cb1..a13a15a 100644 --- a/src/views/eam/device/devicemaintenancejob/index.vue +++ b/src/views/eam/device/devicemaintenancejob/index.vue @@ -850,7 +850,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { if (operatRecord.value.type == 'TECH') { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); }); @@ -859,7 +859,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { } else if (operatRecord.value.type == 'DEVICE') { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); }); @@ -868,7 +868,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { } else if (operatRecord.value.type == 'MOLD') { DeviceMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); }); diff --git a/src/views/eam/mold/moldmaintenancejob/index.vue b/src/views/eam/mold/moldmaintenancejob/index.vue index c3ef635..d0bc6f1 100644 --- a/src/views/eam/mold/moldmaintenancejob/index.vue +++ b/src/views/eam/mold/moldmaintenancejob/index.vue @@ -676,7 +676,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { if (operatRecord.value.type == 'TECH') { MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'TECH', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); }); @@ -685,7 +685,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { } else if (operatRecord.value.type == 'DEVICE') { MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'DEVICE', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); }); @@ -694,7 +694,7 @@ const openFormCallBack = (type, row, masterParmas, callback) => { } else if (operatRecord.value.type == 'MOLD') { MoldMaintenanceDetail.allSchemas.formSchema.forEach((item) => { if (item.field == 'maintenances') { - selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: 1 }).then(response => { + selecUserByType({ classType: 'MOLD', factoryAreaNumber: '', flag: null }).then(response => { item.componentProps.options = response callback(); });