แก้ API

This commit is contained in:
STW_TTTY\stwtt 2024-09-02 11:04:42 +07:00
parent c01031c687
commit cfd79ee40b
11 changed files with 18 additions and 17 deletions

View file

@ -102,7 +102,7 @@ const roundOp = ref<DataOption[]>([
function fetchList() {
http
.post(config.API.kpiRoleMainList + `/search`, {
.post(config.API.kpiRoleMainList + `/search-edit`, {
// ?page=${formFilter.page}&pageSize=${formFilter.pageSize}&period=${formFilter.round}&position=${formFilter.position}&keyword=${formFilter.keyword}&year=${formFilter.year}
keyword: formFilter.keyword,
position: formFilter.position,
@ -141,7 +141,7 @@ function onClickDelete(id: number) {
dialogRemove($q, () => {
showLoader();
http
.delete(config.API.kpiRoleMainList + `/${id}`)
.delete(config.API.kpiRoleMainEdit + `/${id}`)
.then(() => {
success($q, "ลบข้อมูลสำเร็จ");
fetchList();