updated
This commit is contained in:
parent
c7cda1c7ba
commit
8b2819d634
6 changed files with 109 additions and 54 deletions
|
|
@ -260,12 +260,11 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
const role = await (dataEvaluation.value.profileId ==
|
||||
dataProfile.value.profileId
|
||||
? "USER"
|
||||
: dataEvaluation.value.evaluatorId == (await dataProfile.value.profileId)
|
||||
: dataEvaluation.value.evaluatorId == dataProfile.value.profileId
|
||||
? "EVALUATOR"
|
||||
: dataEvaluation.value.commanderId == (await dataProfile.value.profileId)
|
||||
: dataEvaluation.value.commanderId == dataProfile.value.profileId
|
||||
? "COMMANDER"
|
||||
: dataEvaluation.value.commanderHighId ==
|
||||
(await dataProfile.value.profileId)
|
||||
: dataEvaluation.value.commanderHighId == dataProfile.value.profileId
|
||||
? "COMMANDERHIGH"
|
||||
: "");
|
||||
// console.log("🚀 ~ checkStep ~ role:", role);
|
||||
|
|
@ -274,41 +273,54 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
switch (dataEvaluation.value.evaluationStatus) {
|
||||
case "NEW":
|
||||
tabOpen.value = 1;
|
||||
tabMain.value = "1";
|
||||
break;
|
||||
case "NEW_EVALUATOR":
|
||||
tabOpen.value = 1;
|
||||
tabMain.value = "1";
|
||||
break;
|
||||
case "NEW_COMMANDER":
|
||||
tabOpen.value = 1;
|
||||
tabMain.value = "1";
|
||||
break;
|
||||
case "NEW_COMMANDER_HIGH":
|
||||
tabOpen.value = 1;
|
||||
tabMain.value = "1";
|
||||
break;
|
||||
case "APPROVE":
|
||||
tabOpen.value = 2;
|
||||
tabMain.value = "2";
|
||||
break;
|
||||
case "EVALUATING":
|
||||
tabOpen.value = 3;
|
||||
tabMain.value = "3";
|
||||
break;
|
||||
case "EVALUATING_EVALUATOR":
|
||||
tabOpen.value = 3;
|
||||
tabMain.value = "3";
|
||||
break;
|
||||
case "SUMMARY":
|
||||
tabOpen.value = 4;
|
||||
tabMain.value = "3";
|
||||
break;
|
||||
case "SUMMARY_COMMANDER":
|
||||
tabOpen.value = 4;
|
||||
tabMain.value = "3";
|
||||
break;
|
||||
case "SUMMARY_COMMANDER_HIGH":
|
||||
tabOpen.value = 4;
|
||||
tabMain.value = "3";
|
||||
break;
|
||||
case "COMPLETE":
|
||||
tabOpen.value = 4;
|
||||
tabMain.value = "4";
|
||||
break;
|
||||
default:
|
||||
tabOpen.value = 1;
|
||||
tabMain.value = "1";
|
||||
break;
|
||||
}
|
||||
// console.log("🚀 ~ tabMain ~ role:", tabMain.value);
|
||||
}
|
||||
|
||||
// SUMMARY GENERAL CASE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue