แก้ ฟอร์ม ค้นหาชื่อไม่เจอ
This commit is contained in:
parent
df4cb61671
commit
75997a7ffc
1 changed files with 3 additions and 9 deletions
|
|
@ -95,6 +95,9 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
sort: (a: string, b: string) =>
|
sort: (a: string, b: string) =>
|
||||||
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
|
||||||
|
format(val, row) {
|
||||||
|
return `${row.prefix ?? ""}${row.firstName ?? ""} ${row.lastName ?? ""}`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "organizationName",
|
name: "organizationName",
|
||||||
|
|
@ -518,15 +521,6 @@ onMounted(() => {
|
||||||
<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'">
|
|
||||||
{{
|
|
||||||
props.row.firstName
|
|
||||||
? `${props.row.prefix ?? ""}${
|
|
||||||
props.row.firstName ?? ""
|
|
||||||
} ${props.row.lastName ?? ""}`
|
|
||||||
: "-"
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
<div v-else-if="col.name == 'dateOfBirth'">
|
<div v-else-if="col.name == 'dateOfBirth'">
|
||||||
{{
|
{{
|
||||||
props.row.dateOfBirth
|
props.row.dateOfBirth
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue