YaolongHan 4 years ago
parent
commit
3b0ac82c67
2 changed files with 7 additions and 7 deletions
  1. 2 2
      src/components/Legend/src/legend.vue
  2. 5 5
      src/components/floorMap/index.vue

+ 2 - 2
src/components/Legend/src/legend.vue

@@ -164,8 +164,8 @@ export default {
             let categoryId = this.$cookie.get('categoryId') || 'LCGN'
             const { conf } = window.__systemConf,
                 { editerUrl } = conf
-            let data = `editer?categoryId=${categoryId}&projectId=${this.plazaId}&BuildingID=1&FloorID=${FloorID}'`
-            let url = editerUrl + encodeURIComponent(data)
+            let data = `categoryId=${categoryId}&projectId=${this.plazaId}&BuildingID=1&FloorID=${FloorID}'`
+            let url = editerUrl + 'editer?' + encodeURIComponent(data)
             window.open(url, true)
         },
         isShow2() {

+ 5 - 5
src/components/floorMap/index.vue

@@ -40,7 +40,8 @@ export default {
       loading: false,
       view: null,
       isQuerying: false, // 限制重复查询
-      urlMsg: {}
+      urlMsg: {},
+      fmapID: "1000423_120"
     };
   },
   components: { RoomBox, canvasFun },
@@ -57,13 +58,13 @@ export default {
       if (!fengmap) {
         fengmap = new SFengParser(
           "fengMap",
-          `${this.mapServerURL}/${this.urlMsg.fmapID}`,
+          `${this.mapServerURL}/${this.fmapID}`,
           this.key,
           this.appName,
           null
         );
 
-        fengmap.loadMap(this.urlMsg.fmapID, res => {
+        fengmap.loadMap(this.fmapID, res => {
           this.floorList = res;
           this.parserData(floorid);
         });
@@ -202,8 +203,7 @@ export default {
       categoryId: "NTXT",
       ProjectID: "6",
       BuildingID: "1",
-      FloorID: "1",
-      fmapID: "1000423_120"
+      FloorID: "1"
     };
   }
 };