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(() => { - + - +