ทะเบียนประวัติ > ประวัติถือครองตำแหน่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-21 10:45:38 +07:00
parent 8bfd894d8f
commit 8b12e131bc
5 changed files with 35 additions and 58 deletions

View file

@ -99,6 +99,7 @@ function fecthPositionOfficer() {
messageError($q, err);
});
}
function fetchPositionPerm() {
http
.get(config.API.listPositionEmployeePositionHistory)
@ -141,11 +142,12 @@ function clickSearch(type: string) {
});
} else if (typeKeyword.value === "position") {
Object.assign(body, {
positionId: positionKeyword.value,
position: positionKeyword.value,
});
}
const empType = type === "officer" ? "" : "-employee";
http
.post(config.API.profileHistory(type), body)
.post(config.API.registryNew(empType) + `/search/history/oc`, body)
.then((res) => {
let data = res.data.result;
if (data.length !== 0) {
@ -206,9 +208,11 @@ const paginationLabel = (start: number, end: number, total: number) => {
<template>
<q-dialog v-model="modal">
<q-card style="width: 850px; max-width: 80vw">
<q-card style="width: 850px; max-width: 80vw">
<q-toolbar>
<q-toolbar-title class="text-subtitle2 text-bold">ประวอครองตำแหน</q-toolbar-title>
<q-toolbar-title class="text-subtitle2 text-bold"
>ประวอครองตำแหน</q-toolbar-title
>
<q-btn
icon="close"
unelevated
@ -218,12 +222,12 @@ const paginationLabel = (start: number, end: number, total: number) => {
style="color: #ff8080; background-color: #ffdede"
/>
</q-toolbar>
<q-separator/>
<q-separator />
<div class="dialog-card-contain">
<q-card-section class="q-pa-sm">
<q-form ref="myForm">
<div class=" col-12 bg-grey-2 q-pa-sm">
<div class="col-12 bg-grey-2 q-pa-sm">
<div class="q-col-gutter-xs row no-wrap">
<q-select
hide-bottom-space
@ -313,8 +317,7 @@ const paginationLabel = (start: number, end: number, total: number) => {
</q-card-section>
</div>
<div class="col-12 q-px-sm q-pb-sm">
<div class="col-12 q-px-sm q-pb-sm">
<q-table
flat
dense