This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-03-24 09:36:38 +07:00
parent 924ca29cb1
commit 08a80cb8b7
2 changed files with 16 additions and 6 deletions

View file

@ -25,6 +25,7 @@ const {
hideLoader,
messageError,
success,
findOrgNameHtml,
} = useCounterMixin();
const empType = ref<string>(route.params.type.toString());
@ -437,7 +438,7 @@ onMounted(() => {
>
<template v-slot:header="props">
<q-tr :props="props">
<q-th v-if="tabs === 'PENDING'" />
<q-th v-if="tabs === 'PENDING' && statusCheckEdit !== 'CHECKED'" />
<q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>
@ -508,7 +509,15 @@ onMounted(() => {
v-if="col.name === 'organization'"
class="text-html table_ellipsis"
>
{{ col.value ? col.value : "-" }}
{{
findOrgNameHtml({
root: props.row.orgRoot,
child1: props.row.orgChild1,
child2: props.row.orgChild2,
child3: props.row.orgChild3,
child4: props.row.orgChild4,
})
}}
</div>
<div
v-else-if="col.name === 'commandCode'"

View file

@ -18,7 +18,7 @@ const {
hideLoader,
messageError,
dialogConfirm,
findOrgName,
findOrgNameHtml,
success,
} = useCounterMixin();
const route = useRoute();
@ -49,7 +49,7 @@ async function fetchDataProfile() {
posNo: data.posNo,
posType: data.posTypeName,
posLevel: data.posLevelName,
org: findOrgName(data),
org: findOrgNameHtml(data),
};
})
.catch((err) => {
@ -202,8 +202,9 @@ onMounted(async () => {
<q-item>
<q-item-section>
<q-item-label
><strong>งก:</strong> {{ dataProfile?.org }}</q-item-label
<q-item-label class="text-html"
><strong>งก:</strong> <span></span
>{{ dataProfile?.org }}</q-item-label
>
</q-item-section>
</q-item>