From 589c903fba7c6d44194e2070ef3c633bd4e1b12b Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Thu, 21 Nov 2024 17:08:20 +0700 Subject: [PATCH 01/14] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20route=20?= =?UTF-8?q?=E0=B8=84=E0=B8=B9=E0=B9=88=E0=B8=A1=E0=B8=B7=E0=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.config.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/app.config.ts b/src/app.config.ts index 27edfe45f..a4bf54b97 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -179,33 +179,33 @@ const generatePopupPath = (routeName: any) => { } else if (routeName.includes("appeal")) { return `${path}/manual/chapter-15-admin-discipline`; } else if (routeName.includes("KPIIndicatorByPlan")) { - return `${path}/manual/chapter-2-1-admin-evaluate`; + return `${path}/manual/chapter-2-admin-evaluate`; } else if (routeName.includes("KPIIndicatorByRole")) { - return `${path}/manual/chapter-2-2-admin-evaluate`; + return `${path}/manual/chapter-2-1-2-admin-evaluate`; } else if (routeName.includes("KPIAssignment")) { - return `${path}/manual/chapter-2-3-admin-evaluate`; + return `${path}/manual/chapter-2-1-3-admin-evaluate`; } else if (routeName.includes("KPICompetency")) { - return `${path}/manual/chapter-2-4-admin-evaluate`; + return `${path}/manual/chapter-2-2-admin-evaluate`; } else if (routeName.includes("strategic")) { - return `${path}/manual/chapter-2-5-admin-evaluate`; + return `${path}/manual/chapter-2-3-admin-evaluate`; } else if (routeName.includes("salary")) { return `${path}/manual/chapter-17-admin-salary`; } else if (routeName == "commandListPage") { return `${path}/manual/chapter-7-admin-order`; } else if (routeName == "competePeriod") { - return `${path}/manual/chapter-8-2-1-admin-compete-period`; + return `${path}/manual/chapter-8-3-admin-compete-period`; } else if (routeName == "qualifyPeriod") { - return `${path}/manual/chapter-8-3-1-admin-qualify-period`; + return `${path}/manual/chapter-8-4-1-admin-qualify-period`; } else if (routeName == "disablePeriod") { - return `${path}/manual/chapter-8-3-2-admin-disable-period`; + return `${path}/manual/chapter-8-4-2-admin-disable-period`; } else if (routeName == "manage") { - return `${path}/manual/chapter-8-3-3-admin-qualify-manage`; + return `${path}/manual/chapter-8-4-3-admin-qualify-manage`; } else if (routeName == "qualifyPeriodStat") { - return `${path}/manual/chapter-8-3-4-admin-qualify-period-stat`; + return `${path}/manual/chapter-8-4-4-admin-qualify-period-stat`; } else if (routeName == "qualifyPeriodStatDisable") { - return `${path}/manual/chapter-8-3-5-admin-qualify-disable-stat`; + return `${path}/manual/chapter-8-4-5-admin-qualify-disable-stat`; } else if (routeName.includes("competePeriodStat")) { - return `${path}/manual/chapter-8-2-2-admin-compete-period-stat`; + return `${path}/manual/chapter-8-3-2-admin-compete-period-stat`; } else if ( routeName.includes("qualify") || routeName.includes("recruiting") || From 1e4dd426f3fa22eda27a81a5be9dabfb862f0d62 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 22 Nov 2024 14:03:32 +0700 Subject: [PATCH 02/14] prefix --- .../components/detail/PersonalInformation/01_Profile.vue | 3 ++- .../detail/PersonalInformation/02_NameChangeHistory.vue | 3 +-- src/modules/04_registryPerson/interface/request/Profile.ts | 3 ++- src/modules/04_registryPerson/interface/response/Main.ts | 3 ++- src/modules/04_registryPerson/interface/response/Profile.ts | 1 + 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue index 3a23f8c2b..785abe568 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue @@ -316,10 +316,11 @@ async function getData() { function onClickOpenDialog() { if (!informaData.value) return; modal.value = true; + id.value = informaData.value.id; age.value = calculateAge(informaData.value.birthDate); formData.citizenId = informaData.value.citizenId; - formData.prefix = informaData.value.prefix; + formData.prefix = informaData.value.prefixMain; formData.rank = informaData.value.rank; formData.firstName = informaData.value.firstName; formData.lastName = informaData.value.lastName; diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue index 4dc42acaf..493ab8a4a 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/02_NameChangeHistory.vue @@ -461,7 +461,7 @@ onMounted(async () => { icon="add" @click=" () => { - changeNameData.prefix = profileInfo?.prefix; + changeNameData.prefix = profileInfo?.prefixMain; changeNameData.firstName = profileInfo?.firstName; changeNameData.lastName = profileInfo?.lastName; prefixChange = changeNameData.prefix; @@ -496,7 +496,6 @@ onMounted(async () => { outlined emit-value map-options - options-dense option-value="name" style="min-width: 140px" diff --git a/src/modules/04_registryPerson/interface/request/Profile.ts b/src/modules/04_registryPerson/interface/request/Profile.ts index c4f49124c..c75f5e536 100644 --- a/src/modules/04_registryPerson/interface/request/Profile.ts +++ b/src/modules/04_registryPerson/interface/request/Profile.ts @@ -1,5 +1,5 @@ interface RequestObject { - birthDate: Date | null | string; + birthDate: Date | null; bloodGroup: string | null; citizenId: string; // email: string | null; @@ -15,6 +15,7 @@ interface RequestObject { relationship?: string | null; religion?: string | null; phone?: string | null; + prefixMain: string; // telephoneNumber: string | null; } diff --git a/src/modules/04_registryPerson/interface/response/Main.ts b/src/modules/04_registryPerson/interface/response/Main.ts index 1c5a9bc45..a1664d686 100644 --- a/src/modules/04_registryPerson/interface/response/Main.ts +++ b/src/modules/04_registryPerson/interface/response/Main.ts @@ -27,7 +27,7 @@ interface DataPerson { } interface DataRequest { - createdAt: string|Date; + createdAt: string | Date; createdFullName?: string; detail: string; fullname: string; @@ -117,6 +117,7 @@ interface DataProfile { posTypeName: string; posTypeRank: number; }; + prefixMain: string; } interface DataLeave { diff --git a/src/modules/04_registryPerson/interface/response/Profile.ts b/src/modules/04_registryPerson/interface/response/Profile.ts index 6cc8bc90b..1742e7825 100644 --- a/src/modules/04_registryPerson/interface/response/Profile.ts +++ b/src/modules/04_registryPerson/interface/response/Profile.ts @@ -32,6 +32,7 @@ interface ResponseObject { relationship: string | null; religion: string | null; telephoneNumber: string | null; + prefixMain: string; } interface Religion { From c44a50412e84e172d484f04a7c0d83129edcfa12 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 22 Nov 2024 16:55:31 +0700 Subject: [PATCH 03/14] fix --- .../components/detail/PersonalInformation/01_Profile.vue | 2 +- .../components/detail/PersonalInformation/03_Address.vue | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue index 785abe568..fe8367f91 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/01_Profile.vue @@ -82,7 +82,7 @@ const dataLabel = { religion: "ศาสนา", bloodGroup: "หมู่เลือด", phone: "เบอร์โทร", - email: "อีเมล์", + email: "อีเมล", prefix: "คำนำหน้าชื่อ", rank: "ยศ", firstName: "ชื่อ", diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/03_Address.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/03_Address.vue index 4acdc9736..b4125279f 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/03_Address.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/03_Address.vue @@ -68,12 +68,12 @@ const dataLabel = { registrationAddress: "ที่อยู่ตามทะเบียนบ้าน", registrationProvince: "จังหวัด", registrationDistrict: "เขต/อำเภอ", - registrationSubDistrict: "แขวง / ตำบล", + registrationSubDistrict: "แขวง/ตำบล", registrationZipCode: "รหัสไปรษณีย์", currentAddress: "ที่อยู่ปัจจุบัน", currentProvince: "จังหวัด", currentDistrict: "เขต/อำเภอ", - currentSubDistrict: "แขวง / ตำบล", + currentSubDistrict: "แขวง/ตำบล", currentZipCode: "รหัสไปรษณีย์", registrationSame: "ที่อยู่ปัจจุบันตรงกับที่อยู่ตามทะเบียนบ้าน", }; @@ -941,7 +941,6 @@ onMounted(async () => { map-options :options="columnsHistory" option-value="name" - style="min-width: 140px" /> From 30d342728b601157928f333356ff43fe657af6a8 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 22 Nov 2024 17:20:09 +0700 Subject: [PATCH 04/14] fix --- .../components/DialogHistory.vue | 53 +++---------------- .../detail/Other/01_OtherInformation.vue | 3 +- .../PersonalInformation/04_FamilyNew.vue | 2 +- .../components/2_InvestigateFacts/Form.vue | 2 +- .../3_InvestigateDisciplinary/Form.vue | 2 +- 5 files changed, 10 insertions(+), 52 deletions(-) diff --git a/src/modules/04_registryPerson/components/DialogHistory.vue b/src/modules/04_registryPerson/components/DialogHistory.vue index 607e9f2a5..797e41d59 100644 --- a/src/modules/04_registryPerson/components/DialogHistory.vue +++ b/src/modules/04_registryPerson/components/DialogHistory.vue @@ -261,8 +261,8 @@ function closeDialog() {
-
-
+ +
-
-
+
-
- -
- -
- - -
- - -
+
diff --git a/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue b/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue index 9e42e94c9..4894b6d90 100644 --- a/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue +++ b/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue @@ -256,7 +256,6 @@ onMounted(() => { map-options :options="columns" option-value="name" - style="min-width: 140px" /> { flat round @click="openDialogEdit(props.row)" - >แก้ไขแก้ไขข้อมูล
diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/04_FamilyNew.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/04_FamilyNew.vue index 1d31955f2..91716d594 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/04_FamilyNew.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/04_FamilyNew.vue @@ -1008,7 +1008,7 @@ onMounted(async () => { /> -
+
สถานภาพการมีชีวิต
{ @click="openEditDirector(props.row)" icon="edit" > - แก้ไข + แก้ไขข้อมูล { @click="openEditDirector(props.row)" icon="edit" > - แก้ไข + แก้ไขข้อมูล Date: Fri, 22 Nov 2024 18:04:12 +0700 Subject: [PATCH 05/14] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table.vue | 1 + src/components/information/Address.vue | 6 +++--- src/modules/03_recruiting/components/Address.vue | 8 ++++---- .../03_recruiting/views/03_editor/index.vue | 14 +++++++------- .../components/Dialog/02_Address.vue | 8 ++++---- .../components/Dialog/DialogUpdate.vue | 9 +++++---- .../04_registryPerson/components/DialogHistory.vue | 2 +- .../04_registryPerson/components/TableView.vue | 2 +- .../detail/GovernmentInformation/01_Info.vue | 2 ++ .../detail/GovernmentInformation/02_Discipline.vue | 5 ++--- .../detail/PersonalInformation/03_Address.vue | 10 +++++----- .../04_registryPerson/interface/request/Profile.ts | 2 +- .../04_registryPerson/interface/response/Main.ts | 1 + .../interface/response/Profile.ts | 1 + src/modules/04_registryPerson/store.ts | 5 +++-- src/modules/04_registryPerson/stores/Address.ts | 2 +- src/modules/04_registryPerson/stores/LinkCenter.ts | 2 +- src/modules/04_registryPerson/views/detailView.vue | 4 +++- src/modules/04_registryPerson/views/listView.vue | 5 ++++- .../04_registryPerson/views/requestEditView.vue | 4 ++++ .../CheckInformation/02_FormAddress.vue | 8 ++++---- .../PersonalDetail/Information/Address.vue | 8 ++++---- .../components/ListRetirement/TableList.vue | 4 ++-- .../07_insignia/components/2_Manage/Tab1.vue | 2 +- src/modules/07_insignia/views/03_ResultMain.vue | 2 +- src/modules/07_insignia/views/05_BorrowMain.vue | 2 +- src/modules/08_registryEmployee/views/Main.vue | 6 ++++-- .../09_leave/components/2_Leave/DetailLeave.vue | 2 +- .../components/2_Leave/DetailLeaveReject.vue | 2 +- .../components/1_Complaint/EditPage.vue | 2 +- .../6_BasicInformation/Director/Form.vue | 2 +- .../components/8_AppealComplain/Form.vue | 2 +- .../11_discipline/store/InvestigateDisStore.ts | 2 +- src/modules/11_discipline/store/Main.ts | 4 ++-- src/modules/11_discipline/store/ResultStore.ts | 2 +- .../components/Detail/viewTab2/CardDirector.vue | 2 +- .../components/Detail/viewstep/viewStep1.vue | 2 +- .../components/Director/Form.vue | 2 +- .../14_KPI/components/Tab/Dialog/DialogEvalute.vue | 2 +- src/modules/15_development/components/Record.vue | 2 +- .../15_development/components/history/AddPage.vue | 4 ++-- .../components/history/DialogGov.vue | 4 ++-- .../components/historyEmployee/AddPage.vue | 4 ++-- .../15_development/views/EmployeeHistory.vue | 2 +- src/modules/15_development/views/History.vue | 2 +- 45 files changed, 93 insertions(+), 76 deletions(-) diff --git a/src/components/Table.vue b/src/components/Table.vue index 38d875fb6..9434aae28 100644 --- a/src/components/Table.vue +++ b/src/components/Table.vue @@ -10,6 +10,7 @@ dense :pagination-label="paginationLabel" v-model:pagination="pagination" + :rows-per-page-options="[10, 25, 50, 100]" >