fix bug kpi

This commit is contained in:
Warunee Tamkoo 2024-05-16 09:59:34 +07:00
parent 1fa38897cf
commit bb19640c98
5 changed files with 50 additions and 29 deletions

View file

@ -130,10 +130,10 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
}
function checkCompetency() {
const position = dataProfile.value.position;
const posTypeName = dataProfile.value.posTypeName;
const posLevelName = dataProfile.value.posLevelName;
const executiveName = dataProfile.value.posExecutiveName;
const position = dataEvaluation.value.position;
const posTypeName = dataEvaluation.value.posTypeName;
const posLevelName = dataEvaluation.value.posLevelName;
const executiveName = dataEvaluation.value.posExecutiveName;
if (
position == "ผู้ตรวจราชการกรุงเทพมหานคร" ||
@ -189,8 +189,8 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
const defaultCompetencyCoreLevel = ref<number>();
const defaultCompetencyGroupLevel = ref<number | null>(null);
function checkCompetencyDefaultCompetencyLevel() {
const posTypeName = dataProfile.value.posTypeName;
const posLevelName = dataProfile.value.posLevelName;
const posTypeName = dataEvaluation.value.posTypeName;
const posLevelName = dataEvaluation.value.posLevelName;
switch (posTypeName + " " + posLevelName) {
case "บริหาร สูง":