瀏覽代碼

修改平面图替换时的bug

haojianlong 4 年之前
父節點
當前提交
c8b5c7f544
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/views/ready/buildfloor/repetitionGraphy.vue

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

@@ -211,7 +211,9 @@ export default {
                 // todo
                 if (flag && flag == 'next') {
                     this.floorRadio = this.floorList[0];
-                    this.loadOtherImg(this.floorRadio)
+                    if (this.floorRadio.FloorID != this.FloorID) {
+                        this.loadOtherImg(this.floorRadio)
+                    }
                 }
                 this.alreadyRelatedModel = res.Content.map((t) => {
                     if (t.FloorID != this.FloorID) return t.ModelId
@@ -309,6 +311,7 @@ export default {
         // 根据modelid初始化
         initFromModelId(id){
             const temp = id.split('.')[1];
+            console.log(id);
             if (temp) {
                 if (temp.toLowerCase() == 'png' || temp.toLowerCase() == 'jpg') {
                     this.$refs.drawFloor.initGraphy(id, 3)