แก้ ฟิลเตอร์

This commit is contained in:
setthawutttty 2024-12-23 16:22:36 +07:00
parent 2f1572bde0
commit f8d5fe7ba0
7 changed files with 94 additions and 98 deletions

View file

@ -110,6 +110,9 @@ const columns2 = ref<QTableProps["columns"]>([
style: "font-size: 14px",
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
format: (val, row) => {
return `${row.root} (${row.rootShortName}) ${row.nodeName} (${row.nodeShortName}${row.posMasterNo})`;
},
},
{
name: "typeCommand",
@ -137,6 +140,9 @@ const columns2 = ref<QTableProps["columns"]>([
field: "dateOfBirth",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format(val, row) {
return date2Thai(row.dateOfBirth);
},
},
]);
@ -330,8 +336,8 @@ watch(
v-for="col in props.cols"
:key="col.name"
:props="props"
@click="pageNext(props.row.id)"
>
<!-- @click="pageNext(props.row.id)" -->
<div v-if="col.name == 'no'">
{{ props.rowIndex + 1 }}
</div>
@ -341,13 +347,7 @@ watch(
props.row.status ? statusText(props.row.status) : "-"
}}
</div>
<div v-else-if="col.name == 'dateOfBirth'">
{{
props.row.dateOfBirth
? date2Thai(props.row.dateOfBirth)
: "-"
}}
</div>
<div v-else-if="col.name == 'organizationName'">
<div class="col-4">
<div class="text-weight-medium">