no message
This commit is contained in:
parent
0454dbabad
commit
1a61f342a1
2 changed files with 15 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue