From 8b12e131bc08de909681b84833c86894f26b2ff2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 21 May 2024 10:45:38 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=20>=20=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=96=E0=B8=B7=E0=B8=AD=E0=B8=84?= =?UTF-8?q?=E0=B8=A3=E0=B8=AD=E0=B8=87=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB?= =?UTF-8?q?=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/registry/api.registry.ts | 1 - .../components/DialogHistory.vue | 19 +++--- .../components/ExitInterview/exitRegistry.vue | 60 ++++--------------- src/modules/13_salary/views/salaryLists.vue | 8 ++- src/modules/14_KPI/views/list.vue | 5 +- 5 files changed, 35 insertions(+), 58 deletions(-) diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts index 525f343b5..ad88412d5 100644 --- a/src/api/registry/api.registry.ts +++ b/src/api/registry/api.registry.ts @@ -2,7 +2,6 @@ import env from "../index"; const registryNew = `${env.API_URI}/org/profile`; const metadata = `${env.API_URI}/org/metadata/`; -const salaryNew = `${env.API_URI}/org/profile/salary`; export default { registryNew: (type: string) => `${registryNew}${type}`, diff --git a/src/modules/04_registryNew/components/DialogHistory.vue b/src/modules/04_registryNew/components/DialogHistory.vue index 24f38a598..31a768e8d 100644 --- a/src/modules/04_registryNew/components/DialogHistory.vue +++ b/src/modules/04_registryNew/components/DialogHistory.vue @@ -99,6 +99,7 @@ function fecthPositionOfficer() { messageError($q, err); }); } + function fetchPositionPerm() { http .get(config.API.listPositionEmployeePositionHistory) @@ -141,11 +142,12 @@ function clickSearch(type: string) { }); } else if (typeKeyword.value === "position") { Object.assign(body, { - positionId: positionKeyword.value, + position: positionKeyword.value, }); } + const empType = type === "officer" ? "" : "-employee"; http - .post(config.API.profileHistory(type), body) + .post(config.API.registryNew(empType) + `/search/history/oc`, body) .then((res) => { let data = res.data.result; if (data.length !== 0) { @@ -206,9 +208,11 @@ const paginationLabel = (start: number, end: number, total: number) => {