|
|
@@ -333,7 +333,7 @@ const lookData = () => {
|
|
333
|
333
|
let getData = res.data.materialMaintenanceDetails;
|
|
334
|
334
|
formData.tableData = getData.map((item: any) => ({
|
|
335
|
335
|
...item,
|
|
336
|
|
- filePartList: [{ url: item.filePart, name: item.fileName }]
|
|
|
336
|
+ filePartList: item.filePart ? [{ name: item.fileName, filePart: item.filePart }] : []
|
|
337
|
337
|
}));
|
|
338
|
338
|
QueryForm.materialGroup = res.data.materialGroup;
|
|
339
|
339
|
QueryForm.materialType = res.data.materialType;
|