บรรจุ => ช่วยราชการ, ส่งตัวกลับ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-02 15:12:10 +07:00
parent 5a220774eb
commit 45d7189d92
6 changed files with 426 additions and 443 deletions

View file

@ -142,7 +142,7 @@ async function fetchProfileGov(id: string) {
goverment.positionType = data.posType !== "" ? data.posType : "-";
goverment.positionLevel = data.posLevel !== "" ? data.posLevel : "-";
goverment.positionExecutive =
data.posExecutive !== "" ? data.posExecutive : "-";
data.posExecutive !== null ? data.posExecutive : "-";
goverment.positionExecutiveSide =
data.positionExecutiveField !== "" ? data.positionExecutiveField : "-";
})
@ -172,9 +172,12 @@ watch(
async () => {
modal.value = props.modal ? props.modal : false;
if (modal.value) {
props.id && (fetchInformation(props.id), fetchProfileGov(props.id));
(fileName.value = `profile-${props.id}`),
if (props.id) {
fetchInformation(props.id);
fetchProfileGov(props.id);
fileName.value = `profile-${props.id}`;
fetchProfile(props.id as string);
}
}
}
);
@ -214,11 +217,6 @@ async function fetchProfile(id: string) {
style="color: red; background-color: #ffdede"
/>
</q-toolbar>
<!-- <q-card-section>
<div class="text-bold text-h6 text-center">อมลทะเบยนประว</div>
<q-space />
</q-card-section> -->
<q-card-section class="col q-pt-none bg-grey-12">
<div class="q-gutter-md">