fix
This commit is contained in:
parent
77381dbd09
commit
924ca29cb1
6 changed files with 51 additions and 12 deletions
|
|
@ -115,6 +115,9 @@ const columns = ref<QTableProps["columns"]>([
|
|||
label: "สังกัด",
|
||||
sortable: false,
|
||||
field: "org",
|
||||
format(val, row) {
|
||||
return val.replace(/(.*)\s(.*)$/, "$1\n$2");
|
||||
},
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
|
|
@ -361,7 +364,11 @@ onMounted(() => {
|
|||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<div v-if="col.name === 'no'">
|
||||
{{
|
||||
(formFilter.page - 1) * formFilter.pageSize + props.rowIndex + 1
|
||||
(
|
||||
(formFilter.page - 1) * formFilter.pageSize +
|
||||
props.rowIndex +
|
||||
1
|
||||
)?.toLocaleString()
|
||||
}}
|
||||
</div>
|
||||
<div v-else-if="col.name == 'fullName'">
|
||||
|
|
@ -414,7 +421,11 @@ onMounted(() => {
|
|||
</q-item>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="table_ellipsis">
|
||||
|
||||
<div v-else-if="col.name === 'org'" class="text-html">
|
||||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
<div v-else>
|
||||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
</q-td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue