Explorar o código

fix:建筑楼层 修改bug

haojianlong %!s(int64=4) %!d(string=hai) anos
pai
achega
6e9a3fa1ea

+ 1 - 0
src/components/ready/buildfloor/setScaleDialog.vue

@@ -30,6 +30,7 @@ export default {
     },
     },
     confirm() {
     confirm() {
       this.item.text = this.scaleInput + ' mm';
       this.item.text = this.scaleInput + ' mm';
+      this.item.update()
       this.$emit('textChange', this.scaleInput)
       this.$emit('textChange', this.scaleInput)
       this.dialogVis = false
       this.dialogVis = false
     }
     }

+ 2 - 1
src/views/ready/buildfloor/repetitionGraphy.vue

@@ -3,7 +3,7 @@
     <div id='repetitionGraphy'>
     <div id='repetitionGraphy'>
         <div class='buttons'>
         <div class='buttons'>
             <el-button icon='el-icon-back' size='mini' @click='backRouter'></el-button>
             <el-button icon='el-icon-back' size='mini' @click='backRouter'></el-button>
-            <template v-if="!!hasModel">
+            <template v-if="!hasModel">
                 <el-upload class='upload-demo' action='string' :http-request='uploadAndSubmit' :show-file-list='false' v-if="step==-1">
                 <el-upload class='upload-demo' action='string' :http-request='uploadAndSubmit' :show-file-list='false' v-if="step==-1">
                     <el-button size="mini">{{hasGraph?'替换平面图图片':'上传平面图图片'}}</el-button>
                     <el-button size="mini">{{hasGraph?'替换平面图图片':'上传平面图图片'}}</el-button>
                 </el-upload>
                 </el-upload>
@@ -372,6 +372,7 @@ export default {
             if (this.curImgItem) {
             if (this.curImgItem) {
                 this.$refs.drawFloor.drawMainScene.removeItem(this.curImgItem);
                 this.$refs.drawFloor.drawMainScene.removeItem(this.curImgItem);
                 this.curImgItem = null;
                 this.curImgItem = null;
+                this.$refs.drawFloor.view.update()
             }
             }
         },
         },
         // 清空比例尺数据
         // 清空比例尺数据