ผลสัมฤทธิ์ของงาน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-04-25 15:49:45 +07:00
parent c1e4a42ba3
commit 7ec6ff7be0
3 changed files with 9 additions and 5 deletions

View file

@ -47,6 +47,7 @@ function fetchListPlanned() {
(sum: number, e: any) => sum + e.evaluationResults,
0
);
totalResults1.value = (result * 80) / 100;
})
.catch((err) => {
@ -98,6 +99,7 @@ function fetchAssigned() {
(sum: number, e: any) => sum + e.evaluationResults,
0
);
totalResults3.value = (result * 80) / 100;
})
.catch((err) => {
@ -113,7 +115,7 @@ function onInfo() {
}
const resultWork = computed(() => {
const total = totalResults1.value + totalResults2.value + totalResults3.value;
return parseFloat(((total * 80) / 100).toFixed(2));
return parseFloat(((total * 80) ).toFixed(2));
});
onMounted(() => {

View file

@ -148,16 +148,15 @@ function onSubmit() {
closeDialog();
}
});
console.log(rows.value);
}
</script>
<template>
<q-dialog v-model="modal" persistent>
<q-card style="width: 1200px; max-width: 80vw">
<DialogHeader :tittle="'ประเมิน'" :close="closeDialog" />
<DialogHeader :tittle="'ประเมินผลสัมฤทธิ์ของงาน'" :close="closeDialog" />
<q-separator />
<q-card-section>
<q-card-section style="height: 80vh">
<div class="col-12 q-pa-sm">
<q-table
ref="table"
@ -213,7 +212,7 @@ function onSubmit() {
</q-rating>
</div>
<div v-else-if="col.name === 'achievement'">
{{ props.row.achievement }}
{{ props.row.point ? `ระดับ ${props.row.point}` : "" }}
</div>
<div v-else-if="col.name === 'evaluationResults'">
{{

View file

@ -272,6 +272,9 @@ watch(
</template>
</q-rating>
</div>
<div v-else-if="col.name === 'achievement'">
{{ props.row.point ? `ระดับ ${props.row.point}` : "" }}
</div>
<div v-else-if="col.name === 'evaluationResults'">
{{
parseFloat(