fix bug kpi
This commit is contained in:
parent
1fa38897cf
commit
bb19640c98
5 changed files with 50 additions and 29 deletions
|
|
@ -225,7 +225,7 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="q-gutter-md q-mt-sm">
|
||||
<!-- องค์ประกอบที่ 1 -->
|
||||
<div v-if="store.dataProfile.posExecutiveName != null">
|
||||
<div v-if="store.dataEvaluation.posExecutiveName != null">
|
||||
<Work
|
||||
v-model:data="rows_01"
|
||||
:title="`มิติที่ 1 ภารกิจตามนโยบายและยุทธศาสตร์ของกรุงเทพมหานคร`"
|
||||
|
|
@ -433,7 +433,7 @@ onMounted(() => {
|
|||
:rows="[
|
||||
{
|
||||
name: `สรุปผลการประเมินสมรรถนะ (คะแนนเต็ม ${
|
||||
!store.dataProfile.posExecutiveName
|
||||
!store.dataEvaluation.posExecutiveName
|
||||
? store.competencyScore
|
||||
: store.excusiveCompetencyScore
|
||||
} คะแนน)`,
|
||||
|
|
@ -460,7 +460,7 @@ onMounted(() => {
|
|||
class="q-mt-xs q-mb-md"
|
||||
/>
|
||||
|
||||
<div v-if="!store.dataProfile.posExecutiveName">
|
||||
<div v-if="!store.dataEvaluation.posExecutiveName">
|
||||
<Develop />
|
||||
|
||||
<div v-if="isShowScore">
|
||||
|
|
@ -498,7 +498,7 @@ onMounted(() => {
|
|||
|
||||
<div v-if="isShowScore">
|
||||
<div
|
||||
v-if="store.dataProfile.posExecutiveName == null"
|
||||
v-if="store.dataEvaluation.posExecutiveName == null"
|
||||
class="row text-body2 text-weight-bold"
|
||||
>
|
||||
<div class="col-12 text-center row justify-center">
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ function getData(type: string) {
|
|||
let weightAvg = weight / total;
|
||||
let resultAvg = result / total;
|
||||
|
||||
if (store.dataProfile.posExecutiveName != null) {
|
||||
if (store.dataEvaluation.posExecutiveName != null) {
|
||||
store.competencyScoreVal =
|
||||
weightAvg != 0
|
||||
? (resultAvg / weightAvg) * store.excusiveCompetencyScore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue