สิทธิ์แก้ไขข้อมูลทะเบียนประวัติตำแหน่ง/เงินเดือน 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

@ -96,7 +96,7 @@ async function onSearchListPerson(newPage: boolean = false) {
selected.value = [];
showLoader();
await http
.get(config.API.permissionOrgProfile, {
.get(config.API.permissionProfile, {
params: qurey,
})
.then((res) => {
@ -131,7 +131,7 @@ function onSubmitPerson() {
personId: arrayId,
};
await http
.post(config.API.permissionOrg, body)
.post(config.API.permissioProfileOrg, body)
.then(async () => {
await props.fetchData?.(false);
success($q, "เพิ่มราชชื่อสำเร็จ");
@ -170,6 +170,8 @@ function onClose() {
qurey.searchKeyword = "";
rows.value = [];
selected.value = [];
isEdit.value = false;
isCheck.value = false;
}
/**

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) {