fixing column บรรจุ แต่งตั้ง ย้าย
This commit is contained in:
parent
bb2d03e499
commit
9cde68ab4f
74 changed files with 620 additions and 626 deletions
|
|
@ -3,7 +3,7 @@ import { ref, reactive, watch, onMounted } from "vue";
|
|||
import { useQuasar } from "quasar";
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useRouter,useRoute } from "vue-router";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
|
||||
/** importType*/
|
||||
import type { PersonalImformation } from "@/components/information/interface/response/Information";
|
||||
|
|
@ -14,7 +14,7 @@ import type { Avatar } from "@/components/information/interface/response/avatar"
|
|||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
/** use*/
|
||||
const route = useRoute()
|
||||
const route = useRoute();
|
||||
const mixin = useCounterMixin();
|
||||
const router = useRouter();
|
||||
const $q = useQuasar();
|
||||
|
|
@ -104,7 +104,7 @@ function calculateAge(birthDate: Date | null) {
|
|||
async function fetchInformation(id: string) {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.orgProfileById(id,empType.value))
|
||||
.get(config.API.orgProfileById(id, empType.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
imformation.prefix = data.prefix ? data.prefix : "-";
|
||||
|
|
@ -118,9 +118,9 @@ async function fetchInformation(id: string) {
|
|||
avatar.fullname = `${data.prefix}${data.firstName} ${data.lastName}`;
|
||||
|
||||
avatar.position = data.position ? data.position : "-";
|
||||
if(data.avatarName){
|
||||
fetchProfile(data.id as string)
|
||||
}else{
|
||||
if (data.avatarName) {
|
||||
fetchProfile(data.id as string);
|
||||
} else {
|
||||
statusLoad.value.val = true;
|
||||
}
|
||||
})
|
||||
|
|
@ -394,7 +394,7 @@ async function fetchProfile(id: string) {
|
|||
borderless
|
||||
readonly
|
||||
:model-value="goverment.positionType"
|
||||
label="ประเภท"
|
||||
label="ประเภทตำแหน่ง"
|
||||
/>
|
||||
</div>
|
||||
<div class="col-xs-6 col-md-6">
|
||||
|
|
@ -402,7 +402,7 @@ async function fetchProfile(id: string) {
|
|||
borderless
|
||||
readonly
|
||||
:model-value="goverment.positionLevel"
|
||||
label="ระดับ"
|
||||
label="ระดับตำแหน่ง"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue