updated kpi & check token

This commit is contained in:
Warunee Tamkoo 2024-08-15 14:30:52 +07:00
parent 4d8acb49a3
commit c7d672aeda
8 changed files with 110 additions and 35 deletions

View file

@ -184,7 +184,11 @@ watch(
Number(resultAssigned.value);
store.indicatorScoreVal =
store.indicatorPercentVal * (store.indicatorScore / 100);
store.indicatorPercentVal *
((store.dataProfile.isProbation
? store.indicatorProbationScore
: store.indicatorScore) /
100);
}
}
);
@ -385,7 +389,11 @@ onMounted(() => {
<div class="col-12 text-center row justify-center">
<span
>สรปผลการประเมนผลสมฤทธของงาน (คะแนนเต
{{ store.indicatorScore }}
{{
store.dataProfile.isProbation
? store.indicatorProbationScore
: store.indicatorScore
}}
คะแนน)</span
>
<div class="text-primary q-pl-md">
@ -416,7 +424,9 @@ onMounted(() => {
name: `สรุปผลการประเมินสมรรถนะ (คะแนนเต็ม ${
store.dataEvaluation.posTypeName != 'อำนวยการ' &&
store.dataEvaluation.posTypeName != 'บริหาร'
? store.competencyScore
? store.dataProfile.isProbation
? store.competencyProbationScore
: store.competencyScore
: store.excusiveCompetencyScore
} คะแนน)`,
value: store.competencyScoreVal.toFixed(2),
@ -457,7 +467,11 @@ onMounted(() => {
bordered
:rows="[
{
name: `ผลการประเมินการพัฒนาตนเอง (คะแนนเต็ม ${store.devScore} คะแนน)`,
name: `ผลการประเมินการพัฒนาตนเอง (คะแนนเต็ม ${
store.dataProfile.isProbation
? store.devProbationScore
: store.devScore
} คะแนน)`,
value: store.devScoreVal.toFixed(2),
},
]"
@ -492,10 +506,16 @@ onMounted(() => {
class="row text-body2 text-weight-bold"
>
<div class="col-12 text-center row justify-center">
<span
>สรปผลการประเมนพฤตกรรมการปฏราชการ (สมรรถนะ+การพฒนาตนเอง)
(คะแนนเต {{ store.competencyDevScore }} คะแนน)</span
>
<span>
สรปผลการประเมนพฤตกรรมการปฏราชการ (สมรรถนะ+การพฒนาตนเอง)
(คะแนนเต
{{
store.dataProfile.isProbation
? store.competencyDevProbationScore
: store.competencyDevScore
}}
คะแนน)
</span>
<div class="text-primary q-pl-md">
{{ (store.competencyScoreVal + store.devScoreVal).toFixed(2) }}
</div>

View file

@ -353,14 +353,14 @@ function filterOptionFn(val: string, update: Function) {
</script>
<template>
<q-dialog persistent v-model="modal">
<q-card style="min-width: 90vw">
<q-card style="min-width: 80vw">
<q-form greedy @submit.prevent @validation-success="onSubmit">
<DialogHeader
:tittle="`${id ? 'แก้ไข' : 'เพิ่ม'}การพัฒนาตนเอง`"
:close="close"
/>
<q-separator />
<q-card-section>
<q-card-section style="max-height: 70vh" class="scroll">
<div class="row q-col-gutter-sm">
<div class="col-3">
<q-select
@ -636,6 +636,7 @@ function filterOptionFn(val: string, update: Function) {
</div>
</div>
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white text-teal">

View file

@ -182,7 +182,10 @@ function getData(type: string) {
} else {
store.competencyScoreVal =
weightAvg != 0
? (resultAvg / weightAvg) * store.competencyScore
? (resultAvg / weightAvg) *
(store.dataProfile.isProbation
? store.competencyProbationScore
: store.competencyScore)
: 0;
}
}