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

@ -142,8 +142,11 @@ function fetchAssigned() {
function onInfo() {
modalCriteria.value = true;
}
const totalCompetency = ref<number>(0);
const resultWork = computed(() => {
const total = totalResults1.value + totalResults2.value + totalResults3.value;
score.value = total;
return total.toFixed(2);
});
@ -162,6 +165,19 @@ function getCriteria() {
});
}
watch(
() => totalCompetency.value,
(newValue, oldValue) => {
if (newValue !== oldValue) {
score.value =
totalResults1.value +
totalResults2.value +
totalResults3.value +
newValue;
}
}
);
watch(
() => store.dataEvaluation.plannedPoint,
(newValue, oldValue) => {
@ -203,7 +219,7 @@ onMounted(() => {
class="bg-white row col-12 text-dark q-pa-md"
>
<div class="text-weight-bold text-body2">
<span class="txt-under text-blue-6">องคประกอบท 1</span>
<span class="txt-under text-blue-6">องคประกอบท 1 </span>
<span class="q-ml-sm"> ผลสมฤทธของงาน</span>
</div>
@ -268,7 +284,10 @@ onMounted(() => {
</q-btn>
</div>
<Competency v-model:dataListCriteria="dataListCriteria" />
<Competency
v-model:dataListCriteria="dataListCriteria"
v-model:total-competency="totalCompetency"
/>
</div>
</q-scroll-area>