fixing bug api kpi

This commit is contained in:
Warunee Tamkoo 2024-05-17 14:58:27 +07:00
parent 9e0b341a5a
commit 96d0764f76
5 changed files with 9 additions and 6 deletions

View file

@ -56,7 +56,7 @@ const router = useRouter();
async function fetchEvaluation() {
await http
.get(config.API.kpiEvaluation + `/${id.value}`)
.get(config.API.kpiUserEvaluation + `/${id.value}`)
.then(async (res) => {
const data = await res.data.result;

View file

@ -134,7 +134,7 @@ function fetchList() {
};
http
.post(config.API.kpiEvaluation + `/admin`, body)
.post(config.API.kpiUserEvaluation + `/admin`, body)
.then((res) => {
const data = res.data.result;
maxPage.value = Math.ceil(data.total / formQuery.pageSize);
@ -155,6 +155,7 @@ function changRound() {
}
function redirectViewDetail(id: string) {
store.tabMain = "1";
router.push(`KPI-list/${id}`);
}