ปรับ KPI ส่วนของระบบบริการเจ้าของข้อมูล
This commit is contained in:
parent
6147e3eee0
commit
87952fd5b9
6 changed files with 478 additions and 19 deletions
|
|
@ -230,17 +230,19 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
// ROLE & TAB
|
||||
const rolePerson = ref<string>("USER"); //"USER" | "EVALUATOR" | "COMMANDER", "COMMANDERHIGH"
|
||||
const tabOpen = ref<number>(1);
|
||||
function checkStep() {
|
||||
const role =
|
||||
dataEvaluation.value.profileId == dataProfile.value.profileId
|
||||
async function checkStep() {
|
||||
const role =
|
||||
|
||||
dataEvaluation.value.profileId == await dataProfile.value.profileId
|
||||
? "USER"
|
||||
: dataEvaluation.value.evaluatorId == dataProfile.value.profileId
|
||||
: dataEvaluation.value.evaluatorId == await dataProfile.value.profileId
|
||||
? "EVALUATOR"
|
||||
: dataEvaluation.value.commanderId == dataProfile.value.profileId
|
||||
: dataEvaluation.value.commanderId == await dataProfile.value.profileId
|
||||
? "COMMANDER"
|
||||
: dataEvaluation.value.commanderHighId == dataProfile.value.profileId
|
||||
: dataEvaluation.value.commanderHighId == await dataProfile.value.profileId
|
||||
? "COMMANDERHIGH"
|
||||
: "";
|
||||
console.log("🚀 ~ checkStep ~ role:", role)
|
||||
rolePerson.value = role;
|
||||
|
||||
switch (dataEvaluation.value.evaluationStatus) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue