diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts index faf2c11f4..659f9cf76 100644 --- a/src/api/registry/api.registry.ts +++ b/src/api/registry/api.registry.ts @@ -4,14 +4,22 @@ const registryNew = `${env.API_URI}/org/profile/`; export default { registryNew, + // เครื่องราชฯ profileNewInsign: `${registryNew}insignia`, profileNewInsignByProfileId: (profileId: string) => `${registryNew}insignia/${profileId}`, - profileNewInsignByInsignId: (insignId: string) => - `${registryNew}insignia/${insignId}`, - profileNewInsignHisByInsignId: (insignId: string) => - `${registryNew}insignia/history/${insignId}`, + profileNewInsignById: (dataId: string) => `${registryNew}insignia/${dataId}`, + profileNewInsignHisById: (dataId: string) => + `${registryNew}insignia/history/${dataId}`, + // ประกาศเกียรติคุณ + profileNewHonor: `${registryNew}honor`, + profileNewHonorByProfileId: (profileId: string) => + `${registryNew}honor/${profileId}`, + profileNewHonorById: (dataId: string) => `${registryNew}honor/${dataId}`, + profileNewHonorHisById: (dataId: string) => `${registryNew}honor/${dataId}`, + + // การฝึกอบรม profileNewTraining: `${registryNew}training`, profileNewTrainingByProfileId: (profileId: string) => `${registryNew}training/${profileId}`, diff --git a/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue b/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue index 0f47b3505..26e68abab 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue @@ -1,28 +1,28 @@ @@ -672,7 +798,7 @@ onMounted(async () => { { @@ -712,7 +838,7 @@ onMounted(async () => { name="mdi-view-grid-outline" size="24px" :style="{ - color: modelView === 'card' ? '#787B7C' : '#C9D3DB', + color: modeView === 'card' ? '#787B7C' : '#C9D3DB', }" /> @@ -723,16 +849,14 @@ onMounted(async () => { flat dense bordered - virtual-scroll ref="table" - v-bind="attrs" + class="custom-header-table" :rows="rows" + :paging="true" :columns="columns" :filter="filterSearch" - :grid="modelView === 'card'" - :pagination="initialPagination" + :grid="modeView === 'card'" :visible-columns="visibleColumns" - :pagination-label="paginationLabel" :rows-per-page-options="[20, 50, 100]" > - @@ -1097,7 +1254,8 @@ onMounted(async () => { outlined lazy-rules hide-bottom-space - v-model="refCommandNo" + v-model="insigniaData.refCommandNo" + class="inputgreen" :label="`${'เลขที่คำสั่ง'}`" @update:modelValue="() => (editRow = true)" > @@ -1110,7 +1268,7 @@ onMounted(async () => { { clearable lazy-rules hide-bottom-space - :borderless="!edit" + class="inputgreen" :label="`${'เอกสารอ้างอิง (ลง วัน/เดือน/ปี)'}`" :model-value=" - date2Thai(refCommandDate as Date) + date2Thai(insigniaData.refCommandDate as Date) " - @clear="refCommandDate = ''" + @clear="insigniaData.refCommandDate = ''" @update:modelValue="() => (editRow = true)" >