updated
This commit is contained in:
parent
5e8c8589cb
commit
11e5e13039
11 changed files with 118 additions and 149 deletions
|
|
@ -10,16 +10,7 @@ import { useQuasar } from "quasar";
|
|||
export const useKpiDataStore = defineStore("KPIDate", () => {
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
dialogConfirm,
|
||||
success,
|
||||
showLoader,
|
||||
hideLoader,
|
||||
messageError,
|
||||
findPosMasterNoOld,
|
||||
findOrgNameOld,
|
||||
date2Thai,
|
||||
} = mixin;
|
||||
const { showLoader, hideLoader, messageError } = mixin;
|
||||
|
||||
const isUpdate = ref<boolean>(false);
|
||||
const tabMainevaluator = ref<string>("1");
|
||||
|
|
@ -32,7 +23,7 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
});
|
||||
const selected = ref([]);
|
||||
const work = ref<boolean>(false);
|
||||
const tabMain = ref<string>("1");
|
||||
const tabMain = ref<string>("");
|
||||
const dataProfile = ref<any>({
|
||||
profileId: null,
|
||||
prefix: "",
|
||||
|
|
@ -138,14 +129,18 @@ export const useKpiDataStore = defineStore("KPIDate", () => {
|
|||
|
||||
function convertResults(val: string) {
|
||||
switch (val) {
|
||||
case "PENDING":
|
||||
return "รอดำเนินการ";
|
||||
case "PASSED":
|
||||
return "ผ่านการประเมิน";
|
||||
case "NOTPASSED":
|
||||
return "ไม่ผ่านการประเมิน";
|
||||
case "EXCELLENT":
|
||||
return "ดีเด่น";
|
||||
case "VERY_GOOD":
|
||||
return "ดีมาก";
|
||||
case "GOOD":
|
||||
return "ดี";
|
||||
case "FAIR":
|
||||
return "พอใช้";
|
||||
case "IMPROVEMENT":
|
||||
return "ต้องปรับปรุง";
|
||||
default:
|
||||
break;
|
||||
return "รอดำเนินการ";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue