Refactor retirement
This commit is contained in:
parent
9f73050a64
commit
d6abc6bb5d
12 changed files with 1136 additions and 908 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ onMounted(async () => {
|
|||
await getData();
|
||||
});
|
||||
|
||||
//นำข้อมูลมาแสดง
|
||||
const getData = async () => {
|
||||
showLoader();
|
||||
await http
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue