Explorar o código

feat:底图新增属性

YaolongHan %!s(int64=4) %!d(string=hai) anos
pai
achega
d54801a748
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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);