trunk/pc4mobx/organization/apis/job.js

103 lines
2.7 KiB
JavaScript
Raw Normal View History

2022-05-26 17:28:18 +08:00
import {
WeaTools
} from 'ecCom'
export const getSearchList = (params) => {
2022-06-01 16:22:56 +08:00
return fetch('/api/bs/hrmorganization/job/listPage', {
2022-05-26 17:28:18 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
2022-06-01 16:22:56 +08:00
export const deleteTableData = (params) => {
return fetch('/api/bs/hrmorganization/job/deleteByIds', {
2022-05-26 17:28:18 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
2022-06-01 16:22:56 +08:00
},
2022-05-26 17:28:18 +08:00
body: JSON.stringify(params)
})
}
2022-06-01 16:22:56 +08:00
export const getAdvanceSearchCondition = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/job/getSearchCondition', 'GET', params);
}
export const getHrmListByJobId = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/job/getHrmListByJobId', 'GET', params);
}
2022-05-26 17:28:18 +08:00
2022-06-01 16:22:56 +08:00
export const getCopyForm = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/job/getCopyForm', 'GET', params);
}
export const add = (params) => {
return fetch('/api/bs/hrmorganization/job/saveBaseForm', {
2022-05-26 17:28:18 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
2022-06-01 16:22:56 +08:00
export const copy = (params) => {
return fetch('/api/bs/hrmorganization/job/copyJobItem', {
2022-05-26 17:28:18 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const editResource = (params) => {
2022-06-01 16:22:56 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/job/updateForm', 'POST', params);
2022-05-26 17:28:18 +08:00
}
export const updateForbiddenTag = (params) => {
2022-06-01 16:22:56 +08:00
return fetch('/api/bs/hrmorganization/job/updateForbiddenTagById', {
2022-05-26 17:28:18 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
2022-06-01 16:22:56 +08:00
export const getJobForm = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/job/getSaveForm', 'GET', params);
2022-05-26 17:28:18 +08:00
}
2022-06-01 16:22:56 +08:00
export const getJobExtendForm = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/job/getJobBaseForm', 'GET', params);
2022-05-26 17:28:18 +08:00
}
export const getHasRight = (params) => {
2022-06-01 16:22:56 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/job/getHasRight', 'GET', params);
2022-06-27 18:48:28 +08:00
}
export const getMergeForm = (params = {}) => {
return WeaTools.callApi('/api/bs/hrmorganization/job/getMergeForm', 'GET', params);
}
export const merge = (params) => {
return fetch('/api/bs/hrmorganization/job/mergeJob', {
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
2022-05-26 17:28:18 +08:00
}