From 2c0823f700aaa71469b6672984093ffc7a9b5072 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 5 Jun 2024 13:49:01 +0700 Subject: [PATCH] =?UTF-8?q?=20=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=8A?= =?UTF-8?q?=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=AA?= =?UTF-8?q?=E0=B8=AD=E0=B8=9A=E0=B9=83=E0=B8=99=E0=B8=A3=E0=B8=AD=E0=B8=9A?= =?UTF-8?q?=20=3D>=20=20=E0=B8=84=E0=B8=B7=E0=B8=99=E0=B8=95=E0=B8=B3?= =?UTF-8?q?=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/PersonalList/Table.vue | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/src/modules/05_placement/components/PersonalList/Table.vue b/src/modules/05_placement/components/PersonalList/Table.vue index 39bc5c0a3..6933b2955 100644 --- a/src/modules/05_placement/components/PersonalList/Table.vue +++ b/src/modules/05_placement/components/PersonalList/Table.vue @@ -675,6 +675,30 @@ watch(containStatus, () => { } }); +function onRestorePos(id: string) { + dialogConfirm( + $q, + async () => { + showLoader(); + await http + .post(config.API.clearPosition(id), {}) + .then(() => { + success($q, "คืนตำแหน่งสำเร็จ"); + getTable(); + props.statCard(); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(async () => { + hideLoader(); + }); + }, + "ยืนยันการคืนตำแหน่ง", + "ต้องการยืนยันการคืนตำแหน่งนี้ใช่หรือไม่ ?" + ); +} + onMounted(async () => { if (keycloak.tokenParsed != null) { roleAdmin.value = await keycloak.tokenParsed.role.includes("placement1"); @@ -869,6 +893,29 @@ onMounted(async () => { >เลือกหน่วยงานที่รับบรรจุและแต่งตั้ง + + + + + คืนค่าตำแหน่ง +