43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
|
|
import {
|
|
WeaTools
|
|
} from 'ecCom';
|
|
import {postFetch} from '../util/request';
|
|
|
|
export const getSearchList = (params) => {
|
|
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);
|
|
}
|
|
|
|
export const getForm = (params) => {
|
|
return WeaTools.callApi('/api/bs/hrmorganization/detach/getForm', 'GET', params);
|
|
}
|
|
|
|
export const doDetachSwitch = (params) => {
|
|
return WeaTools.callApi('/api/bs/hrmorganization/detach/doDetach', 'GET', params);
|
|
}
|
|
|
|
export const deleteTableData = (params) => {
|
|
return postFetch('/api/bs/hrmorganization/detach/deleteByIds', params);
|
|
}
|
|
|
|
|
|
export const add = (params) => {
|
|
return postFetch('/api/bs/hrmorganization/detach/save', params);
|
|
}
|
|
|
|
export const edit = (params) => {
|
|
return postFetch('/api/bs/hrmorganization/detach/update',params);
|
|
}
|
|
|
|
|
|
|
|
|