fixing bug api kpi
This commit is contained in:
parent
9e0b341a5a
commit
96d0764f76
5 changed files with 9 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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}`);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue