From 1dff367e7b21dbdb3f8793806c54e0f8414c3f4e Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Thu, 19 Dec 2024 17:52:43 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=80=E0=B9=80?= =?UTF-8?q?=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=9C=E0=B8=A5=20Individual=20De?= =?UTF-8?q?velopment=20Plan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/KPI/api.kpis.ts | 5 + .../04_Achievement/06_DevelopmentPlan.vue | 4 +- .../10_registry/Dialog/DialogDevelopmant.vue | 160 ++++++++++-------- 3 files changed, 101 insertions(+), 68 deletions(-) diff --git a/src/api/KPI/api.kpis.ts b/src/api/KPI/api.kpis.ts index 1c3bc01..a7b5ae6 100644 --- a/src/api/KPI/api.kpis.ts +++ b/src/api/KPI/api.kpis.ts @@ -11,6 +11,7 @@ const KpiFile = `${env.API_URI}/salary/file`; const KpiEvaluationInfo = `${env.API_URI}/kpi/evaluation`; const Kpiorg = `${env.API_URI}/org/profile/commander`; +const developmentOrg = `${env.API_URI}/org`; const Kpi = `${env.API_URI}/kpi`; const KpiUser = `${env.API_URI}/kpi/user`; const kpiAchievement = `${env.API_URI}/kpi/user/achievement`; @@ -64,4 +65,8 @@ export default { kpiReport: (id: string) => `${Kpi}/report/kpi-user/${id}`, developmentMain: `${development}/main`, + + developmentReQuestIDP: (id: string) => `${developmentOrg}/profile/development/registry/USER/${id}`, + developmentIDP: (id: string) => `${development}/main/registry/USER/${id}`, }; + diff --git a/src/modules/10_registry/04_Achievement/06_DevelopmentPlan.vue b/src/modules/10_registry/04_Achievement/06_DevelopmentPlan.vue index 5841e92..d84181f 100644 --- a/src/modules/10_registry/04_Achievement/06_DevelopmentPlan.vue +++ b/src/modules/10_registry/04_Achievement/06_DevelopmentPlan.vue @@ -12,6 +12,7 @@ import DialogHistory from "@/modules/10_registry/Dialog/DialogHistory.vue"; import DialogDevelop from "@/modules/10_registry/Dialog/DialogDevelopmant.vue"; +const typeIDP = ref(""); const link = ref(""); const dataPerson = useDataStore(); const idByRow = ref(""); @@ -191,6 +192,7 @@ function getHistory() { function openDialogDevelop(data: any) { modalDevelop.value = true; kpiDevelopmentId.value = data.kpiDevelopmentId; + typeIDP.value = data.type } function onSearch() { @@ -374,7 +376,7 @@ onMounted(async () => { - +