Browse Source

完成高亮显示未完成验证的区块

zhangyu 5 years ago
parent
commit
cb21974fdb
2 changed files with 4 additions and 4 deletions
  1. 1 1
      package.json
  2. 3 3
      src/components/data_admin/buildTask/draw/drawModel.vue

+ 1 - 1
package.json

@@ -28,7 +28,7 @@
         "@saga-web/base": "2.1.9",
         "@saga-web/draw": "2.1.58",
         "@saga-web/graphy": "2.1.30",
-        "@saga-web/cad-engine": "2.0.366"
+        "@saga-web/cad-engine": "2.0.383"
     },
     "devDependencies": {
         "ajv": "^6.9.1",

+ 3 - 3
src/components/data_admin/buildTask/draw/drawModel.vue

@@ -63,7 +63,7 @@ export default {
       this.drawMainScene = new DivideFloorScene();
       this.canvasLoading = true;
       this.drawMainScene.getFloorData('/modelapi/base-graph/query', { ModelId: ModelId }).then(res => {
-        console.log(this)
+        // console.log(this)
         this.getGraphtSuc(res);
       })
     },
@@ -129,7 +129,7 @@ export default {
       this.view.scene.spaceList.forEach(item => {
         for(let deviceItem of this.deviceList) {
           if(deviceItem.LocationJson && item.contains(deviceItem.LocationJson.X, -deviceItem.LocationJson.Y)){//注:坐标体系不同,Y坐标取反
-            item.selected = true
+            item.highLightFlag = true
             break
           }
         }
@@ -195,7 +195,7 @@ export default {
           this.highLightPoint()
         } else {
           this.view.scene.spaceList.forEach(item => {
-            item.selected = false
+            item.highLightFlag = false
           })
         }
       }