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

@ -35,6 +35,7 @@ const {
dialogRemove,
onSearchDataTable,
findChildNameHtml,
findOrgName,
} = useCounterMixin();
const modal = ref<boolean>(false);
@ -134,8 +135,15 @@ const columns = ref<QTableProps["columns"]>([
label: "ตำแหน่ง/หน่วยงานที่บรรจุกลับ",
sortable: true,
field: "organizationPositionReturn",
format(val, row) {
return row.organizationPositionReturn.replace(/\n/g, " ");
format: (val, row) => {
// return `${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})`
: ""
} ${findOrgName(row)}`;
},
headerStyle: "font-size: 14px",
style: "font-size: 14px",