fixing competency

This commit is contained in:
Warunee Tamkoo 2024-07-09 12:46:38 +07:00
parent aa643f2b9c
commit f14567a0b6
3 changed files with 9 additions and 6 deletions

View file

@ -61,9 +61,9 @@ const router = useRouter();
async function fetchEvaluation() {
await http
.get(config.API.kpiEvaluation + `/${id.value}`)
.then(async (res) => {
.then((res) => {
const data = res.data.result;
store.dataEvaluation = await data;
store.dataEvaluation = res.data.result;
formProfile.status = store.convertStatus(data.evaluationStatus);
formProfile.result = store.convertResults(data.evaluationResults);
// store.checkCompetency();

View file

@ -184,11 +184,12 @@ watch(
}
);
function onChangTab() {
async function onChangTab() {
store.formQuery.page = 1;
dataListMain.value = [];
dataListMain.value = await [];
store.selected = await [];
fetchList();
store.selected = [];
}
onMounted(async () => {