From d54ab48bc5d9ebc3dc56d8c80e6c8edcdb336e8d Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 3 Dec 2024 10:49:23 +0700 Subject: [PATCH] no message --- .../components/DialogHistory.vue | 4 +- .../Achievement/01_ProfessionalLicense.vue | 9 +- .../detail/Achievement/02_Train.vue | 15 +-- .../detail/Achievement/03_Insignia.vue | 67 ++++++------- .../Achievement/04_DeclarationHonor.vue | 40 ++------ .../Achievement/05_ResultsPerformance.vue | 77 ++++++--------- .../detail/Achievement/DialogDevelopmance.vue | 9 +- .../detail/Employee/01_DataEmployee.vue | 23 ++--- .../detail/Employee/02_Employment.vue | 39 ++------ .../detail/GovernmentInformation/01_Info.vue | 19 +--- .../GovernmentInformation/02_Discipline.vue | 17 +--- .../02_DisciplineHistory.vue | 16 +--- .../detail/GovernmentInformation/03_Leave.vue | 28 ++---- .../GovernmentInformation/03_LeaveHistory.vue | 16 +--- .../04_PerformSpecialWork.vue | 25 +---- .../04_PerformSpecialWorkHistory.vue | 16 +--- .../detail/Other/01_OtherInformation.vue | 15 +-- .../Other/01_OtherInformationHistory.vue | 19 +--- .../detail/PersonalInformation/01_Profile.vue | 14 +-- .../detail/PersonalInformation/03_Address.vue | 15 +-- .../PersonalInformation/04_FamilyNew.vue | 19 +--- .../PersonalInformation/05_Education.vue | 1 + .../PersonalInformation/06_SpecialSkill.vue | 3 +- .../detail/Salary/01_PositionSalary.vue | 93 ++++++++++++++++--- .../Salary/01_PositionSalaryHistory.vue | 12 +-- .../detail/Salary/02_NotReceiveSalary.vue | 24 +---- .../Salary/02_NotReceiveSalaryHistory.vue | 3 +- 27 files changed, 220 insertions(+), 418 deletions(-) diff --git a/src/modules/04_registryPerson/components/DialogHistory.vue b/src/modules/04_registryPerson/components/DialogHistory.vue index 37ecbab91..d71af7ea4 100644 --- a/src/modules/04_registryPerson/components/DialogHistory.vue +++ b/src/modules/04_registryPerson/components/DialogHistory.vue @@ -304,11 +304,11 @@ function closeDialog() { diff --git a/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue b/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue index 744f08bf3..bd7a08a8e 100644 --- a/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue +++ b/src/modules/04_registryPerson/components/detail/Achievement/01_ProfessionalLicense.vue @@ -32,7 +32,7 @@ const empType = ref(pathRegistryEmp(route.name?.toString() ?? "")); /** * props */ - const isLeave = defineModel("isLeave", { +const isLeave = defineModel("isLeave", { required: true, }); @@ -251,6 +251,7 @@ function closeDialog() { function closeHistoryDialog() { historyDialog.value = false; historyRows.value = []; + historyKeyword.value = ""; } /** @@ -410,7 +411,6 @@ onMounted(() => { map-options :options="columns" option-value="name" - style="min-width: 140px" /> @@ -456,7 +456,7 @@ onMounted(() => { bordered :paging="true" dense - :filter="keyword" + :filter="keyword.trim()" v-model:pagination="pagination" :rows-per-page-options="[20, 50, 100]" class="custom-header-table" @@ -748,7 +748,6 @@ onMounted(() => { map-options :options="historyColumns" option-value="name" - style="min-width: 140px" /> @@ -758,7 +757,7 @@ onMounted(() => { :rows="historyRows" row-key="name" flat - :filter="historyKeyword" + :filter="historyKeyword.trim()" v-model:pagination="historyPagination" bordered :paging="true" diff --git a/src/modules/04_registryPerson/components/detail/Achievement/02_Train.vue b/src/modules/04_registryPerson/components/detail/Achievement/02_Train.vue index 727803f73..16bd44c53 100644 --- a/src/modules/04_registryPerson/components/detail/Achievement/02_Train.vue +++ b/src/modules/04_registryPerson/components/detail/Achievement/02_Train.vue @@ -482,6 +482,7 @@ function closeDialog() { function closeHistoryDialog() { historyDialog.value = false; historyRows.value = []; + historyKeyword.value = ""; } /** @@ -566,7 +567,6 @@ onMounted(() => { map-options :options="columns" option-value="name" - style="min-width: 140px" /> @@ -612,7 +612,7 @@ onMounted(() => { bordered :paging="true" dense - :filter="keyword" + :filter="keyword.trim()" :rows-per-page-options="[20, 50, 100]" v-model:pagination="pagination" class="custom-header-table" @@ -642,9 +642,7 @@ onMounted(() => { ประวัติแก้ไขการฝึกอบรม/ดูงาน { ประวัติแก้ไขการฝึกอบรม/ดูงาน { map-options :options="historyColumns" option-value="name" - style="min-width: 140px" /> @@ -1146,7 +1141,7 @@ onMounted(() => { :rows="historyRows" row-key="name" flat - :filter="historyKeyword" + :filter="historyKeyword.trim()" v-model:pagination="historyPagination" bordered :paging="true" diff --git a/src/modules/04_registryPerson/components/detail/Achievement/03_Insignia.vue b/src/modules/04_registryPerson/components/detail/Achievement/03_Insignia.vue index 0188fb7f7..452b1f23b 100644 --- a/src/modules/04_registryPerson/components/detail/Achievement/03_Insignia.vue +++ b/src/modules/04_registryPerson/components/detail/Achievement/03_Insignia.vue @@ -73,6 +73,8 @@ const modalHistory = ref(false); //แสดง popup ประวั const OpsFilter = ref({ insigniaOptions: [], }); + +const insigniaOptions = ref([]); //ต้วลือกรายการครื่องราช const Ops = ref({ insigniaOptions: [], @@ -600,7 +602,7 @@ function filterSelector(val: string, update: Function, refData: string) { switch (refData) { case "insigniaOptions": update(() => { - Ops.value.insigniaOptions = OpsFilter.value.insigniaOptions.filter( + insigniaOptions.value = OpsFilter.value.insigniaOptions.filter( (v: DataOption) => v.name.indexOf(val) > -1 ); }); @@ -650,6 +652,7 @@ onMounted(async () => { store.insigniaOption.length === 0 ? await fetchInsignia() : ""; Ops.value.insigniaOptions = store.insigniaOption; OpsFilter.value.insigniaOptions = store.insigniaOption; + insigniaOptions.value = store.insigniaOption; }); @@ -677,18 +680,7 @@ onMounted(async () => { debounce="300" > { map-options :options="columns" option-value="name" - style="min-width: 140px" /> { :rows="rows" :paging="true" :columns="columns" - :filter="filterSearch" + :filter="filterSearch.trim()" v-model:pagination="pagination" :grid="modeView === 'card'" :visible-columns="visibleColumns" @@ -776,9 +767,7 @@ onMounted(async () => { { ประวัติแก้ไขเครื่องราชอิสริยาภรณ์ {
- { v-model="insigniaForm.insigniaId" class="inputgreen" :label="`${'ชื่อเครื่องราชฯ'}`" - :options="Ops.insigniaOptions" + :options="insigniaOptions" :rules="[(val:string) => !!val || `${'กรุณาเลือกชื่อเครื่องราชฯ'}`]" @filter="(inputValue:string, doneFn:Function) => filterSelector(inputValue, doneFn,'insigniaOptions' ) " @update:modelValue="insigniaTypeSelection" - /> + > + +
{ @@ -1182,18 +1183,7 @@ onMounted(async () => { debounce="300" > { map-options :options="columnsHistory" option-value="name" - style="min-width: 140px" />
@@ -1222,7 +1211,7 @@ onMounted(async () => { :paging="true" :rows-per-page-options="[10, 25, 50, 100]" :visible-columns="visibleColumnsHistory" - :filter="filterHistory" + :filter="filterHistory.trim()" > >