Browse Source

管线不能遮住设备

YaolongHan 4 years ago
parent
commit
86d3463b78
2 changed files with 4 additions and 2 deletions
  1. 1 1
      package.json
  2. 3 1
      src/components/editClass/persagy-edit/PTopoParser.ts

+ 1 - 1
package.json

@@ -58,4 +58,4 @@
     "typescript": "~3.9.3",
     "vue-template-compiler": "^2.6.11"
   }
-}
+}

+ 3 - 1
src/components/editClass/persagy-edit/PTopoParser.ts

@@ -23,7 +23,7 @@
  *
  * ****/
 
-import { SParser } from '@persagy-web/big/lib';
+import { SParser ,ItemOrder} from '@persagy-web/big/lib';
 import { BigEditFactory, Legend, Marker, Relation, ElementData } from "@persagy-web/big-edit"
 
 /**
@@ -124,6 +124,7 @@ export class PTopoParser extends SParser {
             }
         }
         if (node) {
+            node.zOrder = ItemOrder.imageOrder;
             this.nodes.push(node);
         }
 
@@ -146,6 +147,7 @@ export class PTopoParser extends SParser {
         }
 
         if (relation) {
+            relation.zOrder = ItemOrder.polylineOrder;
             this.relations.push(relation);
         }