diff --git a/src/api/14_KPI/api.KPI.ts b/src/api/14_KPI/api.KPI.ts index 79f02b1de..8eff14fdb 100644 --- a/src/api/14_KPI/api.KPI.ts +++ b/src/api/14_KPI/api.KPI.ts @@ -4,6 +4,7 @@ const kpiPeriod = `${env.API_URI}/kpi/period`; const kpiEvaluation = `${env.API_URI}/kpi/evaluation`; const kpiGroup = `${env.API_URI}/kpi/group`; const kpiPlan = `${env.API_URI}/kpi/plan`; +const kpiCapacity = `${env.API_URI}/kpi/capacity`; export default { KPI, /** รอบการประเมินผล*/ @@ -20,4 +21,7 @@ export default { kpiGroupById: (id: string) => `${kpiGroup}/${id}`, kpiPlan, kpiPlanById: (id: string) => `${kpiPlan}/${id}`, + + /** สมรรถนะ */ + kpiCapacity, }; diff --git a/src/modules/14_KPI/components/competency/01ListCompetency.vue b/src/modules/14_KPI/components/competency/01ListCompetency.vue index 93f415bc2..ef260ec99 100644 --- a/src/modules/14_KPI/components/competency/01ListCompetency.vue +++ b/src/modules/14_KPI/components/competency/01ListCompetency.vue @@ -1,5 +1,5 @@ @@ -143,13 +132,30 @@ onMounted(async () => { style="min-width: 200px" emit-value map-options + @update:model-value="fetchNewList" /> เพิ่มข้อมูล
- + + + { ref="table" :columns="columns" :rows="rows" - :filter="filterKeyword" row-key="id" flat bordered @@ -194,26 +199,19 @@ onMounted(async () => { {{ col.value }} - + แก้ไข + { size="12px" icon="mdi-delete" clickable - @click.stop=" - dialogRemove($q, async () => await deleteData(props.row.id)) - " + @click.stop="deleteData(props.row.id)" v-close-popup > ลบข้อมูล @@ -232,5 +228,18 @@ onMounted(async () => { + diff --git a/src/modules/14_KPI/components/competency/Forms/Main.vue b/src/modules/14_KPI/components/competency/Forms/Main.vue index f77c04c2d..cf0d3a7c7 100644 --- a/src/modules/14_KPI/components/competency/Forms/Main.vue +++ b/src/modules/14_KPI/components/competency/Forms/Main.vue @@ -1,21 +1,27 @@ div