แก้คะแนนรวมระบบ KPI
This commit is contained in:
parent
bebdfbfce5
commit
e98a458edc
3 changed files with 33 additions and 11 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue