trunk/pc4mobx/organization/apis/staffscheme.js

64 lines
1.7 KiB
JavaScript
Raw Normal View History

2022-05-24 09:48:57 +08:00
import {
WeaTools
} from 'ecCom'
export const getSearchList = (params) => {
2022-05-26 13:55:26 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/staffplan/getTable', 'GET', params);
2022-05-24 09:48:57 +08:00
}
export const deleteTableData = (params) => {
2022-05-26 13:55:26 +08:00
return fetch('/api/bs/hrmorganization/staffplan/deleteByIds', {
2022-05-24 09:48:57 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const getAdvanceSearchCondition = (params) => {
2022-05-26 13:55:26 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/staffplan/getSearchCondition', 'GET', params);
2022-05-24 09:48:57 +08:00
}
export const add = (params) => {
2022-05-26 13:55:26 +08:00
return fetch('/api/bs/hrmorganization/staffplan/saveStaffPlan', {
2022-05-24 09:48:57 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const edit = (params) => {
2022-05-26 13:55:26 +08:00
return fetch('/api/bs/hrmorganization/staffplan/updateStaffPlan', {
2022-05-24 09:48:57 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const updateForbiddenTag = (params) => {
2022-05-26 13:55:26 +08:00
return fetch('/api/bs/hrmorganization/staffplan/updateForbiddenTagById', {
2022-05-24 09:48:57 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const getSchemeForm = (params) => {
2022-05-26 13:55:26 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/staffplan/getForm', 'GET', params);
2022-05-24 09:48:57 +08:00
}
export const getHasRight = (params) => {
2022-05-26 13:55:26 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/staffplan/getHasRight', 'GET', params);
2022-05-24 09:48:57 +08:00
}