สิทธิ์แก้ไขข้อมูลทะเบียนประวัติตำแหน่ง/เงินเดือน API
This commit is contained in:
parent
7d452e9c0d
commit
46f312f0f1
3 changed files with 8 additions and 4 deletions
|
|
@ -101,7 +101,9 @@ export default {
|
||||||
|
|
||||||
/** กำหนดสิทธิ์จัดการโครงสร้าง */
|
/** กำหนดสิทธิ์จัดการโครงสร้าง */
|
||||||
permissionOrg: `${organization}/permission-org`,
|
permissionOrg: `${organization}/permission-org`,
|
||||||
|
permissioProfileOrg: `${organization}/permission-profile`,
|
||||||
permissionOrgProfile: `${organization}/permission-org/profile`, // คนที่มีสิทธิ์จัดการโครงสร้าง
|
permissionOrgProfile: `${organization}/permission-org/profile`, // คนที่มีสิทธิ์จัดการโครงสร้าง
|
||||||
|
permissionProfile: `${organization}/permission-profile/profile`, // คนที่มีสิทธิ์จัดการโครงสร้าง
|
||||||
|
|
||||||
/** หมอบหมาย*/
|
/** หมอบหมาย*/
|
||||||
commandSysAssign: `${organization}/commandSys/assign`,
|
commandSysAssign: `${organization}/commandSys/assign`,
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ async function onSearchListPerson(newPage: boolean = false) {
|
||||||
selected.value = [];
|
selected.value = [];
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.permissionOrgProfile, {
|
.get(config.API.permissionProfile, {
|
||||||
params: qurey,
|
params: qurey,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
@ -131,7 +131,7 @@ function onSubmitPerson() {
|
||||||
personId: arrayId,
|
personId: arrayId,
|
||||||
};
|
};
|
||||||
await http
|
await http
|
||||||
.post(config.API.permissionOrg, body)
|
.post(config.API.permissioProfileOrg, body)
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await props.fetchData?.(false);
|
await props.fetchData?.(false);
|
||||||
success($q, "เพิ่มราชชื่อสำเร็จ");
|
success($q, "เพิ่มราชชื่อสำเร็จ");
|
||||||
|
|
@ -170,6 +170,8 @@ function onClose() {
|
||||||
qurey.searchKeyword = "";
|
qurey.searchKeyword = "";
|
||||||
rows.value = [];
|
rows.value = [];
|
||||||
selected.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;
|
qureyBody.page = newPage ? 1 : qureyBody.page;
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.post(config.API.permissionOrgProfile, qureyBody)
|
.post(config.API.permissionProfile, qureyBody)
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
const data = await res.data.result;
|
const data = await res.data.result;
|
||||||
maxPage.value = Math.ceil(data.total / qureyBody.pageSize); // คำนวนหาจำนวนหน้า
|
maxPage.value = Math.ceil(data.total / qureyBody.pageSize); // คำนวนหาจำนวนหน้า
|
||||||
|
|
@ -216,7 +216,7 @@ function onDeletePerson(id: string) {
|
||||||
dialogRemove($q, async () => {
|
dialogRemove($q, async () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.delete(config.API.permissionOrg + `/${id}`)
|
.delete(config.API.permissioProfileOrg + `/${id}`)
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
// ถ้า maxPage.value ไม่เท่ากับ 1 ให้ โหลดข้อมูลรายชื่อคนที่มีสิทธิ์จัดการโครงสร้างหน้าปัจจุบัน
|
// ถ้า maxPage.value ไม่เท่ากับ 1 ให้ โหลดข้อมูลรายชื่อคนที่มีสิทธิ์จัดการโครงสร้างหน้าปัจจุบัน
|
||||||
if (maxPage.value !== 1) {
|
if (maxPage.value !== 1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue