Browse Source

修复测试bug

master
ljlong_2630 8 months ago
parent
commit
821b7cb1e5
  1. 2
      src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts
  2. 6
      src/views/eam/device/devicemaintenancejob/index.vue
  3. 6
      src/views/eam/mold/moldmaintenancejob/index.vue

2
src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts

@ -382,7 +382,7 @@ export const DeviceMaintenanceDetail = useCrudSchemas(reactive<CrudSchema[]>([
},
form:{
component: 'Select',
// api: () => userListAll,
// api: () => dutyUserList,
componentProps: {
multiple:true,
collapseTags:true,

6
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();
});

6
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();
});

Loading…
Cancel
Save