From 1a61f342a156ca2b2d2e47492f98819c98e4d908 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Wed, 24 Apr 2024 16:07:40 +0700 Subject: [PATCH] no message --- .../Tab/DialogEvaluate/02_Competenct.vue | 16 ++++++++++++++-- .../components/Tab/Topic/02_CompetencyCard.vue | 6 +----- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/modules/08_KPI/components/Tab/DialogEvaluate/02_Competenct.vue b/src/modules/08_KPI/components/Tab/DialogEvaluate/02_Competenct.vue index 88d4f75..fe9350b 100644 --- a/src/modules/08_KPI/components/Tab/DialogEvaluate/02_Competenct.vue +++ b/src/modules/08_KPI/components/Tab/DialogEvaluate/02_Competenct.vue @@ -104,7 +104,20 @@ function onSubmit() { dialogMessageNotify($q, "กรุณาเลือกระดับคะแนนตามเกณฑ์การประเมิน"); } else { dialogConfirm($q, () => { - closeDialog(); + const data = rows.value; + const body = data.map((i: any) => ({ + id: i.id, + point: i.point, + })); + http + .post(config.API.kpiUserCapacity + `/point`, body) + .then((res) => { + closeDialog(); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(() => {}); }); } } @@ -154,7 +167,6 @@ function onSubmit() { color="grey" :color-selected="store.ratingColors" label="ระดับการประเมินพฤติกรรม" - > -
- รอ ทำ select -
+
รอ ทำ select
{{ props.row.point !== 0 ? props.row.point * 20 : "-" }} @@ -298,7 +295,6 @@ onMounted(() => { v-model:data="rows" v-model:type="type" :get-data="getData" - />