fix bug
This commit is contained in:
parent
681367b790
commit
63069f50f4
2 changed files with 11 additions and 7 deletions
|
|
@ -5,7 +5,11 @@ import type { DataOptions } from "./interface/index/Main";
|
|||
export const useKpiDataStore = defineStore("KPIDate", () => {
|
||||
const tabMain = ref<string>("1");
|
||||
const dataProfile = ref<any>();
|
||||
const dataEvaluation = ref<any>();
|
||||
const dataEvaluation = ref<any>({
|
||||
plannedPoint: 0,
|
||||
rolePoint: 0,
|
||||
specialPoint: 0,
|
||||
});
|
||||
|
||||
const competencyType = ref<DataOptions[]>([
|
||||
{
|
||||
|
|
|
|||
|
|
@ -269,17 +269,17 @@ function onSubmitScore() {
|
|||
showLoader();
|
||||
http
|
||||
.put(config.API.kpiScoreTotal() + `/${id.value}`, {
|
||||
plannedPoint:plannedPoint.value,
|
||||
rolePoint:rolePoint.value,
|
||||
specialPoint:specialPoint.value,
|
||||
capacityPoint:capacityPoint.value
|
||||
plannedPoint: plannedPoint.value,
|
||||
rolePoint: rolePoint.value,
|
||||
specialPoint: specialPoint.value,
|
||||
capacityPoint: capacityPoint.value,
|
||||
})
|
||||
.then(async (res) => {
|
||||
await fetchEvaluation();
|
||||
await getProfile();
|
||||
await getOrgOp();
|
||||
await success($q, "บันทึกสำเร็จ");
|
||||
modalScore.value = false
|
||||
modalScore.value = false;
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -332,7 +332,7 @@ onMounted(async () => {
|
|||
style="left: 2%; top: 50%; transform: translateY(-50%)"
|
||||
>
|
||||
<q-avatar size="95px">
|
||||
<img :src="formProfile.avartar" />
|
||||
<q-img :src="formProfile.avartar" />
|
||||
</q-avatar>
|
||||
</div>
|
||||
<div class="row col-12">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue