From 8cbe4fd9c5056ac2d896d69438f67ed5a254fa5c Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 5 Feb 2025 17:31:04 +0700 Subject: [PATCH 1/9] =?UTF-8?q?fix=20Code=20=E0=B8=97=E0=B8=94=E0=B8=A5?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=9B=E0=B8=8F=E0=B8=B4=E0=B8=9A=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2=E0=B8=97?= =?UTF-8?q?=E0=B8=B5=E0=B9=88=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/probation/MainProbation.vue | 268 ++++++++---------- .../interface/response/Probation.ts | 47 +++ 2 files changed, 165 insertions(+), 150 deletions(-) create mode 100644 src/modules/05_placement/interface/response/Probation.ts diff --git a/src/modules/05_placement/components/probation/MainProbation.vue b/src/modules/05_placement/components/probation/MainProbation.vue index 8e456569f..3cbd5c771 100644 --- a/src/modules/05_placement/components/probation/MainProbation.vue +++ b/src/modules/05_placement/components/probation/MainProbation.vue @@ -1,7 +1,7 @@ @@ -557,7 +529,6 @@ onMounted(async () => { standout dense v-model="filterKeyword" - ref="filterRef" outlined placeholder="ค้นหา" @keydown.enter.prevent="getSearchMain()" @@ -675,7 +646,7 @@ onMounted(async () => { boundary-links direction-links :max-pages="5" - @update:model-value="getpersonalList" + @update:model-value="fetchProbationPersonalList" > @@ -688,7 +659,7 @@ onMounted(async () => { @@ -697,7 +668,6 @@ onMounted(async () => { standout dense v-model="formProbation.keyword" - ref="filterRef2" outlined placeholder="ค้นหา" @keydown.enter.prevent="filterKeyword2Fn(formProbation.page)" @@ -708,7 +678,6 @@ onMounted(async () => { v-if="filterKeyword2 !== ''" name="clear" class="cursor-pointer" - @click="resetFilter2" /> @@ -723,7 +692,6 @@ onMounted(async () => { :paging="true" dense class="custom-header-table" - v-bind="attrs" :pagination-label="paginationLabel2" v-model:pagination="pagination2" @update:pagination="updatePagination" @@ -750,7 +718,7 @@ onMounted(async () => { outline color="primary" label="เพิ่ม" - @click="clickAdd(props.row)" + @click="addPersonalData(props.row)" > diff --git a/src/modules/05_placement/interface/response/Probation.ts b/src/modules/05_placement/interface/response/Probation.ts new file mode 100644 index 000000000..acd70a9ad --- /dev/null +++ b/src/modules/05_placement/interface/response/Probation.ts @@ -0,0 +1,47 @@ +interface ResListProbation { + firstName: string; + idcard: string; + lastName: string; + name: string; + order_number: string; + ordering: number; + organization: string; + personal_id: string; + position_level: string; + position_line: string; + position_type: string; + prefixName: string; + probation_no: number; + probation_status: number; +} + +interface ResProfileProbation { + firstName: string; + id: string; + idcard: string; + isProbation: boolean; + lastName: string; + orgChild1: string; + orgChild1Name: string; + orgChild2: string; + orgChild2Name: string; + orgChild3: string; + orgChild3Name: string; + orgChild4: string; + orgChild4Name: string; + orgRootName: string; + posExecutiveName: string; + posLevelName: string; + posNo: string; + posTypeName: string; + position: string; + positionArea: string; + positionExecutiveField: string; + positionField: string; + prefix: string; + rank: string; + refCommandNo: string; + root: string; +} + +export type { ResListProbation, ResProfileProbation }; From 73db661b34f87a8de94f383ce858a9f6c4f4641e Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 5 Feb 2025 17:47:10 +0700 Subject: [PATCH 2/9] =?UTF-8?q?layout=20=E0=B8=97=E0=B8=94=E0=B8=A5?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=9B=E0=B8=8F=E0=B8=B4=E0=B8=9A=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2=E0=B8=97?= =?UTF-8?q?=E0=B8=B5=E0=B9=88=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/probation/MainAppoint.vue | 4 +- .../components/probation/MainProbation.vue | 2 +- .../components/probation/MainSurvey.vue | 60 +++++++++---------- .../components/probation/MainTabs.vue | 6 +- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/modules/05_placement/components/probation/MainAppoint.vue b/src/modules/05_placement/components/probation/MainAppoint.vue index fb50de670..ae08e5f3d 100644 --- a/src/modules/05_placement/components/probation/MainAppoint.vue +++ b/src/modules/05_placement/components/probation/MainAppoint.vue @@ -1,5 +1,5 @@