สิทธิ์แก้ไขข้อมูลทะเบียนประวัติตำแหน่ง/เงินเดือน API

This commit is contained in:
setthawutttty 2025-03-26 11:47:37 +07:00
parent 7d452e9c0d
commit 46f312f0f1
3 changed files with 8 additions and 4 deletions

View file

@ -192,7 +192,7 @@ async function fetchListPerson(newPage: boolean = false) {
qureyBody.page = newPage ? 1 : qureyBody.page;
showLoader();
await http
.post(config.API.permissionOrgProfile, qureyBody)
.post(config.API.permissionProfile, qureyBody)
.then(async (res) => {
const data = await res.data.result;
maxPage.value = Math.ceil(data.total / qureyBody.pageSize); //
@ -216,7 +216,7 @@ function onDeletePerson(id: string) {
dialogRemove($q, async () => {
showLoader();
await http
.delete(config.API.permissionOrg + `/${id}`)
.delete(config.API.permissioProfileOrg + `/${id}`)
.then(async () => {
// maxPage.value 1
if (maxPage.value !== 1) {