|
|
@ -187,9 +187,11 @@ const formsSuccess = async (formType, data) => { |
|
|
|
if (data.expireTime == 0) data.expireTime = null; |
|
|
|
data.type = 'MOLD'; |
|
|
|
data.result = 'PENDING'; |
|
|
|
data.filePathList = data.upload.map((item: any) => { |
|
|
|
return item.url |
|
|
|
}) |
|
|
|
if (data.upload != null && data.upload != "") { |
|
|
|
data.filePathList = data?.upload?.map((item: any) => { |
|
|
|
return item.url |
|
|
|
}) |
|
|
|
} |
|
|
|
if (formType === 'create') { |
|
|
|
await MoldRepairApi.createMoldRepair(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|