เพิ่ม Columns

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-29 14:27:01 +07:00
parent 3b47f7fefc
commit 54108b98eb

View file

@ -94,11 +94,21 @@ const columns = ref<QTableProps["columns"]>([
style: "font-size: 14px", style: "font-size: 14px",
}, },
{ {
name: "positionIsSelected", name: "isCondition",
align: "left", align: "left",
label: "คนครอง", label: "ตำแหน่งติดเงื่อนไง",
sortable: false, sortable: false,
field: "positionIsSelected", field: "isCondition",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "conditionReason",
align: "left",
label: "หมายเหตุ",
sortable: false,
field: "conditionReason",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
}, },
@ -428,7 +438,10 @@ onMounted(async () => {
:key="col.name" :key="col.name"
:props="props" :props="props"
> >
<div> <div v-if="col.name === 'isCondition'">
<q-icon name="check" color="primary" />
</div>
<div v-else>
{{ col.value ? col.value : "-" }} {{ col.value ? col.value : "-" }}
</div> </div>
</q-td> </q-td>