Refactoring code module 08_KPI
This commit is contained in:
parent
3636f380fb
commit
67d117dcfc
48 changed files with 989 additions and 1140 deletions
|
|
@ -159,43 +159,7 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
}
|
||||
}
|
||||
|
||||
// async function checkCompetency() {
|
||||
// // const position = await dataEvaluation.value.position;
|
||||
// // const executiveName = await dataEvaluation.value.posExecutiveName;
|
||||
// const posTypeName = await dataEvaluation.value.posTypeName;
|
||||
// const posLevelName = dataEvaluation.value.posLevelName;
|
||||
|
||||
// console.log("posTypeName===>", posTypeName);
|
||||
|
||||
// // if (
|
||||
// // position == "ผู้ตรวจราชการกรุงเทพมหานคร" ||
|
||||
// // position == "ผู้ตรวจราชการ"
|
||||
// // ) {
|
||||
// // competencyType.value = competencyType.value.filter(
|
||||
// // (x: DataOptions) => x.id == "HEAD" || x.id == "INSPECTOR"
|
||||
// // );
|
||||
// // } else if (position == "ผู้อำนวยการเขต") {
|
||||
// // competencyType.value = competencyType.value.filter(
|
||||
// // (x: DataOptions) => x.id == "HEAD" || x.id == "DIRECTOR"
|
||||
// // );
|
||||
// // } else {
|
||||
// if (posTypeName == "อำนวยการ" || posTypeName == "บริหาร") {
|
||||
// competencyType.value = await competencyType.value.filter(
|
||||
// (x: DataOptions) =>
|
||||
// x.id == "HEAD" ||
|
||||
// x.id == "EXECUTIVE" ||
|
||||
// x.id == "INSPECTOR" ||
|
||||
// x.id == "DIRECTOR"
|
||||
// );
|
||||
// } else {
|
||||
// competencyType.value = await competencyType.value.filter(
|
||||
// (x: DataOptions) => x.id == "HEAD" || x.id == "GROUP"
|
||||
// );
|
||||
// }
|
||||
// // }
|
||||
// }
|
||||
|
||||
const defaultCompetencyCoreLevel = ref<number>();
|
||||
const defaultCompetencyCoreLevel = ref<number|null>(null);
|
||||
const defaultCompetencyGroupLevel = ref<number | null>(null);
|
||||
function checkCompetencyDefaultCompetencyLevel() {
|
||||
const posTypeName = dataEvaluation.value.posTypeName;
|
||||
|
|
@ -279,7 +243,6 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
: dataEvaluation.value.commanderHighId == dataProfile.value.profileId
|
||||
? "COMMANDERHIGH"
|
||||
: "");
|
||||
// console.log("🚀 ~ checkStep ~ role:", role);
|
||||
rolePerson.value = role;
|
||||
|
||||
switch (dataEvaluation.value.evaluationStatus) {
|
||||
|
|
@ -336,7 +299,6 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
tabMain.value = "1";
|
||||
break;
|
||||
}
|
||||
// console.log("🚀 ~ tabMain ~ role:", tabMain.value);
|
||||
}
|
||||
|
||||
// SUMMARY GENERAL CASE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue