ปรับเเสดง ผล OFFICER/EMPLOYEE
This commit is contained in:
parent
010deca042
commit
8390a8ab01
8 changed files with 172 additions and 125 deletions
|
|
@ -5,6 +5,7 @@ import { useQuasar, type QTableProps } from "quasar";
|
|||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useDataStore } from "@/stores/data";
|
||||
import { useRegistryInFormationStore } from "@/modules/10_registry/store/registry";
|
||||
|
||||
import type {
|
||||
|
|
@ -16,6 +17,8 @@ import DialogHistory from "@/modules/10_registry/Dialog/DialogHistory.vue";
|
|||
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const daraPerson = useDataStore()
|
||||
const checkType = ref<boolean>(daraPerson.officerType == 'OFFICER' ? true:false)
|
||||
const store = useRegistryInFormationStore();
|
||||
const { showLoader, hideLoader, messageError, date2Thai, dateToISO } = mixin;
|
||||
|
||||
|
|
@ -314,7 +317,7 @@ function getData() {
|
|||
/** get history */
|
||||
function getHistory() {
|
||||
const url =
|
||||
store.typeProfile == "OFFICER"
|
||||
checkType
|
||||
? config.API.dataUserGovernmentHistory("")
|
||||
: config.API.dataUserGovernmentHistory("-employee");
|
||||
showLoader();
|
||||
|
|
@ -362,11 +365,12 @@ onMounted(() => {
|
|||
{{ formData.org ? formData.org : "-" }}
|
||||
</div>
|
||||
<div class="col-5 text-grey-6 text-weight-medium">
|
||||
ตำแหน่งในสายงาน
|
||||
{{ checkType ? 'ตำแหน่งในสายงาน':'ตำแหน่ง' }}
|
||||
</div>
|
||||
<div class="col-7">
|
||||
{{ formData.position ? formData.position : "-" }}
|
||||
</div>
|
||||
|
||||
<div class="col-5 text-grey-6 text-weight-medium">
|
||||
ตำแหน่งเลขที่
|
||||
</div>
|
||||
|
|
@ -374,21 +378,21 @@ onMounted(() => {
|
|||
{{ formData.posMasterNo ? formData.posMasterNo : "-" }}
|
||||
</div>
|
||||
<div
|
||||
v-if="store.typeProfile == 'OFFICER'"
|
||||
v-if="checkType"
|
||||
class="col-5 text-grey-6 text-weight-medium"
|
||||
>
|
||||
ตำแหน่งทางการบริหาร
|
||||
</div>
|
||||
<div v-if="store.typeProfile == 'OFFICER'" class="col-7">
|
||||
<div v-if="checkType" class="col-7">
|
||||
{{ formData.posExecutive ? formData.posExecutive : "-" }}
|
||||
</div>
|
||||
<div
|
||||
v-if="store.typeProfile == 'OFFICER'"
|
||||
v-if="checkType"
|
||||
class="col-5 text-grey-6 text-weight-medium"
|
||||
>
|
||||
ด้านทางการบริหาร
|
||||
</div>
|
||||
<div v-if="store.typeProfile == 'OFFICER'" class="col-7">
|
||||
<div v-if="checkType" class="col-7">
|
||||
{{
|
||||
formData.positionExecutiveField
|
||||
? formData.positionExecutiveField
|
||||
|
|
@ -401,24 +405,24 @@ onMounted(() => {
|
|||
<div class="col-12 col-sm-12 col-md-6">
|
||||
<div class="row q-col-gutter-y-sm">
|
||||
<div
|
||||
v-if="store.typeProfile == 'OFFICER'"
|
||||
v-if="checkType"
|
||||
class="col-5 text-grey-6 text-weight-medium"
|
||||
>
|
||||
สายงาน
|
||||
</div>
|
||||
<div v-if="store.typeProfile == 'OFFICER'" class="col-7">
|
||||
<div v-if="checkType" class="col-7">
|
||||
{{ formData.positionField ? formData.positionField : "-" }}
|
||||
</div>
|
||||
<div class="col-5 text-grey-6 text-weight-medium">
|
||||
{{
|
||||
store.typeProfile == "OFFICER" ? "ตำแหน่งประเภท" : "กลุ่มงาน"
|
||||
checkType ? "ตำแหน่งประเภท" : "กลุ่มงาน"
|
||||
}}
|
||||
</div>
|
||||
<div class="col-7">
|
||||
{{ formData.posType ? formData.posType : "-" }}
|
||||
</div>
|
||||
<div class="col-5 text-grey-6 text-weight-medium">
|
||||
{{ store.typeProfile == "OFFICER" ? "ระดับ" : "ระดับชั้นงาน" }}
|
||||
{{ checkType ? "ระดับ" : "ระดับชั้นงาน" }}
|
||||
</div>
|
||||
<div class="col-7">
|
||||
{{ formData.posLevel ? formData.posLevel : "-" }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue