From 6d3bd5ca66524f31affdd656783b3cb1e6279358 Mon Sep 17 00:00:00 2001 From: oat_dev Date: Thu, 14 Mar 2024 17:57:58 +0700 Subject: [PATCH 01/15] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4:=20=E0=B8=AA=E0=B8=A3=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B8=87=E0=B9=84=E0=B8=9F=E0=B8=A5=E0=B9=8Capi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/registry/api.registry.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/api/registry/api.registry.ts diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts new file mode 100644 index 000000000..ecc1fd7fd --- /dev/null +++ b/src/api/registry/api.registry.ts @@ -0,0 +1,5 @@ +import env from "../index"; + +export default { + +} \ No newline at end of file From efc482b64cb77c00edba6436bea530469e1fb926 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Fri, 15 Mar 2024 09:30:39 +0700 Subject: [PATCH 02/15] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4:=20=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=A2=E0=B8=B9=E0=B9=88=20(=E0=B9=80=E0=B8=9E=E0=B8=B4?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=E0=B8=82=E0=B8=AD=E0=B8=9A=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B9=8C=E0=B8=94)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/detail/PersonalInformation/03_Address.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue index ac9052d15..cc16c88a5 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/03_Address.vue @@ -640,7 +640,7 @@ onMounted(async () => { - +
From 18d995ff3043e24c2e44266572d47d139cf016f8 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 15 Mar 2024 09:36:50 +0700 Subject: [PATCH 03/15] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20AP?= =?UTF-8?q?I=20=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD?= =?UTF-8?q?=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/manage/api.insignia.ts | 2 +- .../components/insignia/InsigniaList.vue | 23 ++++++++++++------- .../components/insignia/InsigniaType.vue | 2 +- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/api/manage/api.insignia.ts b/src/api/manage/api.insignia.ts index 5933393f3..943b2d79a 100644 --- a/src/api/manage/api.insignia.ts +++ b/src/api/manage/api.insignia.ts @@ -42,7 +42,7 @@ export default { insigniaOrg, insigniaTypeOrg, insigniaTypeNewOrg: `${insigniaOrg}`, - insigniaTypeNewIdOrg: (id: string) => `${insigniaOrg}${id}`, + insigniaTypeNewIdOrg: (id: string) => `${insigniaTypeOrg}${id}`, insigniaNewIdOrg: (id: string) => `${insigniaOrg}${id}`, insigniaSortOrg: (id: string) => `${insigniaOrg}sort/${id}`, }; diff --git a/src/modules/01_metadataNew/components/insignia/InsigniaList.vue b/src/modules/01_metadataNew/components/insignia/InsigniaList.vue index 1526bb26d..8ff7e51b4 100644 --- a/src/modules/01_metadataNew/components/insignia/InsigniaList.vue +++ b/src/modules/01_metadataNew/components/insignia/InsigniaList.vue @@ -206,14 +206,20 @@ async function onSubmit() { } async function addData() { - await http.post(config.API.insigniaOrg, { - name: name.value, - isActive: isActive.value, - shortName: shortName.value, - note: note.value == "" ? "-" : note.value, - insigniaTypeId: id.value, - }); - fetchData(id.value); + await http + .post(config.API.insigniaOrg, { + name: name.value, + isActive: isActive.value, + shortName: shortName.value, + note: note.value == "" ? "-" : note.value, + insigniaTypeId: id.value, + }) + .then(() => { + fetchData(id.value); + }) + .catch((err) => { + messageError($q, err); + }); } async function editData(idData: string) { @@ -256,6 +262,7 @@ const dialogOrder = ref(false); เพิ่มข้อมูล ([ async function fetchData() { showLoader(); await http - .get(config.API.insigniaTypeNewOrg) + .get(config.API.insigniaTypeOrg) .then(async (res) => { store.fetchData(res.data.result); }) From 5a58938dda10576c1986d4afb842e60496ae3e36 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 15 Mar 2024 09:47:11 +0700 Subject: [PATCH 04/15] =?UTF-8?q?=E0=B8=AD=E0=B8=B1=E0=B8=95=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=81=E0=B8=B3=E0=B8=A5=E0=B8=B1=E0=B8=87=E0=B8=A5?= =?UTF-8?q?=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89=E0=B8=B2=E0=B8=87=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=88=E0=B8=B3=E0=B8=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/02_organizational/api.organization.ts | 1 + .../components/DialogSortPosition.vue | 6 +++--- src/modules/16_positionEmployee/components/TreeTable.vue | 9 ++++----- src/modules/16_positionEmployee/components/TreeView.vue | 7 +------ 4 files changed, 9 insertions(+), 14 deletions(-) diff --git a/src/api/02_organizational/api.organization.ts b/src/api/02_organizational/api.organization.ts index 72f3efdcd..17f21f7eb 100644 --- a/src/api/02_organizational/api.organization.ts +++ b/src/api/02_organizational/api.organization.ts @@ -77,4 +77,5 @@ export default { orgPosMasterByIdEmp: (id: string) => `${orgEmployeePos}/master/${id}`, orgPosMasterListEmp: `${orgEmployeePos}/master/list`, orgPosMasterEmp: `${orgEmployeePos}/master`, + orgPosSortEmp: `${orgEmployeePos}/sort`, }; diff --git a/src/modules/16_positionEmployee/components/DialogSortPosition.vue b/src/modules/16_positionEmployee/components/DialogSortPosition.vue index a205a1751..aecaebf4a 100644 --- a/src/modules/16_positionEmployee/components/DialogSortPosition.vue +++ b/src/modules/16_positionEmployee/components/DialogSortPosition.vue @@ -46,7 +46,7 @@ function save() { const dataId = data.map((item: any) => item.id); showLoader(); http - .post(config.API.orgPosSort, { + .post(config.API.orgPosSortEmp, { id: store.treeId, type: store.level, sortId: dataId, @@ -68,14 +68,14 @@ function save() { function getData() { showLoader(); http - .post(config.API.orgPosMasterList, { + .post(config.API.orgPosMasterListEmp, { id: store.treeId, type: store.level, isAll: false, page: 1, pageSize: 100, keyword: "", - revisionId: store.draftId, + revisionId: store.activeId, }) .then((res) => { const dataList = res.data.result.data; diff --git a/src/modules/16_positionEmployee/components/TreeTable.vue b/src/modules/16_positionEmployee/components/TreeTable.vue index ce96087a0..681311849 100644 --- a/src/modules/16_positionEmployee/components/TreeTable.vue +++ b/src/modules/16_positionEmployee/components/TreeTable.vue @@ -536,7 +536,6 @@ async function onClickDownloadReport(val: string, name: string) { >