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 () => {
>เลือกหน่วยงานที่รับบรรจุและแต่งตั้ง
+
+
+
+
+ คืนค่าตำแหน่ง
+