77 lines
2.1 KiB
JavaScript
77 lines
2.1 KiB
JavaScript
|
|
import {
|
|
WeaTools
|
|
} from 'ecCom'
|
|
|
|
export const getSearchList = (params) => {
|
|
//return WeaTools.callApi('/api/bs/hrmorganization/comp/listComp', 'POST', params);
|
|
return fetch('/api/bs/hrmorganization/comp/listComp', {
|
|
method: 'POST',
|
|
mode: 'cors',
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
},
|
|
body: JSON.stringify(params)
|
|
})
|
|
}
|
|
|
|
|
|
// export const deleteTableData = (params) => {
|
|
// return fetch('/api/bs/hrmorganization/level/deleteByIds', {
|
|
// method: 'POST',
|
|
// mode: 'cors',
|
|
// headers: {
|
|
// 'Content-Type': 'application/json'
|
|
// },
|
|
// body: JSON.stringify(params)
|
|
// })
|
|
// }
|
|
|
|
export const getAdvanceSearchCondition = (params) => {
|
|
return WeaTools.callApi('/api/bs/hrmorganization/comp/getSearchCondition', 'GET', params);
|
|
}
|
|
|
|
// export const add = (params) => {
|
|
// return fetch('/api/bs/hrmorganization/level/saveLevel', {
|
|
// method: 'POST',
|
|
// mode: 'cors',
|
|
// headers: {
|
|
// 'Content-Type': 'application/json'
|
|
// },
|
|
// body: JSON.stringify(params)
|
|
// })
|
|
// }
|
|
|
|
// export const edit = (params) => {
|
|
// return fetch('/api/bs/hrmorganization/level/updateLevel', {
|
|
// method: 'POST',
|
|
// mode: 'cors',
|
|
// headers: {
|
|
// 'Content-Type': 'application/json'
|
|
// },
|
|
// body: JSON.stringify(params)
|
|
// })
|
|
// }
|
|
|
|
export const updateForbiddenTag = (params) => {
|
|
return fetch('/api/bs/hrmorganization/comp/updateForbiddenTagById', {
|
|
method: 'POST',
|
|
mode: 'cors',
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
},
|
|
body: JSON.stringify(params)
|
|
})
|
|
}
|
|
|
|
// export const getLevelForm = (params) => {
|
|
// return WeaTools.callApi('/api/bs/hrmorganization/level/getLevelForm', 'GET', params);
|
|
// }
|
|
|
|
// export const getTabInfo = (params) => {
|
|
// return WeaTools.callApi('/api/bs/hrmorganization/level/getTabInfo', 'GET', params);
|
|
// }
|
|
|
|
export const getHasRight = (params) => {
|
|
return WeaTools.callApi('/api/bs/hrmorganization/comp/getHasRight', 'GET', params);
|
|
} |