Browse Source

bug修复

master
ljlong_2630 1 month ago
parent
commit
ee7ddd01a9
  1. 2
      src/views/eam/basic/inspection/inspection.data.ts
  2. 2
      src/views/eam/basic/moldInspection/moldInspection.data.ts
  3. 4
      src/views/eam/device/deviceinspectionjob/index.vue
  4. 9
      src/views/eam/mold/moldinspectionjob/moldInspectionMain.data.ts

2
src/views/eam/basic/inspection/inspection.data.ts

@ -146,7 +146,7 @@ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '是否点检', label: '是否点检',
field: 'isNeedInspection', field: 'needInspection',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
formatter: (_: Recordable, __: TableColumn, cellValue: boolean) => { formatter: (_: Recordable, __: TableColumn, cellValue: boolean) => {

2
src/views/eam/basic/moldInspection/moldInspection.data.ts

@ -145,7 +145,7 @@ export const DeviceMoldItems = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '是否点检', label: '是否点检',
field: 'isNeedInspection', field: 'needInspection',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
formatter: (_: Recordable, __: TableColumn, cellValue: boolean) => { formatter: (_: Recordable, __: TableColumn, cellValue: boolean) => {

4
src/views/eam/device/deviceinspectionjob/index.vue

@ -536,9 +536,9 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
const detailOpenForm = (type, row) => { const detailOpenForm = (type, row) => {
console.log("type", type); console.log("type", type);
console.log("row", row); console.log("row", row);
DeviceInspectionDetail.allSchemas.tableFormColumns.map((item) => { // DeviceInspectionDetail.allSchemas.tableFormColumns.map((item) => {
}) // })
} }
// / // /

9
src/views/eam/mold/moldinspectionjob/moldInspectionMain.data.ts

@ -478,8 +478,13 @@ export const MoldInspectionDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
filterable: true, filterable: true,
}, },
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { formatter: (_: Recordable, __: TableColumn, cellValue) => {
const cellValueList = cellValue ? cellValue.split(',') : []; let cellValueList = []
if (cellValue.includes(',')) {
cellValueList = cellValue?.split(',');
} else {
cellValueList = [cellValue]
}
return userListAll return userListAll
.filter(item => cellValueList.includes(item.id.toString())) .filter(item => cellValueList.includes(item.id.toString()))
.map(item => item.nickname) .map(item => item.nickname)

Loading…
Cancel
Save