diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts index 49a69dc12..659f9cf76 100644 --- a/src/api/registry/api.registry.ts +++ b/src/api/registry/api.registry.ts @@ -4,11 +4,27 @@ 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}`, + profileNewTrainingByTrainingId: (trainingId: string) => + `${registryNew}training/${trainingId}`, + profileNewTrainingHisByTrainingId: (trainingId: string) => + `${registryNew}training/history/${trainingId}`, }; diff --git a/src/modules/01_metadataNew/components/insignia/InsigniaList.vue b/src/modules/01_metadataNew/components/insignia/InsigniaList.vue index 50635562c..8274f9163 100644 --- a/src/modules/01_metadataNew/components/insignia/InsigniaList.vue +++ b/src/modules/01_metadataNew/components/insignia/InsigniaList.vue @@ -251,6 +251,7 @@ async function deleteData(idData: string) { .delete(config.API.insigniaNewIdOrg(idData)) .then(() => { fetchData(id.value); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/01_metadataNew/components/insignia/InsigniaType.vue b/src/modules/01_metadataNew/components/insignia/InsigniaType.vue index 216586c40..22e786f1e 100644 --- a/src/modules/01_metadataNew/components/insignia/InsigniaType.vue +++ b/src/modules/01_metadataNew/components/insignia/InsigniaType.vue @@ -163,6 +163,7 @@ async function deleteData(id: string) { .delete(config.API.insigniaTypeNewIdOrg(id)) .then(() => { fetchData(); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/01_metadataNew/components/personal/01ListPrefix.vue b/src/modules/01_metadataNew/components/personal/01ListPrefix.vue index 2e982f834..422dbdce0 100644 --- a/src/modules/01_metadataNew/components/personal/01ListPrefix.vue +++ b/src/modules/01_metadataNew/components/personal/01ListPrefix.vue @@ -126,6 +126,7 @@ async function deleteData(id: string) { .delete(config.API.orgPrefixId(id)) .then(() => { fetchData(); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/01_metadataNew/components/personal/02ListRank.vue b/src/modules/01_metadataNew/components/personal/02ListRank.vue index b2b1a0b7b..7c0d9c93b 100644 --- a/src/modules/01_metadataNew/components/personal/02ListRank.vue +++ b/src/modules/01_metadataNew/components/personal/02ListRank.vue @@ -130,6 +130,7 @@ async function deleteData(id: string) { .delete(config.API.orgRankId(id)) .then(() => { fetchData(); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/01_metadataNew/components/personal/03ListBloodGroup.vue b/src/modules/01_metadataNew/components/personal/03ListBloodGroup.vue index a8a9eb0fc..132e27b7b 100644 --- a/src/modules/01_metadataNew/components/personal/03ListBloodGroup.vue +++ b/src/modules/01_metadataNew/components/personal/03ListBloodGroup.vue @@ -130,6 +130,7 @@ async function deleteData(id: string) { .delete(config.API.orgBloodGroupId(id)) .then(() => { fetchData(); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/01_metadataNew/components/personal/04ListGender.vue b/src/modules/01_metadataNew/components/personal/04ListGender.vue index c0c185118..0a7338575 100644 --- a/src/modules/01_metadataNew/components/personal/04ListGender.vue +++ b/src/modules/01_metadataNew/components/personal/04ListGender.vue @@ -130,6 +130,7 @@ async function deleteData(id: string) { .delete(config.API.orgGenderId(id)) .then(() => { fetchData(); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/01_metadataNew/components/personal/05ListReligion.vue b/src/modules/01_metadataNew/components/personal/05ListReligion.vue index 483cde13f..fb9fda0cd 100644 --- a/src/modules/01_metadataNew/components/personal/05ListReligion.vue +++ b/src/modules/01_metadataNew/components/personal/05ListReligion.vue @@ -130,6 +130,7 @@ async function deleteData(id: string) { .delete(config.API.orgReligionId(id)) .then(() => { fetchData(); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/01_metadataNew/components/personal/06ListRelationship.vue b/src/modules/01_metadataNew/components/personal/06ListRelationship.vue index 60c0f2cd2..694099997 100644 --- a/src/modules/01_metadataNew/components/personal/06ListRelationship.vue +++ b/src/modules/01_metadataNew/components/personal/06ListRelationship.vue @@ -158,6 +158,7 @@ async function deleteData(id: string) { .delete(config.API.orgRelationshipId(id)) .then(() => { fetchData(); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/01_metadataNew/components/personal/07ListEducationLevel.vue b/src/modules/01_metadataNew/components/personal/07ListEducationLevel.vue index c2d2c382c..8016e7c20 100644 --- a/src/modules/01_metadataNew/components/personal/07ListEducationLevel.vue +++ b/src/modules/01_metadataNew/components/personal/07ListEducationLevel.vue @@ -142,6 +142,7 @@ async function deleteData(id: string) { .delete(config.API.orgEducationLevelId(id)) .then(() => { fetchData(); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/01_metadataNew/components/position/02ListType.vue b/src/modules/01_metadataNew/components/position/02ListType.vue index d9d6b6284..b0c0a9ab6 100644 --- a/src/modules/01_metadataNew/components/position/02ListType.vue +++ b/src/modules/01_metadataNew/components/position/02ListType.vue @@ -146,6 +146,7 @@ async function deleteData(id: string) { .delete(config.API.orgPosTypeId(id)) .then(() => { fetchData(); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue b/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue index 4980d5974..318976a30 100644 --- a/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue +++ b/src/modules/01_metadataNew/components/position/05ListLevelDetail.vue @@ -203,6 +203,7 @@ async function deleteData(id: string) { .delete(config.API.orgPosLevelId(id)) .then(() => { fetchData(); + success($q, "ลบข้อมูลสำเร็จ"); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue index b0c09720d..2d71d5130 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue @@ -225,6 +225,7 @@ function closeHistoryDialog() { bordered :paging="true" dense + v-model:pagination="pagination" :rows-per-page-options="[20, 50, 100]" class="custom-header-table" :visible-columns="visibleColumns" diff --git a/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue b/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue index 205f3339c..6e4bf1a93 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue @@ -1,16 +1,29 @@ @@ -440,7 +633,7 @@ watch( round color="primary" icon="edit" - @click="addDataDialog = true" + @click="dialog = true" > แก้ไขข้อมูล @@ -466,16 +659,7 @@ watch(
{{ col.label }}
-
- {{ col.value ? date2Thai(col.value) : "-" }} -
-
{{ col.value }}
+
{{ col.value }}
@@ -485,11 +669,14 @@ watch( - + - +
@@ -568,7 +755,7 @@ watch( !!val || `${'กรุณาเลือกปีที่เริ่มต้นการฝึกอบรม/ดูงาน'}`, ]" - :label="`${'ปี ที่เริ่มต้นการฝึกอบรม/ดูงาน'}`" + :label="`${'ปีที่เริ่มต้นการฝึกอบรม/ดูงาน'}`" >