33 lines
969 B
JavaScript
33 lines
969 B
JavaScript
|
|
import {
|
|
WeaTools
|
|
} from 'ecCom';
|
|
import {postFetch} from '../util/request';
|
|
|
|
export const getSearchList = (params) => {
|
|
return WeaTools.callApi('/api/bs/hrmorganization/staff/getTable', 'GET', params);
|
|
}
|
|
|
|
export const deleteTableData = (params) => {
|
|
return postFetch('/api/bs/hrmorganization/staff/deleteByIds', params);
|
|
}
|
|
|
|
export const getAdvanceSearchCondition = (params) => {
|
|
return WeaTools.callApi('/api/bs/hrmorganization/staff/getSearchCondition', 'GET', params);
|
|
}
|
|
|
|
export const add = (params) => {
|
|
return postFetch('/api/bs/hrmorganization/staff/saveStaff', params);
|
|
}
|
|
|
|
export const edit = (params) => {
|
|
return postFetch('/api/bs/hrmorganization/staff/updateStaff', params);
|
|
}
|
|
|
|
export const getForm = (params) => {
|
|
return WeaTools.callApi('/api/bs/hrmorganization/staff/getForm', 'GET', params);
|
|
}
|
|
|
|
export const getHasRight = (params) => {
|
|
return WeaTools.callApi('/api/bs/hrmorganization/staff/getHasRight', 'GET', params);
|
|
} |