legendLibrary.js 2.5 KB

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