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