YaolongHan 4 years ago
parent
commit
e82d59f808
2 changed files with 9 additions and 4 deletions
  1. 3 3
      src/components/baseEditer.vue
  2. 6 1
      src/components/edit/left_toolbar.vue

+ 3 - 3
src/components/baseEditer.vue

@@ -163,9 +163,9 @@ export default {
         const Elements = this.scene.saveMsgItem();
         const data = {
           Elements,
-          // ID: "11",
+          ID: "a36a8b30423a44bba03be989ddc36737",  // 如果id为空则为地图
           Name: "1", // 名称
-          CategoryID: "1", // 图分类ID
+          CategoryID: "", // 图分类ID
           ProjectID: "1", // 项目ID
           BuildingID: "1", // 建筑ID
           FloorID: "1", // 楼层id
@@ -190,7 +190,7 @@ export default {
     // 读取数据
     readGroup() {
       const data = {
-        graphId: "f37e59ec5bfa4e76939582f55efca29a",
+        graphId: "a36a8b30423a44bba03be989ddc36737",
         projectId: 1
       };
       return readGroup(data);

+ 6 - 1
src/components/edit/left_toolbar.vue

@@ -93,7 +93,7 @@
                   :key="indexs"
                 >
                   <img
-                    class="item"
+                    :class="items.Type =='Image'? 'item' :'item-Image'"
                     :src="'/serve/topology-wanda/Picture/query/'+ items.Url"
                     alt
                   />
@@ -509,6 +509,11 @@ export default {
               height: 32px;
               margin: 0 auto;
             }
+            .item-Image {
+              width: 28px;
+              height: 16px;
+              margin: 0 auto;
+            }
             .item-pip {
               width: 28px;
               height: 16px;