YaolongHan 4 tahun lalu
induk
melakukan
7e4d616d4e
2 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 3 3
      src/components/baseEditer.vue
  2. 1 0
      src/components/edit/left_toolbar.vue

+ 3 - 3
src/components/baseEditer.vue

@@ -43,7 +43,6 @@ export default {
       scene: null,
       view: null,
       floorList: {},
-      fmapID:'1000423_120',
       urlMsg: {}
     };
   },
@@ -61,15 +60,16 @@ export default {
       document.getElementById(`canvas`).focus();
       this.clearGraphy();
       this.scene = new EditScence();
+      console.log(this.urlMsg.fmapID,)
       fengmap = new SFengParser(
         "fengMap",
-        this.mapServerURL + "/" + this.fmapID,
+        this.mapServerURL + "/" + this.urlMsg.fmapID,
         this.key,
         this.appName,
         null
       );
       const floorid = "f1";
-      fengmap.loadMap(this.fmapID, resp => {
+      fengmap.loadMap(this.urlMsg.fmapID, resp => {
         this.floorList = resp;
         this.parserData(floorid);
         this.view.fitSceneToView();

+ 1 - 0
src/components/edit/left_toolbar.vue

@@ -298,6 +298,7 @@ export default {
         // 接口请求
         const arr = {
           GraphCategoryIds: this.categoryId,
+          // GraphCategoryIds: "NTXT",
           Type: item.type
         };
         queryGroup(arr).then(res => {