From 70162638a49fda4373823001bf3bec53ecb3b4d6 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Wed, 24 Apr 2024 14:24:59 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9E=E0=B8=A4=E0=B8=95=E0=B8=B4=E0=B8=81?= =?UTF-8?q?=E0=B8=A3=E0=B8=A3=E0=B8=A1=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9B?= =?UTF-8?q?=E0=B8=8E=E0=B8=B4=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3=20(=E0=B8=AA?= =?UTF-8?q?=E0=B8=A1=E0=B8=A3=E0=B8=A3=E0=B8=96=E0=B8=99=E0=B8=B0)=20?= =?UTF-8?q?=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=80=E0=B8=AA=E0=B8=A3=E0=B9=87?= =?UTF-8?q?=E0=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/KPI/api.kpis.ts | 4 +- .../08_KPI/components/Tab/01_Assessment.vue | 14 +- .../Tab/Dialog/04_FormCompetency.vue | 38 ++- .../Tab/Dialog/DialogListCriteria.vue | 67 +++++ .../Tab/DialogEvaluate/02_Competenct.vue | 247 ++++++++++++++++++ .../Tab/Topic/02_CompetencyCard.vue | 201 ++++++++++---- 6 files changed, 488 insertions(+), 83 deletions(-) create mode 100644 src/modules/08_KPI/components/Tab/Dialog/DialogListCriteria.vue create mode 100644 src/modules/08_KPI/components/Tab/DialogEvaluate/02_Competenct.vue diff --git a/src/api/KPI/api.kpis.ts b/src/api/KPI/api.kpis.ts index cbc3145..65fa918 100644 --- a/src/api/KPI/api.kpis.ts +++ b/src/api/KPI/api.kpis.ts @@ -7,6 +7,7 @@ const kpiPlan = `${env.API_URI}/kpi/plan`; const kpiRole = `${env.API_URI}/kpi/role`; const KpiCapacity = `${env.API_URI}/kpi/capacity`; const KpiFile = `${env.API_URI}/salary/file`; +const KpiEvaluation = `${env.API_URI}/kpi/evaluation`; const KpiUser = `${env.API_URI}/kpi/user`; const kpiAchievement = `${env.API_URI}/kpi/user/achievement`; @@ -25,5 +26,6 @@ export default { fileByFile: (name: string, group: string, id: string, fileName: string) => `${url}/file/${name}/${group}/${id}/${fileName}`, - kpiUserCapacity:`${KpiUser}/capacity` + kpiUserCapacity:`${KpiUser}/capacity`, + KpiEvaluation }; diff --git a/src/modules/08_KPI/components/Tab/01_Assessment.vue b/src/modules/08_KPI/components/Tab/01_Assessment.vue index 04703a5..e56e641 100644 --- a/src/modules/08_KPI/components/Tab/01_Assessment.vue +++ b/src/modules/08_KPI/components/Tab/01_Assessment.vue @@ -3,6 +3,8 @@ import { ref, onMounted } from "vue"; import { useQuasar } from "quasar"; import { useRoute } from "vue-router"; +import DialogListCriteria from "@/modules/08_KPI/components/Tab/Dialog/DialogListCriteria.vue"; + import config from "@/app.config"; import http from "@/plugins/http"; @@ -12,6 +14,7 @@ import Competency from "@/modules/08_KPI/components/Tab/Topic/02_Competency.vue" import { useCounterMixin } from "@/stores/mixin"; import { useKpiDataStore } from "@/modules/08_KPI/store"; +const modalCriteria = ref(false) const $q = useQuasar(); const route = useRoute(); const { showLoader, hideLoader, messageError } = useCounterMixin(); @@ -73,6 +76,10 @@ function fetchAssigned() { rows_03.value = data; } +function onInfo(){ + modalCriteria.value = true +} + onMounted(() => { fetchListPlanned(); fetchListRole(); @@ -128,16 +135,21 @@ onMounted(() => {
องค์ประกอบที่ 2 พฤติกรรมการปฎิบัติราชการ (สมรรถนะ) + + เกณฑ์การประเมิน +
- ผลการประเมินสมรรถนะ (20 คะแนน) + สรุปผลการประเมินสมรรถนะ (คะแนนเต็ม 20 คะแนน)
{{ resultEvaluation }}
+ + diff --git a/src/modules/08_KPI/components/Tab/Topic/02_CompetencyCard.vue b/src/modules/08_KPI/components/Tab/Topic/02_CompetencyCard.vue index 3caa9c7..7cfd2a7 100644 --- a/src/modules/08_KPI/components/Tab/Topic/02_CompetencyCard.vue +++ b/src/modules/08_KPI/components/Tab/Topic/02_CompetencyCard.vue @@ -1,21 +1,35 @@