fix(03_recruiting):Display Table

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-10-14 10:10:33 +07:00
parent 337c6dbf7b
commit a719b98791
2 changed files with 30 additions and 4 deletions

View file

@ -58,6 +58,7 @@ const visibleColumns = ref<String[]>([
"examAttribute",
"examScore",
"examResult",
"exam_order",
"applyDate",
]);
const columns = ref<QTableProps["columns"]>([
@ -210,7 +211,7 @@ const columns = ref<QTableProps["columns"]>([
{
name: "examResult",
align: "left",
label: "ผลคะแนนสอบ",
label: "ผลการสอบ",
sortable: true,
field: "examResult",
headerStyle: "font-size: 14px",
@ -218,6 +219,15 @@ const columns = ref<QTableProps["columns"]>([
sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
},
{
name: "exam_order",
align: "center",
label: "ลำดับที่สอบได้",
sortable: true,
field: "exam_order",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "applyDate",
align: "left",
@ -495,8 +505,11 @@ onMounted(async () => {
<div v-else-if="col.name == 'c5'">
<q-checkbox disable v-model="props.row.c5" />
</div>
<div v-else-if="col.name == 'exam_order'">
{{ col.value ? col.value : " " }}
</div>
<div v-else>
{{ col.value }}
{{ col.value ? col.value : "-" }}
</div>
</q-td>
</q-tr>