Переглянути джерело

修改接口增加 name传参

haojianlong 3 роки тому
батько
коміт
1032b954f8

+ 4 - 2
src/components/editview/leftToolBar/editInfoPoint.vue

@@ -218,7 +218,8 @@ import { planerSave, planerUpdate, pubPlanerUpdate } from "@/api/labsl";
 import { dictQuery } from "@/api/datacenter";
 import { imgBaseUrl, imgServeUpload } from "@/api/imageservice";
 import { cloneDeep } from "lodash";
-import { rgbaNum, svgTobase64 } from "@persagy-web/big-edit/lib/until";
+import { rgbaNum } from "@persagy-web/big-edit/lib/until";
+import { svgTobase64 } from "@persagy-web/big";
 import { SPlanDecorator } from "@/lib";
 import { SColor } from "@persagy-web/draw/lib";
 import { v1 as uuidv1 } from "uuid";
@@ -295,7 +296,7 @@ export default {
         };
     },
     computed: {
-        ...mapState(["styleMap", "id", "graphId", "buildingId", "floorId", "equipItemMap", "zoneIteMap"]),
+        ...mapState(["styleMap", "id", "graphId", "buildingId", "floorId", "equipItemMap", "zoneIteMap", "name"]),
     },
     watch: {
         // 是否打开弹窗
@@ -486,6 +487,7 @@ export default {
                         id: this.id,
                         graphId: this.graphId,
                         style: postStyle,
+                        name: this.name
                     },
                 ],
                 projection: ["style"],

+ 2 - 0
src/components/homeView/move.vue

@@ -109,6 +109,8 @@ export default {
                     id: t.id,
                     graphId: t.graphId,
                     folderId: this.value,
+                    name: t.name,
+                    floorId: t.floorId
                 };
             });
             let res;

+ 2 - 0
src/components/homeView/tagDialog.vue

@@ -74,6 +74,8 @@ export default {
                         id: this.data.id,
                         graphId: this.data.graphId,
                         label: this.dynamicTags,
+                        name: this.data.name,
+                        floorId: this.data.floorId
                     },
                 ],
                 projection: ["label"],