import request from '../utils/request'; const api={} //查询接口由表格组件自带 api.save = (data) => { let url='/base/parammgr/add' if(data.id){ url='/base/parammgr/update' } return request({ url: url, method: 'post', params: data }); } api.del = (data) => { return request({ url: '/base/parammgr/delete', method: 'post', params: data }); } api.loadAll = () =>{ return request({ url: '/base/parammgr/loadAll', method: 'get' }); } api.loadGather = () =>{ return request({ url: '/base/parammgr/loadGather', method: 'get' }); } export default api