fix:bug showload profile
This commit is contained in:
parent
91c870955b
commit
b0b16131ab
4 changed files with 51 additions and 2 deletions
|
|
@ -920,6 +920,28 @@ function onRefCommand(data: any) {
|
|||
// commandId.value = 'bdf9da91-ba45-497a-a2b7-cc49e2446d97'; //จำลอง
|
||||
}
|
||||
|
||||
function onUpdateStatus(id: string) {
|
||||
dialogConfirm(
|
||||
$q,
|
||||
async () => {
|
||||
showLoader();
|
||||
try {
|
||||
await http.post(config.API.placementUpdatePass, {
|
||||
personalId: id,
|
||||
});
|
||||
await success($q, "บันทึกสำเร็จ");
|
||||
await getTable();
|
||||
} catch (error) {
|
||||
messageError($q, error);
|
||||
} finally {
|
||||
hideLoader();
|
||||
}
|
||||
},
|
||||
"ยืนยันการส่งบรรจุ",
|
||||
"ต้องการยืนยันการส่งบรรจุนี้ใช่หรือไม่ ?"
|
||||
);
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
await getWorkFlow();
|
||||
await getTable();
|
||||
|
|
@ -982,6 +1004,7 @@ onMounted(async () => {
|
|||
</q-item-section>
|
||||
<q-item-section>รายละเอียด</q-item-section>
|
||||
</q-item>
|
||||
|
||||
<q-item
|
||||
v-if="
|
||||
props.row.nodeName !== null &&
|
||||
|
|
@ -1011,6 +1034,7 @@ onMounted(async () => {
|
|||
</q-item-section>
|
||||
<q-item-section>เลือกวันรายงานตัว</q-item-section>
|
||||
</q-item>
|
||||
|
||||
<q-item
|
||||
v-if="
|
||||
roleAdmin &&
|
||||
|
|
@ -1035,6 +1059,7 @@ onMounted(async () => {
|
|||
</q-item-section>
|
||||
<q-item-section>คืนตำแหน่ง</q-item-section>
|
||||
</q-item>
|
||||
|
||||
<q-item
|
||||
v-if="
|
||||
props.row.bmaOfficer !== 'บุคคลภายนอก' &&
|
||||
|
|
@ -1087,6 +1112,26 @@ onMounted(async () => {
|
|||
<q-item-section>เลือกหน่วยงานที่รับการบรรจุ</q-item-section>
|
||||
</q-item>
|
||||
|
||||
<q-item
|
||||
v-if="checkPermission($route)?.attrOwnership == 'OWNER'"
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="onUpdateStatus(props.row.personalId)"
|
||||
>
|
||||
<q-item-section
|
||||
style="min-width: 0px"
|
||||
avatar
|
||||
class="q-py-sm"
|
||||
>
|
||||
<q-icon
|
||||
color="primary"
|
||||
size="xs"
|
||||
name="mdi-account-arrow-right-outline"
|
||||
/>
|
||||
</q-item-section>
|
||||
<q-item-section>บรรจุแล้ว</q-item-section>
|
||||
</q-item>
|
||||
|
||||
<!-- <q-item
|
||||
v-if="
|
||||
props.row.bmaOfficer !== 'บุคคลภายนอก' &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue