รายชื่อผู้สอบในรอบ => คืนตำแหน่ง
This commit is contained in:
parent
fde7bd6f11
commit
2c0823f700
1 changed files with 47 additions and 0 deletions
|
|
@ -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 () => {
|
onMounted(async () => {
|
||||||
if (keycloak.tokenParsed != null) {
|
if (keycloak.tokenParsed != null) {
|
||||||
roleAdmin.value = await keycloak.tokenParsed.role.includes("placement1");
|
roleAdmin.value = await keycloak.tokenParsed.role.includes("placement1");
|
||||||
|
|
@ -869,6 +893,29 @@ onMounted(async () => {
|
||||||
>เลือกหน่วยงานที่รับบรรจุและแต่งตั้ง</q-item-section
|
>เลือกหน่วยงานที่รับบรรจุและแต่งตั้ง</q-item-section
|
||||||
>
|
>
|
||||||
</q-item>
|
</q-item>
|
||||||
|
<q-item
|
||||||
|
v-if="
|
||||||
|
roleAdmin &&
|
||||||
|
props.row.draft === 'รอส่งตัว' &&
|
||||||
|
props.row.statusId === 'PREPARE-CONTAIN'
|
||||||
|
"
|
||||||
|
clickable
|
||||||
|
v-close-popup
|
||||||
|
@click="onRestorePos(props.row.personalId)"
|
||||||
|
>
|
||||||
|
<q-item-section
|
||||||
|
style="min-width: 0px"
|
||||||
|
avatar
|
||||||
|
class="q-py-sm"
|
||||||
|
>
|
||||||
|
<q-icon
|
||||||
|
color="orange-7"
|
||||||
|
size="xs"
|
||||||
|
name="mdi-backup-restore"
|
||||||
|
/>
|
||||||
|
</q-item-section>
|
||||||
|
<q-item-section>คืนค่าตำแหน่ง</q-item-section>
|
||||||
|
</q-item>
|
||||||
<q-item
|
<q-item
|
||||||
v-if="
|
v-if="
|
||||||
props.row.bmaOfficer !== 'บุคคลภายนอก' &&
|
props.row.bmaOfficer !== 'บุคคลภายนอก' &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue