import { WeaTools } from 'ecCom' 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 fetch('/api/bs/hrmorganization/detach/deleteByIds', { method: 'POST', mode: 'cors', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(params) }) } export const add = (params) => { return fetch('/api/bs/hrmorganization/detach/save', { method: 'POST', mode: 'cors', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(params) }) } export const edit = (params) => { return fetch('/api/bs/hrmorganization/detach/update', { method: 'POST', mode: 'cors', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(params) }) }