สิทธิ์แก้ไขข้อมูลทะเบียนประวัติตำแหน่ง/เงินเดือน API
This commit is contained in:
parent
7d452e9c0d
commit
46f312f0f1
3 changed files with 8 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue