Browse Source

草稿箱传参少seq参数

YaolongHan 4 years ago
parent
commit
c560ecf540
2 changed files with 9 additions and 4 deletions
  1. 8 3
      src/views/drafts.vue
  2. 1 1
      vue.config.js

+ 8 - 3
src/views/drafts.vue

@@ -354,6 +354,7 @@ export default {
       this.floorName = id.Code;
       this.floorName = id.Code;
       this.floorId = id.Gname;
       this.floorId = id.Gname;
       this.categoryId = items.Id;
       this.categoryId = items.Id;
+      this.seq = items.Seq;
       // this.getLegend();
       // this.getLegend();
       this.checkFloor(id.Gname);
       this.checkFloor(id.Gname);
       console.log(items);
       console.log(items);
@@ -412,6 +413,7 @@ export default {
                 this.floorName = this.treeData[0].children[0].children[0].Code;
                 this.floorName = this.treeData[0].children[0].children[0].Code;
                 this.floorId = this.treeData[0].children[0].children[0].Gname;
                 this.floorId = this.treeData[0].children[0].children[0].Gname;
                 this.categoryId = this.treeData[0].children[0].Id;
                 this.categoryId = this.treeData[0].children[0].Id;
+                this.seq =  this.treeData[0].children[0].Seq;
                 // this.getLegend();
                 // this.getLegend();
                 this.checkFloor(this.treeData[0].children[0].children[0].Gname);
                 this.checkFloor(this.treeData[0].children[0].children[0].Gname);
               } else {
               } else {
@@ -421,6 +423,7 @@ export default {
                 this.floorName = this.treeData[0].children[0].Code;
                 this.floorName = this.treeData[0].children[0].Code;
                 this.floorId = this.treeData[0].children[0].Gname;
                 this.floorId = this.treeData[0].children[0].Gname;
                 this.categoryId = this.treeData[0].Id;
                 this.categoryId = this.treeData[0].Id;
+                this.seq =  this.treeData[0].children[0].Seq;
                 // this.getLegend();
                 // this.getLegend();
                 this.checkFloor(this.treeData[0].children[0].Gname);
                 this.checkFloor(this.treeData[0].children[0].Gname);
               }
               }
@@ -435,6 +438,7 @@ export default {
           if (this.treeData.length == 0) {
           if (this.treeData.length == 0) {
             this.checkFloor("");
             this.checkFloor("");
           }
           }
+          console.log(' this.treeData', this.treeData)
         })
         })
         .catch(() => {
         .catch(() => {
           loadings.close();
           loadings.close();
@@ -450,7 +454,6 @@ export default {
         graphId: this.graphId,
         graphId: this.graphId,
         categoryId: this.categoryId
         categoryId: this.categoryId
       }).then(res => {
       }).then(res => {
-        console.log(res);
         this.legendLoading = false;
         this.legendLoading = false;
         if (res.data.Result == "success") {
         if (res.data.Result == "success") {
           const data = res.data.Data;
           const data = res.data.Data;
@@ -491,7 +494,7 @@ export default {
         spinner: "el-icon-loading",
         spinner: "el-icon-loading",
         background: "rgba(0, 0, 0, 0.7)"
         background: "rgba(0, 0, 0, 0.7)"
       });
       });
-      let params = {
+      const params = {
         "BuildingID": this.BuildingID,
         "BuildingID": this.BuildingID,
         "CategoryID": this.categoryId,
         "CategoryID": this.categoryId,
         "FloorID": this.floorId,
         "FloorID": this.floorId,
@@ -587,13 +590,15 @@ export default {
           "/wandaEditer/editer?" +
           "/wandaEditer/editer?" +
           encodeURIComponent(data);
           encodeURIComponent(data);
         window.open(url, true); */
         window.open(url, true); */
-         
+
         // 发布成功跳转草稿箱
         // 发布成功跳转草稿箱
         const token = this.$store.getters["token"];
         const token = this.$store.getters["token"];
+        alert(this.seq)
         this.$router.push({
         this.$router.push({
           path: "editer",
           path: "editer",
           query: {
           query: {
             categoryId: this.categoryId,
             categoryId: this.categoryId,
+            seq:this.seq,
             projectId: this.projectId,
             projectId: this.projectId,
             BuildingID: 1,
             BuildingID: 1,
             FloorName: this.floorName,
             FloorName: this.floorName,

+ 1 - 1
vue.config.js

@@ -17,7 +17,7 @@ module.exports = {
             '/serve': {
             '/serve': {
                 // target: 'http://192.168.200.87:8088/',
                 // target: 'http://192.168.200.87:8088/',
                 // target: 'http://192.168.200.83:8085/',
                 // target: 'http://192.168.200.83:8085/',
-                target: 'http://60.205.177.43:8080', //阿里云
+                target: 'http://60.205.177.43', //阿里云
                 changeOrigin: true,
                 changeOrigin: true,
                 secure: false,
                 secure: false,
                 pathRewrite: {
                 pathRewrite: {