You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.9 KiB

  1. import axios from '@/utils/request'
  2. import config from '@/api/mdp_pub/mdp_config'
  3. let base=config.getSysContext()
  4. /**
  5. * sys_dept_location
  6. *1 默认只开放普通查询所有查询只要上传 分页参数 {currentPage:当前页码从1开始,pageSize:每页记录数,total:总记录数如果是0后台会自动计算总记录数非0不会自动计算}后台都会自动按分页查询 其它 api用到再打开没用到的api请注释掉
  7. *2 查询新增修改的参数格式 params={deptid:'部门地址编号 主键',longitude:'经度',latitude:'纬度',address:'地址',province:'省',city:'市',district:'区'}
  8. **/
  9. //普通查询 条件之间and关系
  10. export const listDeptLocation = params => { return axios.get(`${base}/mdp/sys/deptLocation/list`, { params: params }); };
  11. //模糊查询sys_dept_location 条件之间or关系
  12. //export const listDeptLocationKey = params => { return axios.get(`${base}/mdp/sys/deptLocation/listKey`, { params: params }); };
  13. //删除一条sys_dept_location params={deptid:'部门地址编号 主键'}
  14. export const delDeptLocation = params => { return axios.post(`${base}/mdp/sys/deptLocation/del`,params); };
  15. //批量删除sys_dept_location params=[{deptid:'部门地址编号 主键'}]
  16. export const batchDelDeptLocation = params => { return axios.post(`${base}/mdp/sys/deptLocation/batchDel`, params); };
  17. //修改一条sys_dept_location记录
  18. export const editDeptLocation = params => { return axios.post(`${base}/mdp/sys/deptLocation/edit`, params); };
  19. //新增一条sys_dept_location
  20. export const addDeptLocation = params => { return axios.post(`${base}/mdp/sys/deptLocation/add`, params); };
  21. //addAndEditDeptLocation
  22. export const addAndEditDeptLocation = params => { return axios.post(`${base}/mdp/sys/deptLocation/addAndEditDeptLocation`, params); };
  23. //getDeptLocation
  24. export const getDeptLocation = params => { return axios.post(`${base}/mdp/sys/deptLocation/getDeptLocation`, params); };