Просмотр исходного кода

fix:1.修复新建画布,跳转到编辑器,不携带floorMap的问题
2.修复文本无法修改背景色的问题
3.新增空间API

yunxing 4 лет назад
Родитель
Сommit
404cc198e8

+ 5 - 1
src/api/equipcomponent.ts

@@ -4,7 +4,11 @@
 import httputils from "@/api/httputils";
 const baseApi = "/equip-component";
 
-// 查询设备列表 
+// 查询设备列表
 export function equipQuery(postParams: any): any {
     return httputils.postJson(`${baseApi}/planar/equip`, postParams);
 }
+// 查询空间信息
+export function spaceQuery(postParams: any): any {
+    return httputils.postJson(`${baseApi}/planar/space`, postParams);
+}

+ 2 - 2
src/components/editview/rightPropertyBar/baseLinePro.vue

@@ -136,8 +136,8 @@ export default {
     },
     mounted() {
         // console.log(Select)
-        console.log(this.TextItem);
-        window._vm = this;
+        // console.log(this.TextItem);
+        // window._vm = this
     },
     watch: {
         strokeColor(val) {

+ 3 - 2
src/components/editview/rightPropertyBar/baseTextPro.vue

@@ -82,8 +82,6 @@ export default {
         },
         // 改变背景颜色
         changeBackground(val) {
-            // const colorList = rgbaNum(val);
-            // const color = new SColor(Number(colorList[0]), Number(colorList[1]), Number(colorList[2]), colorList[3] * 255);
             bus.$emit("updateStyle", "backgroundColor", val);
         },
         // 改变字体大小
@@ -179,4 +177,7 @@ li {
         }
     }
 }
+/deep/.el-input__inner {
+    padding-right: 40px !important;
+}
 </style>

+ 1 - 1
src/components/homeView/createPlanarDialog.vue

@@ -192,7 +192,7 @@ export default {
             const buildingId = this.ruleForm.buildFloor[0];
             const floorId = this.ruleForm.buildFloor[1];
             const floorLocalName = floorNode.label;
-            const floorMap = floorNode.data.info && floorNode.data.info.floorMap ? floorNode.data.info.floorMap : "";
+            const floorMap = floorNode.data.infos && floorNode.data.infos.floorMap ? floorNode.data.infos.floorMap : "";
             const folderName = folder ? folder.name : this.ruleForm.folder;
             const params = {
                 name: this.ruleForm.name,