แก้คำลาออก อนุมัติเป็น อนุญาต

This commit is contained in:
Warunee Tamkoo 2024-07-09 16:02:27 +07:00
parent 7af273ad08
commit e047e57a08

View file

@ -237,7 +237,7 @@ const conditionPopup = () => {
}
};
//pop up
//pop up
const confirmpopUp = async () => {
dialogConfirm(
$q,
@ -248,7 +248,7 @@ const confirmpopUp = async () => {
await http
.put(config.API.resignConfirm(roleUser.value, id.value), body)
.then(() => {
success($q, "การอนุมัติสำเร็จ");
success($q, "การอนุญาตสำเร็จ");
closeModal();
})
.catch((e) => {
@ -258,8 +258,8 @@ const confirmpopUp = async () => {
fetchData(id.value);
});
},
"ยืนยันการอนุมัติ",
"ต้องการยืนยันการอนุมัติการลานี้หรือไม่ ?"
"ยืนยันการอนุญาต",
"ต้องการยืนยันการอนุญาตการลานี้หรือไม่ ?"
);
};
@ -379,9 +379,9 @@ const getClass = (val: boolean) => {
const statusOrder = (val: boolean) => {
switch (val) {
case true:
return "ยับยั้งการลาออก";
return "ยับยั้ง";
case false:
return "อนุมัติการลาออก";
return "อนุญาต";
}
};
@ -580,7 +580,7 @@ function removeFile(fileName: string) {
dense
icon-right="check"
class="q-px-sm"
label="อนุมัติ"
label="อนุญาต"
@click="popUp('pass')"
/>
<q-btn
@ -1282,7 +1282,7 @@ function removeFile(fileName: string) {
<q-card style="width: 800px">
<q-form ref="myFormConfirm">
<DialogHeader
:title="`${actionPass ? 'การอนุมัติการลาออก' : 'การยับยั้งการลาออก'}`"
:title="`${actionPass ? 'อนุญาตการลาออก' : 'ยับยั้งการลาออก'}`"
:close="closeModal"
/>
<q-separator />