YaolongHan 4 anos atrás
pai
commit
3b0ac82c67

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

@@ -164,8 +164,8 @@ export default {
             let categoryId = this.$cookie.get('categoryId') || 'LCGN'
             let categoryId = this.$cookie.get('categoryId') || 'LCGN'
             const { conf } = window.__systemConf,
             const { conf } = window.__systemConf,
                 { editerUrl } = conf
                 { 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)
             window.open(url, true)
         },
         },
         isShow2() {
         isShow2() {

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

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