updated competency
This commit is contained in:
parent
3ed6834933
commit
880f244c1b
6 changed files with 156 additions and 74 deletions
|
|
@ -1,10 +1,46 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref } from "vue";
|
||||
import type { DataOptions } from "./interface/index/Main";
|
||||
|
||||
export const useKpiDataStore = defineStore("KPIDate", () => {
|
||||
const tabMain = ref<string>("1");
|
||||
const dataProfile = ref<any>();
|
||||
const dataEvaluation = ref<any>();
|
||||
const competencyType = ref<DataOptions[]>([
|
||||
{
|
||||
id: "HEAD",
|
||||
name: "สมรรถนะหลัก",
|
||||
},
|
||||
{
|
||||
id: "GROUP",
|
||||
name: "สมรรถนะประจำกลุ่มงาน",
|
||||
},
|
||||
{
|
||||
id: "EXECUTIVE",
|
||||
name: "สมรรถนะประจำผู้บริหารกรุงเทพมหานคร",
|
||||
},
|
||||
{
|
||||
id: "DIRECTOR",
|
||||
name: "สมรรถนะเฉพาะสำหรับตำแหน่ง ผอ.เขต ผช.ผอ.เขต และหัวหน้าฝ่ายในสังกัด สนง.เขต",
|
||||
},
|
||||
{
|
||||
id: "INSPECTOR",
|
||||
name: "สมรรถนะเฉพาะสำหรับตำแหน่งผู้ตรวจราชการ กทม. และผู้ตรวจราชการ",
|
||||
},
|
||||
]);
|
||||
|
||||
return { tabMain, dataProfile, dataEvaluation };
|
||||
function convertCompetencyType(val: string) {
|
||||
const competency = competencyType.value.find(
|
||||
(x: DataOptions) => x.id == "val"
|
||||
);
|
||||
return competency?.name;
|
||||
}
|
||||
|
||||
return {
|
||||
tabMain,
|
||||
dataProfile,
|
||||
dataEvaluation,
|
||||
competencyType,
|
||||
convertCompetencyType,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue