fix colums no ===> ทะเบียนประวัติ ข้อมูลเครื่องราช

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-07-29 13:21:20 +07:00
parent 3eb5946489
commit ee9470182f
2 changed files with 3 additions and 1 deletions

View file

@ -1311,6 +1311,7 @@ onMounted(async () => {
:title="`ประวัติแก้ไขเครื่องราชอิสริยาภรณ์`"
:columns="columnsHistory"
:fetch-data="fetchDataHistory"
:type="'insignia'"
/>
</template>

View file

@ -17,6 +17,7 @@ const columns = defineModel<QTableColumn[]>("columns", {
const visibleColumnsMain = defineModel<string[]>("visibleColumns", {
required: true,
});
const type = defineModel<string>("type", { default: "" });
const props = defineProps({
fetchData: { type: Function, required: true },
@ -114,7 +115,7 @@ watch(
<template v-slot:body="props">
<q-tr :props="props">
<q-td v-for="col in props.cols" :key="col.id">
<div v-if="col.name === 'no'">
<div v-if="col.name === 'no' && type !== 'insignia'">
{{ props.rowIndex + 1 }}
</div>
<div v-else-if="col.name == 'organization'" class="text-html">