89 lines
2.3 KiB
JavaScript
89 lines
2.3 KiB
JavaScript
|
|
|
||
|
|
import {
|
||
|
|
WeaTools
|
||
|
|
} from 'ecCom'
|
||
|
|
|
||
|
|
export const getSearchList = (params) => {
|
||
|
|
return fetch('/api/bs/hrmorganization/dept/listPage', {
|
||
|
|
method: 'POST',
|
||
|
|
mode: 'cors',
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/json'
|
||
|
|
},
|
||
|
|
body: JSON.stringify(params)
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export const deleteTableData = (params) => {
|
||
|
|
return fetch('/api/bs/hrmorganization/dept/deleteByIds', {
|
||
|
|
method: 'POST',
|
||
|
|
mode: 'cors',
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/json'
|
||
|
|
},
|
||
|
|
body: JSON.stringify(params)
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export const getAdvanceSearchCondition = (params) => {
|
||
|
|
return WeaTools.callApi('/api/bs/hrmorganization/dept/getSearchCondition', 'GET', params);
|
||
|
|
}
|
||
|
|
|
||
|
|
export const getHrmListByJobId = (params) => {
|
||
|
|
return WeaTools.callApi('/api/bs/hrmorganization/job/getHrmListByJobId', 'GET', params);
|
||
|
|
}
|
||
|
|
|
||
|
|
export const getCopyForm = (params) => {
|
||
|
|
return WeaTools.callApi('/api/bs/hrmorganization/job/getCopyForm', 'GET', params);
|
||
|
|
}
|
||
|
|
|
||
|
|
export const add = (params) => {
|
||
|
|
return fetch('/api/bs/hrmorganization/dept/saveBaseForm', {
|
||
|
|
method: 'POST',
|
||
|
|
mode: 'cors',
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/json'
|
||
|
|
},
|
||
|
|
body: JSON.stringify(params)
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export const copy = (params) => {
|
||
|
|
return fetch('/api/bs/hrmorganization/job/copyJobItem', {
|
||
|
|
method: 'POST',
|
||
|
|
mode: 'cors',
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/json'
|
||
|
|
},
|
||
|
|
body: JSON.stringify(params)
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export const editResource = (params) => {
|
||
|
|
return WeaTools.callApi('/api/bs/hrmorganization/dept/updateForm', 'POST', params);
|
||
|
|
}
|
||
|
|
|
||
|
|
export const updateForbiddenTag = (params) => {
|
||
|
|
return fetch('/api/bs/hrmorganization/dept/updateForbiddenTagById', {
|
||
|
|
method: 'POST',
|
||
|
|
mode: 'cors',
|
||
|
|
headers: {
|
||
|
|
'Content-Type': 'application/json'
|
||
|
|
},
|
||
|
|
body: JSON.stringify(params)
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export const getDeptForm = (params) => {
|
||
|
|
return WeaTools.callApi('/api/bs/hrmorganization/dept/getSaveForm', 'GET', params);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export const getDeptExtendForm = (params) => {
|
||
|
|
return WeaTools.callApi('/api/bs/hrmorganization/dept/getDeptBaseForm', 'GET', params);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export const getHasRight = (params) => {
|
||
|
|
return WeaTools.callApi('/api/bs/hrmorganization/dept/getHasRight', 'GET', params);
|
||
|
|
}
|