แก้ตาม test

This commit is contained in:
STW_TTTY\stwtt 2024-06-24 16:23:34 +07:00
parent dff282f0ef
commit 30e04bf60c
2 changed files with 20 additions and 5 deletions

View file

@ -112,7 +112,7 @@ function findOrgName(obj: any) {
? obj.orgChild1Name ? obj.orgChild1Name
: ""; : "";
name += obj.orgRootName != null ? obj.orgRootName : ""; name += obj.orgRootName != null ? obj.orgRootName : "";
return name == "" ? "-" : name; return name == "" ? "" : name;
} else { } else {
return ""; return "";
} }
@ -140,7 +140,7 @@ const fecthProfile = async () => {
level: level:
e.posTypeName && e.posLevelName e.posTypeName && e.posLevelName
? e.posTypeName + " (" + e.posLevelName + ")" ? e.posTypeName + " (" + e.posLevelName + ")"
: "-", : "",
organizationOrganization: findOrgName(e), organizationOrganization: findOrgName(e),
})); }));
}) })
@ -273,13 +273,13 @@ const paginationLabel = (start: number, end: number, total: number) => {
<q-td key="position" :props="props"> <q-td key="position" :props="props">
{{ props.row.position ? props.row.position:'-' }} {{ props.row.position ? props.row.position:'-' }}
</q-td> </q-td>
<q-td key="level" :props="props">{{ props.row.level }}</q-td> <q-td key="level" :props="props">{{ props.row.level ? props.row.level :'-' }}</q-td>
<q-td <q-td
key="organizationOrganization" key="organizationOrganization"
:props="props" :props="props"
class="table_ellipsis" class="table_ellipsis"
> >
{{ props.row.organizationOrganization }} {{ props.row.organizationOrganization ? props.row.organizationOrganization:'-' }}
</q-td> </q-td>
<q-td> <q-td>
<q-btn <q-btn

View file

@ -316,7 +316,22 @@ const pagination = ref({
<div v-if="col.name === 'no'"> <div v-if="col.name === 'no'">
{{ props.rowIndex + 1 }} {{ props.rowIndex + 1 }}
</div> </div>
<div v-else-if="col.name === 'fullname'">
<div
v-if="
!props.row.prefix &&
!props.row.firstName &&
!props.row.lastName
"
>
-
</div>
<div v-else>
{{ props.row.prefix ? props.row.prefix : ""
}}{{ props.row.firstName ? props.row.firstName : "" }}
{{ props.row.lastName ? props.row.lastName : "" }}
</div>
</div>
<div <div
v-else v-else
:class=" :class="