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
@@ -137,7 +174,7 @@ function onSubmit() {
round
color="primary"
icon="add"
- @click="ocClickAdd"
+ @click="onClickAddLevels"
>
เพิ่ม
@@ -172,49 +209,62 @@ function onSubmit() {
/>
-
-
-
+
+
+ !!val || 'กรุณากรอกพฤติกรรมที่คาดหวัง/พฤติกรรมย่อย',
]"
- :fonts="{
- arial: 'Arial',
- arial_black: 'Arial Black',
- comic_sans: 'Comic Sans MS',
- courier_new: 'Courier New',
- impact: 'Impact',
- lucida_grande: 'Lucida Grande',
- times_new_roman: 'Times New Roman',
- verdana: 'Verdana',
- }"
- />
-
-
+ hide-bottom-space
+ >
+
+
+
+
+
+
+
+ ลบ
+
+
diff --git a/src/modules/14_KPI/router.ts b/src/modules/14_KPI/router.ts
index 20f02de45..c9401da72 100644
--- a/src/modules/14_KPI/router.ts
+++ b/src/modules/14_KPI/router.ts
@@ -102,4 +102,15 @@ export default [
Role: "evaluateKPI",
},
},
+
+ {
+ path: "/KPI-competency/:id",
+ name: "KPICompetencyByid",
+ component: competencyAddPage,
+ meta: {
+ Auth: true,
+ Key: [1.1],
+ Role: "evaluateKPI",
+ },
+ },
];