飞天云平台-国产化
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.

49 lines
926 B

3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. // 地图列表
  4. export function FetchMapTree(params) {
  5. return request({
  6. url: 'api/fengmap/getMapTree' + '?' + qs.stringify(params, { indices: false }),
  7. method: 'get'
  8. })
  9. }
  10. export function add(data) {
  11. return request({
  12. url: 'api/fengmap/editMap',
  13. method: 'post',
  14. data
  15. })
  16. }
  17. export function edit(data) {
  18. return request({
  19. url: 'api/fengmap/editMap',
  20. method: 'post',
  21. data
  22. })
  23. }
  24. export function del(ids) {
  25. return request({
  26. url: 'api/fengmap/deleteMaps',
  27. method: 'post',
  28. data: ids
  29. })
  30. }
  31. // 根据id查询地图详情
  32. export function FetchMapDetails(params) {
  33. return request({
  34. url: 'api/fengmap/getMapDetails' + '?' + qs.stringify(params, { indices: false }),
  35. method: 'get'
  36. })
  37. }
  38. export default {
  39. FetchMapTree,
  40. add,
  41. edit,
  42. del,
  43. FetchMapDetails
  44. }