Browse Source

fix cancel applicaiton and proof

master
Alex Cheung 1 year ago
parent
commit
5292dc2b2b
1 changed files with 16 additions and 11 deletions
  1. +16
    -11
      src/pages/Proof/Reply_Public/ProofForm.js

+ 16
- 11
src/pages/Proof/Reply_Public/ProofForm.js View File

@@ -120,17 +120,22 @@ const FormPanel = ({ formData }) => {
}, },
files: attachments ? attachments : [], files: attachments ? attachments : [],
onSuccess: function (responseData) { onSuccess: function (responseData) {
if (responseData.msg) {
setWarningTitle(intl.formatMessage({ id: "attention" }))
setWarningText(intl.formatMessage({ id: responseData.msg }));
setIsWarningPopUp(true);
return;
}
if (actionValue== true && responseData.id == params.id) {
notifyActionSuccess(intl.formatMessage({ id: "submitted" }))
navigate("/proof/pay/" + params.id);
} else {
navigate("/proof/search");
console.log(responseData)
if (responseData.success === false){
navigate("/publicNotice");
}else{
if (responseData.msg) {
setWarningTitle(intl.formatMessage({ id: "attention" }))
setWarningText(intl.formatMessage({ id: responseData.msg }));
setIsWarningPopUp(true);
return;
}
if (actionValue== true && responseData.id == params.id) {
notifyActionSuccess(intl.formatMessage({ id: "submitted" }))
navigate("/proof/pay/" + params.id);
} else {
navigate("/proof/search");
}
} }
}, },
onFail: function (response) { onFail: function (response) {


Loading…
Cancel
Save