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" - />