fix Columns Org

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-03-28 14:01:29 +07:00
parent 5a47f5be5b
commit b8b812c319
8 changed files with 72 additions and 59 deletions

View file

@ -22,6 +22,7 @@ const {
findPosMasterNoOld,
date2Thai,
onSearchDataTable,
findOrgNameOldHtml,
} = useCounterMixin();
/** props*/
@ -108,7 +109,7 @@ const columns2 = ref<QTableProps["columns"]>([
align: "left",
label: "สังกัด",
sortable: true,
field: "organization",
field: "organizationPositionOld",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
format: (val, row) => findOrgNameOld(row),
@ -306,14 +307,13 @@ function onSearch() {
</div>
<div
v-else
:class="
col.name === 'organizationPositionOld' ||
col.name === 'organization'
? 'table_ellipsis'
: ''
"
v-else-if="col.name === 'organizationPositionOld'"
class="text-html"
>
{{ findOrgNameOldHtml(props.row) }}
</div>
<div v-else>
{{
col.value == null
? ""