|
@@ -1,103 +0,0 @@
|
|
|
-import request from '@/utils/request'
|
|
|
-import constant from '@/constant'
|
|
|
-
|
|
|
-function pageList(formData){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/pageList", formData);
|
|
|
-}
|
|
|
-
|
|
|
-function pageListHR(formData){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/pageListHR", formData);
|
|
|
-}
|
|
|
-
|
|
|
-function create(){
|
|
|
- return request.get(constant.serverUrl + "/job/recruitment/create");
|
|
|
-}
|
|
|
-
|
|
|
-function edit(id){
|
|
|
- return request.get(constant.serverUrl + "/job/recruitment/edit/" + id);
|
|
|
-}
|
|
|
-
|
|
|
-function add(formModel){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/add", formModel,{
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/json"
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-function update(formModel){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/update", formModel,{
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/json"
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-function remove(id){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/delete/" + id);
|
|
|
-}
|
|
|
-
|
|
|
-function down(id){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/down/" + id);
|
|
|
-}
|
|
|
-
|
|
|
-function up(id){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/up/" + id);
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-function batchRemove(idList){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/batchDelete",idList,{
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/json"
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-function batchDown(idList){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/batchDown",idList,{
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/json"
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-function batchUp(idList){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/batchUp",idList,{
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/json"
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-function offShelf(id){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/offShelf/" + id);
|
|
|
-}
|
|
|
-
|
|
|
-function batchOffShelf(idList){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/batchOffShelf",idList,{
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/json"
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-function editChecked(id){
|
|
|
- return request.get(constant.serverUrl + "/job/recruitment/editChecked/" + id);
|
|
|
-}
|
|
|
-
|
|
|
-function checked(formModel){
|
|
|
- return request.post(constant.serverUrl + "/job/recruitment/checked", formModel,{
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/json"
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-function editD(id){
|
|
|
- return request.get(constant.serverUrl + "/job/recruitment/editD/" + id);
|
|
|
-}
|
|
|
-
|
|
|
-export default {
|
|
|
- pageList,pageListHR,create,edit,add,update,remove,batchRemove,offShelf,batchOffShelf,down,batchDown,up,batchUp,editChecked,checked,editD
|
|
|
-}
|