ผลสัมฤทธิ์ของงาน
This commit is contained in:
parent
c1e4a42ba3
commit
7ec6ff7be0
3 changed files with 9 additions and 5 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -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'">
|
||||
{{
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue