แก้ฟิล
This commit is contained in:
parent
1d4ca69130
commit
041bdab0f7
5 changed files with 67 additions and 17 deletions
|
|
@ -24,6 +24,8 @@ async function onSubmit(data: any) {
|
|||
formData.append("type", data.type);
|
||||
formData.append("year", data.year);
|
||||
formData.append("caseType", data.caseType);
|
||||
formData.append("oc", data.oc);
|
||||
formData.append("position", data.position);
|
||||
formData.append("caseNumber", data.caseNumber);
|
||||
formData.append("file", data.file);
|
||||
showLoader();
|
||||
|
|
@ -31,6 +33,7 @@ async function onSubmit(data: any) {
|
|||
.post(config.API.appealAdd(), formData)
|
||||
.then((res) => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
router.push(`/discipline-appealcomplain/${res.data.result}`)
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue