diff --git a/src/modules/14_KPI/components/competency/01ListCompetency.vue b/src/modules/14_KPI/components/competency/01ListCompetency.vue index 15a4da022..93f415bc2 100644 --- a/src/modules/14_KPI/components/competency/01ListCompetency.vue +++ b/src/modules/14_KPI/components/competency/01ListCompetency.vue @@ -18,23 +18,23 @@ const rows = ref(); const competencyTypeOp = ref([ { - id: "ID1", + id: "HEAD", name: "สมรรถนะหลัก", }, { - id: "ID2", + id: "GROUP", name: "สมรรถนะประจำกลุ่มงาน", }, { - id: "ID3", + id: "EXECUTIVE", name: "สมรรถนะประจำผู้บริหารกรุงเทพมหานคร", }, { - id: "ID4", + id: "DIRECTOR", name: "สมรรถนะเฉพาะสำหรับตำแหน่ง ผอ.เขต ผช.ผอ.เขต และหัวหน้าฝ่ายในสังกัด สนง.เขต", }, { - id: "ID5", + id: "INSPECTOR", name: "สมรรถนะเฉพาะสำหรับตำแหน่งผู้ตรวจราชการ กทม. และผู้ตรวจราชการ", }, ]); @@ -64,11 +64,11 @@ const visibleColumns = ref(["competency"]); async function getData() { const data = [ { - id: "ID1", + id: "1", competency: "รายการสมรรถะ 1", }, { - id: "ID2", + id: "2", competency: "รายการสมรรถะ 2", }, ]; diff --git a/src/modules/14_KPI/components/competency/AddPage.vue b/src/modules/14_KPI/components/competency/AddPage.vue index dd408e6f9..22ae8abe1 100644 --- a/src/modules/14_KPI/components/competency/AddPage.vue +++ b/src/modules/14_KPI/components/competency/AddPage.vue @@ -2,11 +2,12 @@ import { ref, reactive } from "vue"; import { useRouter } from "vue-router"; -import FormMain from "@/modules/14_KPI/components/competency/Forms/01_FormMain.vue"; -import FormGroup from "@/modules/14_KPI/components/competency/Forms/02_FormGroup.vue"; -import FormExecutive from "@/modules/14_KPI/components/competency/Forms/03_FormExecutive.vue"; -import FormExecutivePosition from "@/modules/14_KPI/components/competency/Forms/04_FormExecutivePosition.vue"; -import FormExecutiveLevel from "@/modules/14_KPI/components/competency/Forms/05_FormExecutiveLevel.vue"; +import Main from "@/modules/14_KPI/components/competency/Forms/Main.vue"; +// import FormMain from "@/modules/14_KPI/components/competency/Forms/01_FormMain.vue"; +// import FormGroup from "@/modules/14_KPI/components/competency/Forms/02_FormGroup.vue"; +// import FormExecutive from "@/modules/14_KPI/components/competency/Forms/03_FormExecutive.vue"; +// import FormExecutivePosition from "@/modules/14_KPI/components/competency/Forms/04_FormExecutivePosition.vue"; +// import FormExecutiveLevel from "@/modules/14_KPI/components/competency/Forms/05_FormExecutiveLevel.vue"; import { useKPIDataStore } from "@/modules/14_KPI/store/KPIStore"; import type { DataOption } from "@/modules/14_KPI/interface/index/Main"; @@ -29,23 +30,23 @@ const formData = reactive({ const competencyTypeOp = ref([ { - id: "ID1", + id: "HEAD", name: "สมรรถนะหลัก", }, { - id: "ID2", + id: "GROUP", name: "สมรรถนะประจำกลุ่มงาน", }, { - id: "ID3", + id: "EXECUTIVE", name: "สมรรถนะประจำผู้บริหารกรุงเทพมหานคร", }, { - id: "ID4", + id: "DIRECTOR", name: "สมรรถนะเฉพาะสำหรับตำแหน่ง ผอ.เขต ผช.ผอ.เขต และหัวหน้าฝ่ายในสังกัด สนง.เขต", }, { - id: "ID5", + id: "INSPECTOR", name: "สมรรถนะเฉพาะสำหรับตำแหน่งผู้ตรวจราชการ กทม. และผู้ตรวจราชการ", }, ]); @@ -108,134 +109,13 @@ function onSubmit() { /> - +
+ - - + --> - - diff --git a/src/modules/14_KPI/components/competency/Forms/Main.vue b/src/modules/14_KPI/components/competency/Forms/Main.vue new file mode 100644 index 000000000..f77c04c2d --- /dev/null +++ b/src/modules/14_KPI/components/competency/Forms/Main.vue @@ -0,0 +1,240 @@ +div + + + + + diff --git a/src/modules/14_KPI/store/KPIStore.ts b/src/modules/14_KPI/store/KPIStore.ts index 58894b277..5cc082e07 100644 --- a/src/modules/14_KPI/store/KPIStore.ts +++ b/src/modules/14_KPI/store/KPIStore.ts @@ -3,7 +3,7 @@ import { ref } from "vue"; // store export const useKPIDataStore = defineStore("KPIDataStore", () => { - const competencyType = ref("ID1"); + const competencyType = ref("HEAD"); return { competencyType }; });