fix filter placemrnt

This commit is contained in:
Warunee Tamkoo 2025-06-20 18:12:39 +07:00
parent fc4404a391
commit f7ed037ba6
7 changed files with 172 additions and 110 deletions

View file

@ -37,6 +37,7 @@ const {
dialogRemove,
onSearchDataTable,
findOrgNameHtml,
findOrgName,
} = useCounterMixin();
const status = ref<string>("");
@ -147,9 +148,24 @@ const columns = ref<QTableProps["columns"]>([
field: "organizationName",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
// format: (val, row) => {
// return `${row.root.position}${row.root.posLevelName}${row.root} (${row.rootShortName}) ${row.nodeName} (${row.nodeShortName}${row.posMasterNo})`;
// },
format: (val, row) => {
// return `${row.root.position}${row.root.posLevelName}${row.root} (${row.rootShortName}) ${row.nodeName} (${row.nodeShortName}${row.posMasterNo})`;
return `${row.position !== null ? row.position : ""}${
row.posLevelName !== null ? `${row.posLevelName}` : ""
} ${
row.nodeShortName !== null
? `(${row.nodeShortName}${row.posMasterNo})`
: ""
} ${
row.positionExecutive !== null
? `${row.positionExecutive}${
row.positionExecutiveField
? ` (${row.positionExecutiveField})`
: ""
}`
: ""
} ${findOrgName(row)}`;
},
},
{
name: "dateOfBirth",