ทะเบียนประวัติลูกจ้าง popup กำหนดตำแหน่ง
This commit is contained in:
parent
1b4465bf36
commit
1a4163e76a
5 changed files with 366 additions and 20 deletions
|
|
@ -908,7 +908,7 @@ onMounted(async () => {
|
|||
const fetchData = async () => {
|
||||
loaderPage(true);
|
||||
await http
|
||||
.get(config.API.organizationEmployeePosition)
|
||||
.get(config.API.organizationEmployee)
|
||||
.then((res) => {
|
||||
let data = res.data.result;
|
||||
rows.value = [];
|
||||
|
|
@ -1311,7 +1311,7 @@ const saveData = async () => {
|
|||
modal.value = false;
|
||||
loaderPage(true);
|
||||
await http
|
||||
.post(config.API.organizationEmployeePosition, {
|
||||
.post(config.API.organizationEmployee, {
|
||||
organizationOrganizationId: organizationOrganizationId.value,
|
||||
organizationShortNameId: organizationGovernmentCode.value,
|
||||
organizationTypeId: organizationTypeId.value,
|
||||
|
|
@ -1363,7 +1363,7 @@ const editData = async () => {
|
|||
modal.value = false;
|
||||
loaderPage(true);
|
||||
await http
|
||||
.put(config.API.organizationEmployeePositionId(id.value), {
|
||||
.put(config.API.organizationEmployeeId(id.value), {
|
||||
organizationOrganizationId: organizationOrganizationId.value,
|
||||
organizationShortNameId: organizationGovernmentCode.value,
|
||||
organizationTypeId: organizationTypeId.value,
|
||||
|
|
@ -1428,7 +1428,7 @@ const clickDelete = (id: string) => {
|
|||
const deleteData = async (id: string) => {
|
||||
loaderPage(true);
|
||||
await http
|
||||
.delete(config.API.organizationEmployeePositionId(id))
|
||||
.delete(config.API.organizationEmployeeId(id))
|
||||
.then((res) => {
|
||||
success($q, "ลบข้อมูลสำเร็จ");
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue