Browse Source

检修工单报错

master
zhang_li 1 month ago
parent
commit
8ff0a5a88c
  1. 7
      src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts

7
src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts

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

Loading…
Cancel
Save