Bladeren bron

修改下载名称undefined的问题

haojianlong 4 jaren geleden
bovenliggende
commit
1b7a62b1d5

+ 0 - 1
src/assets/js/jsmind.js

@@ -441,7 +441,6 @@
             }
             // remove from global nodes
             delete this.nodes[node.id];
-            // clean all properties
             for (var k in node) {
                 delete node[k];
             }

+ 1 - 1
src/views/ready/buildfloor/index.vue

@@ -382,7 +382,7 @@ export default {
       } else {
         this.modelId = row.modelId;
       }
-      const pa = { modelId: this.modelId, FloorID: row.id, BuildID: row.buildingId, BuildName: this.curBuildName }
+      const pa = { modelId: this.modelId, FloorID: row.id, BuildID: row.buildingId, BuildName: this.curBuildName, FloorName: row.localName }
       this.$router.push({ name: "repetitionGraphy", query: pa });
     },
     //  查询建筑信息

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

@@ -106,6 +106,7 @@ export default {
     this.FloorID = this.$route.query.FloorID
     this.BuildID = this.$route.query.BuildID
     this.BuildName = this.$route.query.BuildName
+    this.FloorName = this.$route.query.FloorName
     if (this.modelId != '') {
       this.hasGraph = true;
       const temp = this.modelId.split('.');
@@ -116,6 +117,9 @@ export default {
       }
     }
     this.getCountModel()
+    this.$nextTick(() => {
+      this.$refs.drawFloor.buildFloorName = `${this.BuildName}-${this.FloorName}`
+    })
   },
   mounted() {},
   methods: {
@@ -217,8 +221,6 @@ export default {
         this.alreadyRelatedModel = res.content.map((t) => {
           if (t.id != this.FloorID) return t.modelId
           this.sign = t.Sign > 0
-          this.FloorName = t.localName || t.name
-          this.$refs.drawFloor.buildFloorName = `${this.BuildName}-${this.FloorName}`
           t.modelId && this.getFileName(t.modelId)
         }).filter((t) => t)
       })
@@ -406,8 +408,6 @@ export default {
               }
               this.curImgItem.showType == SImageShowType.Full;
               this.curImgItem.moveTo(v.properties.x, v.properties.y);
-              // this.curImgItem.width = v.Properties.width;
-              // this.curImgItem.height = v.Properties.height;
             } catch (err) {
               console.log(err);
             }