แก้ API
This commit is contained in:
parent
c01031c687
commit
cfd79ee40b
11 changed files with 18 additions and 17 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue