소스 검색

拓扑图demo;接口添加

haojianlong 5 년 전
부모
커밋
bb464a0204
3개의 변경된 파일105개의 추가작업 그리고 16개의 파일을 삭제
  1. 1 1
      package.json
  2. 14 0
      src/api/topo/index.js
  3. 90 15
      src/views/business_space/dataUtil/topology.vue

+ 1 - 1
package.json

@@ -23,7 +23,7 @@
     "@saga-web/cad-engine": "2.0.560",
     "@saga-web/draw": "2.1.75",
     "@saga-web/graphy": "2.1.47",
-    "@saga-web/topology": "1.0.76",
+    "@saga-web/topology": "1.0.77",
     "axios": "^0.18.0",
     "echarts": "^4.1.0",
     "el-cascader-multi": "^1.1.8",

+ 14 - 0
src/api/topo/index.js

@@ -0,0 +1,14 @@
+import httputils from '@/api/scan/httpUtil'
+const baseUrl = '/api';
+
+// 创建拓扑图
+export function topoCreate(param, success) {
+  let url = `${baseUrl}/datacenter/topo/create`;
+  httputils.postJson(url, param, success)
+}
+
+// 查询拓扑图
+export function topoQuery(param, success) {
+  let url = `${baseUrl}/datacenter/topo/query`;
+  httputils.postJson(url, param, success)
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 90 - 15
src/views/business_space/dataUtil/topology.vue