legendLibrary.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. postParams
  72. }) {
  73. return httputils.postJson(`/serve/topology-wanda/graphElement/type/search`, postParams)
  74. }