เพิ่ม Columns
This commit is contained in:
parent
3b47f7fefc
commit
54108b98eb
1 changed files with 17 additions and 4 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue