updated คะแนนประเมินระบบ kpi

This commit is contained in:
Warunee Tamkoo 2024-05-02 14:44:22 +07:00
parent 1cbaecce8e
commit 1ae9e85af9
3 changed files with 29 additions and 4 deletions

View file

@ -18,6 +18,10 @@ import type {
const dataListCriteria = defineModel<ListCriteria[]>("dataListCriteria", {
required: true,
});
const totalCompetency = defineModel("totalCompetency", {
type: Number,
default: 0,
});
const sortedDataListCriteria = computed(() => {
return dataListCriteria.value.sort((a, b) => a.level - b.level);
@ -159,6 +163,7 @@ function getData(type: string) {
? (resultAvg / weightAvg) * store.dataEvaluation.capacityPoint
: 0;
resultEvaluation.value = sum.toFixed(2);
totalCompetency.value = sum;
}
// end cal summary