|
@@ -1,14 +1,10 @@
|
|
-import httputils from '@/api/httputils'
|
|
|
|
|
|
+import httputils from "@/api/httputils"
|
|
// 图例库-查询
|
|
// 图例库-查询
|
|
-export function queryLegend({
|
|
|
|
- postParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function queryLegend({ postParams }) {
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/query`, postParams)
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/query`, postParams)
|
|
}
|
|
}
|
|
// 图例库-新增
|
|
// 图例库-新增
|
|
-export function createLegend({
|
|
|
|
- postParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function createLegend({ postParams }) {
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/create`, postParams)
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/create`, postParams)
|
|
}
|
|
}
|
|
// 图例库-新增
|
|
// 图例库-新增
|
|
@@ -18,86 +14,62 @@ export function createLegend({
|
|
// return httputils.postJson(`/serve/topology-wanda/graphElement/create`, postParams)
|
|
// return httputils.postJson(`/serve/topology-wanda/graphElement/create`, postParams)
|
|
// }
|
|
// }
|
|
//图例库-更新
|
|
//图例库-更新
|
|
-export function updateLegend({
|
|
|
|
- postParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function updateLegend({ postParams }) {
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/update`, postParams)
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/update`, postParams)
|
|
}
|
|
}
|
|
//图例库-作废
|
|
//图例库-作废
|
|
-export function deleteLegend({
|
|
|
|
- postParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function deleteLegend({ postParams }) {
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/deleteByFlag`, postParams)
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/deleteByFlag`, postParams)
|
|
}
|
|
}
|
|
//图例库-系统tree查询
|
|
//图例库-系统tree查询
|
|
-export function getLegendTree({
|
|
|
|
- getParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function getLegendTree({ getParams }) {
|
|
return httputils.getJson(`/serve/topology-wanda/graphCategory/queryByGroup`, getParams)
|
|
return httputils.getJson(`/serve/topology-wanda/graphCategory/queryByGroup`, getParams)
|
|
}
|
|
}
|
|
|
|
|
|
//图例库-系统tree相关表格查询
|
|
//图例库-系统tree相关表格查询
|
|
-export function queryRelation({
|
|
|
|
- data,
|
|
|
|
- postParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function queryRelation({ data, postParams }) {
|
|
return httputils.fetchJson(`/serve/topology-wanda/graphRelation/query`, data, postParams)
|
|
return httputils.fetchJson(`/serve/topology-wanda/graphRelation/query`, data, postParams)
|
|
}
|
|
}
|
|
//图例库-更新关系图
|
|
//图例库-更新关系图
|
|
-export function updateRelation({
|
|
|
|
- postParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function updateRelation({ postParams }) {
|
|
return httputils.postJson(`/serve/topology-wanda/graphRelation/update`, postParams)
|
|
return httputils.postJson(`/serve/topology-wanda/graphRelation/update`, postParams)
|
|
}
|
|
}
|
|
//图例库-系统tree相关表格删除
|
|
//图例库-系统tree相关表格删除
|
|
-export function deleteRelation({
|
|
|
|
- postParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function deleteRelation({ postParams }) {
|
|
return httputils.postJson(`/serve/topology-wanda/graphRelation/delete`, postParams)
|
|
return httputils.postJson(`/serve/topology-wanda/graphRelation/delete`, postParams)
|
|
}
|
|
}
|
|
//图例库-上传图片
|
|
//图例库-上传图片
|
|
-export function uploadImg({
|
|
|
|
- postParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function uploadImg({ postParams }) {
|
|
return httputils.postJson(`/serve/topology-wanda/Picture/create`, postParams)
|
|
return httputils.postJson(`/serve/topology-wanda/Picture/create`, postParams)
|
|
}
|
|
}
|
|
//图例库-穿梭框的搜索
|
|
//图例库-穿梭框的搜索
|
|
-export function getTransfer({
|
|
|
|
- getParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function getTransfer({ getParams }) {
|
|
return httputils.getJson(`/serve/topology-wanda/graphElement/search`, getParams)
|
|
return httputils.getJson(`/serve/topology-wanda/graphElement/search`, getParams)
|
|
}
|
|
}
|
|
//图例库typeId
|
|
//图例库typeId
|
|
-export function queryTypeId({
|
|
|
|
- postParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function queryTypeId({ postParams }) {
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/type/query`, postParams)
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/type/query`, postParams)
|
|
}
|
|
}
|
|
// 搜索图铺位可视化类型信息
|
|
// 搜索图铺位可视化类型信息
|
|
-export function getVisualization({
|
|
|
|
- getParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function getVisualization({ getParams }) {
|
|
return httputils.getJson(`/serve/topology-wanda/graphElement/type/search`, getParams)
|
|
return httputils.getJson(`/serve/topology-wanda/graphElement/type/search`, getParams)
|
|
-
|
|
|
|
}
|
|
}
|
|
// 图例分层展示
|
|
// 图例分层展示
|
|
-export function groupByCategory({
|
|
|
|
- getParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function groupByCategory({ getParams }) {
|
|
// return httputils.getJson(`/serve/topology-wanda/graphRelation/groupByCategory`, getParams)
|
|
// return httputils.getJson(`/serve/topology-wanda/graphRelation/groupByCategory`, getParams)
|
|
return httputils.getJson(`/serve/topology-wanda/graphElement/groupByInfoSystem`, getParams)
|
|
return httputils.getJson(`/serve/topology-wanda/graphElement/groupByInfoSystem`, getParams)
|
|
}
|
|
}
|
|
// 图例搜索
|
|
// 图例搜索
|
|
-export function graphElementSearch({
|
|
|
|
- postParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function graphElementSearch({ postParams }) {
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/search`, postParams)
|
|
return httputils.postJson(`/serve/topology-wanda/graphElement/search`, postParams)
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// 业下设备分类和位置分类树形结构
|
|
// 业下设备分类和位置分类树形结构
|
|
-export function queryDeviceAndPOsition({
|
|
|
|
- postParams
|
|
|
|
-}) {
|
|
|
|
|
|
+export function queryDeviceAndPOsition({ postParams }) {
|
|
return httputils.postJson(`/data/data/t_system_wzfl/query`, postParams)
|
|
return httputils.postJson(`/data/data/t_system_wzfl/query`, postParams)
|
|
-}
|
|
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//图形查询
|
|
|
|
+export function queryPics({ postParams }) {
|
|
|
|
+ return httputils.postJson(`/serve/topology-wanda/graph/query`, postParams)
|
|
|
|
+}
|