Refactor retirement

This commit is contained in:
AnandaTon 2023-09-22 11:48:24 +07:00
parent 9f73050a64
commit d6abc6bb5d
12 changed files with 1136 additions and 908 deletions

View file

@ -3,13 +3,10 @@ import { ref, onMounted } from "vue";
import { useQuasar, QForm } from "quasar";
import { useRouter } from "vue-router";
import { useCounterMixin } from "@/stores/mixin";
import http from "@/plugins/http";
import config from "@/app.config";
import type { QTableProps } from "quasar";
import type { ResponseItems } from "@/modules/06_retirement/interface/response/exitInterview";
import DialogFooter from "@/modules/05_placement/components/PersonalList/DialogFooter.vue";
import DialogHeader from "@/modules/05_placement/components/PersonalList/DialogHeader.vue";
@ -198,7 +195,7 @@ const fecthlist = async () => {
});
};
//
//
const saveAppoint = async () => {
await myForm.value!.validate().then(async (result: boolean) => {
if (result) {
@ -210,7 +207,7 @@ const saveAppoint = async () => {
await http
.put(config.API.AppointInterview(id.value), body)
.then((res: any) => {
success($q, "ส่งไปออกคำสั่งลาออกสำเร็จ");
success($q, "วันนัดหมายเพื่อทําการสัมภาษณ์การลาออกสำเร็จ");
closeModal();
})
.catch((e) => {

View file

@ -121,6 +121,7 @@ onMounted(async () => {
await getData();
});
//
const getData = async () => {
showLoader();
await http