diff --git a/src/modules/08_KPI/components/Tab/01_Assessment.vue b/src/modules/08_KPI/components/Tab/01_Assessment.vue
index 684da19..04703a5 100644
--- a/src/modules/08_KPI/components/Tab/01_Assessment.vue
+++ b/src/modules/08_KPI/components/Tab/01_Assessment.vue
@@ -59,11 +59,24 @@ function fetchListRole() {
});
}
-function fetchAssigned() {}
+function fetchAssigned() {
+ const data = [
+ {
+ includingName: "name",
+ target: "เป่า",
+ point: "12",
+ weight: "12",
+ achievement: "12",
+ evaluationResults: "12",
+ },
+ ];
+ rows_03.value = data;
+}
onMounted(() => {
fetchListPlanned();
fetchListRole();
+ fetchAssigned();
});
diff --git a/src/modules/08_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue b/src/modules/08_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue
index cd3195a..9883de6 100644
--- a/src/modules/08_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue
+++ b/src/modules/08_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue
@@ -1,9 +1,29 @@
diff --git a/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue b/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue
index 92b27f3..5372505 100644
--- a/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue
+++ b/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue
@@ -115,10 +115,10 @@ const columns = ref([
]);
function onAdd(edit: boolean = false, id: string = "") {
+ isStatusEdit.value = edit;
+ kpiUserPlannedId.value = id;
if (numpage.value !== 3) {
modal.value = true;
- isStatusEdit.value = edit;
- kpiUserPlannedId.value = id;
} else if (numpage.value == 3) {
modalAssigned.value = true;
}
@@ -131,7 +131,11 @@ function onDelete(id: string) {
const url =
numpage.value === 1
? config.API.kpiAchievement("planned") + `/${id}`
- : config.API.kpiAchievement("role") + `/${id}`;
+ : numpage.value === 2
+ ? config.API.kpiAchievement("role") + `/${id}`
+ : numpage.value === 3
+ ? config.API.kpiAchievement("role") + `/${id}`
+ : "";
await http.delete(url);
props.fetchList?.();
success($q, "ลบข้อมูลสำเร็จ");
@@ -242,7 +246,12 @@ watch(
:isStatusEdit="isStatusEdit"
:kpiUserPlannedId="kpiUserPlannedId"
/>
-
+