ソースを参照

拓扑图修改

haojianlong 5 年 前
コミット
bad5df0190
2 ファイル変更9 行追加4 行削除
  1. 1 1
      package.json
  2. 8 3
      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.78",
+    "@saga-web/topology": "1.0.82",
     "axios": "^0.18.0",
     "echarts": "^4.1.0",
     "el-cascader-multi": "^1.1.8",

+ 8 - 3
src/views/business_space/dataUtil/topology.vue

@@ -159,7 +159,12 @@ export default {
       this.scene.createItem(equipdata);
     },
     drawline() {
-      this.scene.isLining = !this.scene.isLining;
+      if (this.scene.lineType) {
+        this.scene.lineType = 0;
+        console.log('change')
+        return
+      }
+      this.scene.lineType = 1;
     },
     // 清除默认左右键事件
     disableRightButton() {
@@ -302,8 +307,8 @@ export default {
       topoQuery({ type: 'eq2sp_for' }, res => {
         console.log(res.Content[0])
         // this.scene.loadData({
-          // equipList: res.Content[0].NodeList,
-          // relationList: res.Content[0].RelationList,
+        // equipList: res.Content[0].NodeList,
+        // relationList: res.Content[0].RelationList,
         // })
         // this.view.fitSceneToView()
       })