แก้ kpi

This commit is contained in:
setthawutttty 2025-01-29 14:49:48 +07:00
parent 374e43032a
commit f4d11d6686
2 changed files with 7 additions and 8 deletions

View file

@ -8,7 +8,7 @@ import http from "@/plugins/http";
import { useCounterMixin } from "@/stores/mixin"; import { useCounterMixin } from "@/stores/mixin";
import { useKpiDataStore } from "@/modules/14_KPI/store"; import { useKpiDataStore } from "@/modules/14_KPI/store";
import type { ListCriteria } from "@/modules/14_KPI/interface/request/Index"; import type { ListCriteria } from "@/modules/14_KPI/interface/request/index";
import DialogListCriteria from "@/modules/14_KPI/components/Tab/Dialog/DialogListCriteria.vue"; import DialogListCriteria from "@/modules/14_KPI/components/Tab/Dialog/DialogListCriteria.vue";
import Work from "@/modules/14_KPI/components/Tab/Topic/01_Indicator.vue"; import Work from "@/modules/14_KPI/components/Tab/Topic/01_Indicator.vue";
@ -233,7 +233,7 @@ onMounted(async () => {
<!-- องคประกอบท 1 --> <!-- องคประกอบท 1 -->
<div <div
v-if=" v-if="
store.dataEvaluation.posTypeName == 'อำนวยการ' && store.dataEvaluation.posTypeName == 'อำนวยการ' ||
store.dataEvaluation.posTypeName == 'บริหาร' store.dataEvaluation.posTypeName == 'บริหาร'
" "
> >

View file

@ -514,13 +514,12 @@ onUnmounted(() => {
!checkRoutePermisson !checkRoutePermisson
" "
:disabled=" :disabled="
(store.dataEvaluation.posTypeName != 'อำนวยการ' && ((store.dataEvaluation.posTypeName != 'อำนวยการ' ||
store.dataEvaluation.posTypeName != 'บริหาร' && store.dataEvaluation.posTypeName != 'บริหาร') &&
store.indicatorWeightTotal != 100) || store.indicatorWeightTotal != 100) ||
(store.dataEvaluation.posTypeName == 'อำนวยการ' && ((store.dataEvaluation.posTypeName == 'อำนวยการ' ||
store.dataEvaluation.posTypeName == 'บริหาร' && store.dataEvaluation.posTypeName == 'บริหาร') &&
(store.indicatorWeight1Total != 100 || store.indicatorWeightTotal != 100)
store.indicatorWeight2Total != 20))
" "
unelevated unelevated
round round