Bladeren bron

feat:底图新增属性

YaolongHan 4 jaren geleden
bovenliggende
commit
d54801a748
1 gewijzigde bestanden met toevoegingen van 6 en 1 verwijderingen
  1. 6 1
      src/components/floorMap/index.vue

+ 6 - 1
src/components/floorMap/index.vue

@@ -50,6 +50,11 @@ export default {
       default: "1",
       type: String
     },
+      categoryId: {
+      default: "",
+      type: String
+    },
+
     loadName: null,
     type: null
   },
@@ -211,7 +216,7 @@ export default {
       const data = {
         BuildingID: "1",
         FloorID: FloorID,
-        categoryId: this.$cookie.get("categoryId"),
+        categoryId: this.categoryId ? this.categoryId : this.$cookie.get("categoryId"),
         projectId: this.urlMsg.ProjectID
       };
       return readGroup(data);