trunk/pc4mobx/organization/apis/managerDetach.js

63 lines
1.5 KiB
JavaScript
Raw Normal View History

2022-10-21 14:35:06 +08:00
import {
WeaTools
} from 'ecCom'
export const getSearchList = (params) => {
2022-10-26 16:05:39 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/detach/getTable', 'GET', params);
}
export const getHasRight = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/detach/getTableBtn', 'GET', params);
}
export const getAdvanceSearchCondition = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/detach/getSearchCondition', 'GET', params);
}
2022-10-28 17:45:47 +08:00
export const getForm = (params) => {
2022-10-26 16:05:39 +08:00
return WeaTools.callApi('/api/bs/hrmorganization/detach/getForm', 'GET', params);
2022-10-21 14:35:06 +08:00
}
2022-10-28 17:45:47 +08:00
export const doDetachSwitch = (params) => {
return WeaTools.callApi('/api/bs/hrmorganization/detach/doDetach', 'GET', params);
}
2022-10-21 14:35:06 +08:00
export const deleteTableData = (params) => {
2022-10-26 16:05:39 +08:00
return fetch('/api/bs/hrmorganization/detach/deleteByIds', {
2022-10-21 14:35:06 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const add = (params) => {
2022-10-26 16:05:39 +08:00
return fetch('/api/bs/hrmorganization/detach/save', {
2022-10-21 14:35:06 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
export const edit = (params) => {
2022-10-26 16:05:39 +08:00
return fetch('/api/bs/hrmorganization/detach/update', {
2022-10-21 14:35:06 +08:00
method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(params)
})
}
2022-10-26 16:05:39 +08:00