|
|
@ -138,11 +138,12 @@ |
|
|
|
// form表单提交 |
|
|
|
const formsSuccess = async (formType, data) => { |
|
|
|
data.filePathList = data.filePathListView.map(item=>item.url) |
|
|
|
console.log(formType) |
|
|
|
if (formType === 'create') { |
|
|
|
await ReplaceItemDesApi.createReplaceItemDes(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
await ReplaceItemDesApi.createReplaceItemDes(data) |
|
|
|
await ReplaceItemDesApi.updateReplaceItemDes(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
} |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|