From e98a458edc332a6f40a8006d4fdd0e799b6b4ad6 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 29 Apr 2024 17:56:09 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=84=E0=B8=B0?= =?UTF-8?q?=E0=B9=81=E0=B8=99=E0=B8=99=E0=B8=A3=E0=B8=A7=E0=B8=A1=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=20KPI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../08_KPI/components/Tab/01_Assessment.vue | 30 ++++++++++++++----- src/modules/08_KPI/components/Tab/TabMain.vue | 4 ++- .../components/Tab/Topic/02_Competency.vue | 10 +++++-- 3 files changed, 33 insertions(+), 11 deletions(-) diff --git a/src/modules/08_KPI/components/Tab/01_Assessment.vue b/src/modules/08_KPI/components/Tab/01_Assessment.vue index cb05dd0..6bfa71f 100644 --- a/src/modules/08_KPI/components/Tab/01_Assessment.vue +++ b/src/modules/08_KPI/components/Tab/01_Assessment.vue @@ -14,9 +14,9 @@ import Competency from "@/modules/08_KPI/components/Tab/Topic/02_Competency.vue" import { useCounterMixin } from "@/stores/mixin"; import { useKpiDataStore } from "@/modules/08_KPI/store"; - import type { ListCriteria } from "@/modules/08_KPI/interface/request/index"; +const score = defineModel("score", { type: Number, default: 0 }); const dataListCriteria = ref([]); const modalCriteria = ref(false); @@ -58,7 +58,8 @@ function fetchListPlanned() { 0 ); - totalResults1.value = (result * 60) / weight; + totalResults1.value = + (result * store.dataEvaluation.plannedPoint) / weight; } }) .catch((err) => { @@ -91,7 +92,8 @@ function fetchListRole() { 0 ); - totalResults2.value = (result * 60) / weight; + totalResults2.value = + (result * store.dataEvaluation.rolePoint) / weight; } }) .catch((err) => { @@ -125,7 +127,8 @@ function fetchAssigned() { 0 ); - totalResults3.value = (result * 20) / weight; + totalResults3.value = + (result * store.dataEvaluation.specialPoint) / weight; } }) .catch((err) => { @@ -160,7 +163,7 @@ function getCriteria() { } onMounted(() => { - getCriteria() + getCriteria(); fetchListPlanned(); fetchListRole(); fetchAssigned(); @@ -207,7 +210,15 @@ onMounted(() => { -->
- สรุปผลการประเมินผลสัมฤทธิ์ของงาน (คะแนนเต็ม 80 คะแนน) + สรุปผลการประเมินผลสัมฤทธิ์ของงาน (คะแนนเต็ม + {{ + store.dataEvaluation.plannedPoint + + store.dataEvaluation.rolePoint + + store.dataEvaluation.specialPoint + }} + คะแนน)
{{ resultWork }}
@@ -230,11 +241,14 @@ onMounted(() => { - + - +