fix:add colum email phone

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-02-04 12:55:38 +07:00
parent ce3ac42315
commit 790fcc18fb
3 changed files with 338 additions and 176 deletions

View file

@ -26,6 +26,9 @@ const visibleColumns = ref<string[]>([
"description",
"system",
"menu",
"org",
"email",
"phone",
"createdAt",
"createdFullName",
"status",
@ -68,6 +71,35 @@ const columns = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "org",
align: "left",
label: "หน่วยงาน",
sortable: false,
field: "org",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "email",
align: "left",
label: "อีเมลติดต่อกลับ",
sortable: false,
field: "email",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "phone",
align: "left",
label: "เบอร์ติดต่อกลับ",
sortable: false,
field: "phone",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "createdAt",
align: "left",
@ -304,7 +336,11 @@ onMounted(async () => {
</q-td>
<q-td v-for="col in props.cols" :key="col.id">
<div
:class="col.name === 'description' ? 'table_ellipsis' : ''"
:class="
col.name === 'description' || col.name === 'org'
? 'table_ellipsis'
: ''
"
>
{{ col.value ? col.value : "-" }}
</div>