เพิ่ม columns table ขั้น

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-29 11:39:43 +07:00
parent ebe8227fbe
commit b7869a5f39
2 changed files with 12 additions and 2 deletions

View file

@ -310,7 +310,7 @@ onMounted(async () => {
</div>
<div :class="`text-${item.color} text-bold`">
{{ item.total.toLocaleString() }}
{{ item.total ? item.total.toLocaleString() : 0 }}
</div>
</div>
</q-card-section>

View file

@ -73,10 +73,19 @@ const columns = ref<QTableProps["columns"]>([
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "posType",
align: "left",
label: "ตำแหน่งประเภท",
sortable: false,
field: "posType",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "posLevel",
align: "left",
label: "ตำแหน่งประเภทระดับ",
label: "ระดับตำแหน่ง",
sortable: false,
field: "posLevel",
headerStyle: "font-size: 14px",
@ -115,6 +124,7 @@ const visibleColumns = ref<string[]>([
"posNo",
"fullName",
"position",
"posType",
"posLevel",
"posExecutive",
"amount",