legendLibrary.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import httputils from '@/api/httputils'
  2. // 图例库-查询
  3. export function queryLegend({ postParams }) {
  4. return httputils.postJson(`/serve/topology-wanda/graphElement/query`, postParams)
  5. }
  6. // 图例库-新增
  7. export function createLegend({ postParams }) {
  8. return httputils.postJson(`/serve/topology-wanda/graphElement/create`, postParams)
  9. }
  10. // 图例库-新增
  11. // export function createLegend({
  12. // postParams
  13. // }) {
  14. // return httputils.postJson(`/serve/topology-wanda/graphElement/create`, postParams)
  15. // }
  16. //图例库-更新
  17. export function updateLegend({ postParams }) {
  18. return httputils.postJson(`/serve/topology-wanda/graphElement/update`, postParams)
  19. }
  20. //图例库-作废
  21. export function deleteLegend({ postParams }) {
  22. return httputils.postJson(`/serve/topology-wanda/graphElement/deleteByFlag`, postParams)
  23. }
  24. //图例库-系统tree查询
  25. export function getLegendTree({ getParams }) {
  26. return httputils.getJson(`/serve/topology-wanda/graphCategory/queryByGroup`, getParams)
  27. }
  28. //图例库-系统tree相关表格查询
  29. export function queryRelation({ data, postParams }) {
  30. return httputils.fetchJson(`/serve/topology-wanda/graphRelation/query`, data, postParams)
  31. }
  32. //图例库-更新关系图
  33. export function updateRelation({ postParams }) {
  34. return httputils.postJson(`/serve/topology-wanda/graphRelation/update`, postParams)
  35. }
  36. //图例库-系统tree相关表格删除
  37. export function deleteRelation({ postParams }) {
  38. return httputils.postJson(`/serve/topology-wanda/graphRelation/delete`, postParams)
  39. }
  40. //图例库-上传图片
  41. export function uploadImg({ postParams }) {
  42. return httputils.postJson(`/serve/topology-wanda/Picture/create`, postParams)
  43. }
  44. //图例库-穿梭框的搜索
  45. export function getTransfer({ getParams }) {
  46. return httputils.getJson(`/serve/topology-wanda/graphElement/search`, getParams)
  47. }
  48. //图例库typeId
  49. export function queryTypeId({ postParams }) {
  50. return httputils.postJson(`/serve/topology-wanda/graphElement/type/query`, postParams)
  51. }
  52. // 搜索图铺位可视化类型信息
  53. export function getVisualization({ getParams }) {
  54. return httputils.getJson(`/serve/topology-wanda/graphElement/type/search`, getParams)
  55. }
  56. // 图例分层展示
  57. export function groupByCategory({ getParams }) {
  58. // return httputils.getJson(`/serve/topology-wanda/graphRelation/groupByCategory`, getParams)
  59. return httputils.getJson(`/serve/topology-wanda/graphElement/groupByInfoSystem`, getParams)
  60. }
  61. // 图例搜索
  62. export function graphElementSearch({ postParams }) {
  63. return httputils.postJson(`/serve/topology-wanda/graphElement/search`, postParams)
  64. }
  65. // 更新图例关系信息
  66. // export function graphElementUpdate({
  67. // postParams
  68. // }) {
  69. // return httputils.postJson(`/serve/topology-wanda/graphRelation/update`, postParams)
  70. // }
  71. // 业下设备分类和位置分类树形结构
  72. export function queryDeviceAndPOsition({
  73. postParams
  74. }) {
  75. return httputils.postJson(`/data/t_system_wzfl/query`, postParams)
  76. }
  77. //图形查询
  78. export function queryPics({ postParams }) {
  79. return httputils.postJson(`/serve/topology-wanda/graph/query`, postParams)
  80. }