no message

This commit is contained in:
STW_TTTY\stwtt 2024-04-24 16:07:40 +07:00
parent 0454dbabad
commit 1a61f342a1
2 changed files with 15 additions and 7 deletions

View file

@ -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="ระดับการประเมินพฤติกรรม"
>
<template v-slot:tip-1>
<q-tooltip>ำกวาระดบทคาดหวงมาก (1)</q-tooltip>

View file

@ -13,7 +13,6 @@ import { useRoute } from "vue-router";
import type { FormCapacityList } from "@/modules/08_KPI/interface/request/index";
const modalEvaluate = ref<boolean>(false);
const point = ref<number>(0);
const store = useKpiDataStore();
const route = useRoute();
@ -249,9 +248,7 @@ onMounted(() => {
</template>
</q-rating>
</div>
<div v-else>
รอ ทำ select
</div>
<div v-else>รอ ทำ select</div>
</div>
<div v-else-if="col.name == 'summary'">
{{ props.row.point !== 0 ? props.row.point * 20 : "-" }}
@ -298,7 +295,6 @@ onMounted(() => {
v-model:data="rows"
v-model:type="type"
:get-data="getData"
/>
</template>