fix colums no ===> ทะเบียนประวัติ ข้อมูลเครื่องราช
This commit is contained in:
parent
3eb5946489
commit
ee9470182f
2 changed files with 3 additions and 1 deletions
|
|
@ -1311,6 +1311,7 @@ onMounted(async () => {
|
||||||
:title="`ประวัติแก้ไขเครื่องราชอิสริยาภรณ์`"
|
:title="`ประวัติแก้ไขเครื่องราชอิสริยาภรณ์`"
|
||||||
:columns="columnsHistory"
|
:columns="columnsHistory"
|
||||||
:fetch-data="fetchDataHistory"
|
:fetch-data="fetchDataHistory"
|
||||||
|
:type="'insignia'"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ const columns = defineModel<QTableColumn[]>("columns", {
|
||||||
const visibleColumnsMain = defineModel<string[]>("visibleColumns", {
|
const visibleColumnsMain = defineModel<string[]>("visibleColumns", {
|
||||||
required: true,
|
required: true,
|
||||||
});
|
});
|
||||||
|
const type = defineModel<string>("type", { default: "" });
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
fetchData: { type: Function, required: true },
|
fetchData: { type: Function, required: true },
|
||||||
|
|
@ -114,7 +115,7 @@ watch(
|
||||||
<template v-slot:body="props">
|
<template v-slot:body="props">
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
<q-td v-for="col in props.cols" :key="col.id">
|
<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 }}
|
{{ props.rowIndex + 1 }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="col.name == 'organization'" class="text-html">
|
<div v-else-if="col.name == 'organization'" class="text-html">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue