|
|
@ -513,8 +513,17 @@ const submitForm = async (formType, submitData) => { |
|
|
|
formRef.value.formLoading = true |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|
await IssueRequestMainApi.createIssueRequestMain(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
let remarkRes = await IssueRequestMainApi.createIssueRequestMain(data) |
|
|
|
if(remarkRes){ |
|
|
|
let remarkList = remarkRes.split(';') |
|
|
|
ElMessageBox.alert(remarkList.join('<br/>'),'提示',{ |
|
|
|
dangerouslyUseHTMLString: true, |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} |
|
|
|
console.log('remarkRes',remarkRes) |
|
|
|
|
|
|
|
} else { |
|
|
|
await IssueRequestMainApi.updateIssueRequestMain(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|