เปิดคอมเม้น
This commit is contained in:
parent
8e52ef1fa3
commit
40ca94ae80
1 changed files with 13 additions and 15 deletions
|
|
@ -15,21 +15,19 @@ const { showLoader, hideLoader, success, messageError } = mixin;
|
||||||
|
|
||||||
/** บันทึกข้อมูล */
|
/** บันทึกข้อมูล */
|
||||||
async function onSubmit(data: any) {
|
async function onSubmit(data: any) {
|
||||||
console.log(data);
|
showLoader();
|
||||||
|
http
|
||||||
// showLoader();
|
.post(config.API.complaintAdd(), data)
|
||||||
// http
|
.then((res) => {
|
||||||
// .post(config.API.complaintAdd(), data)
|
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
// .then((res) => {
|
router.push(`/discipline/complaints/${res.data.result}`);
|
||||||
// success($q, "บันทึกข้อมูลสำเร็จ");
|
})
|
||||||
// router.push(`/discipline/complaints/${res.data.result}`);
|
.catch((e) => {
|
||||||
// })
|
messageError($q, e);
|
||||||
// .catch((e) => {
|
})
|
||||||
// messageError($q, e);
|
.finally(async () => {
|
||||||
// })
|
hideLoader();
|
||||||
// .finally(async () => {
|
});
|
||||||
// hideLoader();
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue