diff --git a/src/modules/08_KPI/components/Evaluator/02_TabOther.vue b/src/modules/08_KPI/components/Evaluator/02_TabOther.vue
index 886443a..b081981 100644
--- a/src/modules/08_KPI/components/Evaluator/02_TabOther.vue
+++ b/src/modules/08_KPI/components/Evaluator/02_TabOther.vue
@@ -176,7 +176,7 @@ function onClickApprove(type: string = "") {
/>
-
+
{
- {
-
+
+
+
+
+
+
+ {{ col.label }}
+
+ {{ col.value ? date2Thai(col.value) : "-" }}
+
+
+
+
+
+
+
+
+
+
+ {{
+ props.row.achievement0
+ }}
+ {{
+ props.row.achievement5
+ }}
+ {{
+ props.row.achievement10
+ }}
+
+
+
+ {{ props.row.summary ? props.row.summary : 0 }}
+
+
+ {{ col.value ? col.value : "-" }}
+
+
+
+
+
+
+
+ รายงานความก้าวหน้า
+
+
+ รายงานปัญหา
+
+
+
+
+
+ แก้ไข
+
+
+ ลบข้อมูล
+
+
+
+
+
+
diff --git a/src/modules/08_KPI/views/form.vue b/src/modules/08_KPI/views/form.vue
index 94b90cf..e0ea245 100644
--- a/src/modules/08_KPI/views/form.vue
+++ b/src/modules/08_KPI/views/form.vue
@@ -130,7 +130,7 @@ function onSubmit() {
? commanderHighId.value.id
: null,
})
- .then(() => {
+ .then((res) => {
success($q, "บันทึกสำเร็จ");
close();
})
@@ -246,11 +246,13 @@ function filterOption(val: any, update: Function, refData: string) {
// getAll();
// }
-function getAll() {
- getProfile();
- fetchEvaluation();
- store.checkStep();
- getOrgOp();
+async function getAll() {
+ await getProfile();
+ await fetchEvaluation();
+
+ await store.checkStep();
+
+ await getOrgOp();
}
function sendToEvaluatore(status: string) {
@@ -263,7 +265,7 @@ function sendToEvaluatore(status: string) {
.put(config.API.kpiSendToStatus(id.value), {
status: status,
})
- .then(() => {
+ .then((res) => {
success($q, "ส่งข้อตกลงให้ผู้ประเมินอนุมัติสำเร็จ");
close();
})
@@ -290,7 +292,7 @@ function requireEdit() {
.put(config.API.kpiReqEdit(id.value), {
status: "EVALUATOR",
})
- .then(() => {
+ .then((res) => {
success($q, "ขอแก้ไขสำเร็จ");
close();
})
@@ -307,9 +309,10 @@ function requireEdit() {
);
}
-onMounted(() => {
+onMounted(async () => {
showLoader();
- getAll();
+ await getAll();
+ console.log(store.dataEvaluation.avartar);
});
@@ -340,11 +343,25 @@ onMounted(() => {
+
+
+
+
+
+
+
+
-
+
{
-
-
+
+
{{
`${store.dataEvaluation.prefix}${store.dataEvaluation.firstName} ${store.dataEvaluation.lastName}`
}}
-
+
+