浏览代码

feat: 修改保存

gemercheung 10 月之前
父节点
当前提交
04f48d3840

+ 1 - 1
src/view/case/draw/board/editCAD/Geometry/BgImage.js

@@ -32,7 +32,7 @@ export default class BgImage extends Geometry {
 
 
   setResolution(width, height) {
   setResolution(width, height) {
     this.width = width;
     this.width = width;
-    this.width = height;
+    this.height = height;
   }
   }
   setUrl(url) {
   setUrl(url) {
     this.url = url;
     this.url = url;

+ 1 - 2
src/view/case/draw/board/editCAD/Load.js

@@ -186,8 +186,7 @@ export default class Load {
           bgImage.setScale(floor.bgImage.scale);
           bgImage.setScale(floor.bgImage.scale);
         }
         }
         if (floor.bgImage.hasOwnProperty("width") && floor.bgImage.hasOwnProperty("height")) {
         if (floor.bgImage.hasOwnProperty("width") && floor.bgImage.hasOwnProperty("height")) {
-          // debugger
-          // bgImage.setResolution(floor.bgImage.width,floor.bgImage.height);
+          bgImage.setResolution(floor.bgImage.width,floor.bgImage.height);
         }
         }
       }
       }
       if (floor.noBoardFrame) {
       if (floor.noBoardFrame) {

+ 1 - 0
src/view/media/index.vue

@@ -15,6 +15,7 @@
       <el-tabs
       <el-tabs
         v-model="subTabName"
         v-model="subTabName"
         class="sub-tab"
         class="sub-tab"
+        tab-position="top"
         @tab-click="handleSubtabClick"
         @tab-click="handleSubtabClick"
       >
       >
         <el-tab-pane
         <el-tab-pane