แก้คะแนนรวมระบบ KPI

This commit is contained in:
Warunee Tamkoo 2024-04-29 17:56:09 +07:00
parent bebdfbfce5
commit e98a458edc
3 changed files with 33 additions and 11 deletions

View file

@ -153,7 +153,10 @@ function getData(type: string) {
if (total > 0) {
let weightAvg = weight / total;
let resultAvg = result / total;
let sum = weightAvg != 0 ? (resultAvg / weightAvg) * 20 : 0;
let sum =
weightAvg != 0
? (resultAvg / weightAvg) * store.dataEvaluation.capacityPoint
: 0;
resultEvaluation.value = sum.toFixed(2);
}
// end cal summary
@ -344,7 +347,10 @@ onMounted(() => {
/>
<div class="row text-body2 text-weight-bold justify-center">
<span>สรปผลการประเมนสมรรถนะ (คะแนนเต 20 คะแนน)</span>
<span
>สรปผลการประเมนสมรรถนะ (คะแนนเต
{{ store.dataEvaluation.capacityPoint }} คะแนน)</span
>
<div class="text-primary q-pl-md">{{ resultEvaluation }}</div>
</div>
</template>