แก้คำ

This commit is contained in:
STW_TTTY\stwtt 2024-04-25 10:01:00 +07:00
parent 841342c343
commit 55bda1ae17

View file

@ -25,6 +25,7 @@ const store = useKpiDataStore();
const expectedLevel = ref<any>();
const weight = ref<number | null>(null);
const mixin = useCounterMixin();
const {
showLoader,
hideLoader,
@ -32,7 +33,7 @@ const {
messageError,
dialogMessageNotify,
success,
} = useCounterMixin();
} = mixin;
const modal = defineModel<boolean>("modal", { required: true });
const idProps = defineModel<string | null>("id", { required: true });
const competencyType = defineModel<string>("competencyType", {
@ -165,7 +166,7 @@ function onSubmit() {
}
function getData() {
showLoader();
showLoader()
http
.get(config.API.KpiCapacity + `?type=${type.value}`)
.then((res) => {
@ -179,7 +180,7 @@ function getData() {
formScore.score5 = data.capacityDetails[4].description;
})
.finally(() => {
hideLoader();
hideLoader()
});
}
@ -224,7 +225,7 @@ watch(
if (idProps.value) {
setTimeout(() => {
getDataById();
}, 100);
}, 1000);
} else {
if (type.value == "HEAD") {
expectedLevel.value = store.defaultCompetencyCoreLevel;
@ -414,8 +415,10 @@ watch(
<div class="col-7 row">
<q-card bordered class="col-12 row no-shadow">
<div class="bg-grey-2 row q-py-sm text-weight-bold col-12">
<div class="col-4 text-center">ระดบคะแนน</div>
<div class="col-8 text-center">ผลสำเรจของงาน</div>
<div class="col-4 text-center">ระดบสมรรถนะ</div>
<div class="col-8 text-center">
พฤตกรรมทคาดหว/พฤตกรรมยอย
</div>
</div>
<div
v-for="(field, index) in Object.keys(fieldLabels)"