liuhj 2 weeks ago
parent
commit
414b3e990a
1 changed files with 10 additions and 44 deletions
  1. 10 44
      src/components/statistics/Statistically.vue

+ 10 - 44
src/components/statistics/Statistically.vue

@@ -459,44 +459,7 @@ export default {
             //
             mapdate:'',
             mapinput:'',
-            mapdata:[
-                {
-                    groupName: "信息部测试专用赴日本、加拿大7日",
-                    client: "信息部测试专用",
-                    statusText: "入住酒店中",
-                    address: "上海"
-                },
-                {
-                    groupName: "信息部测试专用加拿大7日",
-                    client: "信息部测试专用",
-                    statusText: "商务会议中",
-                    address: "北京"
-                },
-                {
-                    groupName: "信息部测试专用赴日本7日",
-                    client: "信息部测试专用",
-                    statusText: "参加会展",
-                    address: "日本〒104-0032 Tokyo, Chuo City, Hatchobori, 1 Chome−12−8 EAST2階"
-                },
-                {
-                    groupName: "信息部测试专用赴墨西哥",
-                    client: "信息部测试专用",
-                    statusText: "入住酒店中",
-                    address: "Av. Río San Joaquín 498-piso 2, suite 5, Amp Granada, Miguel Hidalgo, 11529 Ciudad de México, CDMX, 墨西哥"
-                },
-                {
-                    groupName: "信息部测试专用赴韩国",
-                    client: "信息部测试专用",
-                    statusText: "入住酒店中",
-                    address: "成都"
-                },
-                {
-                    groupName: "信息部测试专用赴日本东京都",
-                    client: "信息部测试专用",
-                    statusText: "入住酒店中",
-                    address: "加拿大"
-                },
-            ],
+            mapdata:[],
             fordata:[],
         }
     }, 
@@ -545,7 +508,7 @@ export default {
                 this.StatisticsGroupCost()
             }
             if (this.activeName=='fifth') {
-                // this.getonline();
+                this.onlinemap();
             }
         },
         //处理时间
@@ -656,7 +619,7 @@ export default {
             
         },
         //获取地点数据
-        StatisticsNowCityOfGroup(){
+        async StatisticsNowCityOfGroup(){
             var url = "/api/Statistics/StatisticsNowCityOfGroup"
             var that = this
             this.$axios({
@@ -695,7 +658,10 @@ export default {
             })
         },
         //在线地图
-        async onlinemap(){
+        onlinemap(){
+            // this.StatisticsNowCityOfGroup()
+            console.log(this.mapdata);
+            
             const token = "eyJraWQiOiI1NEIyRkFLODMzIiwidHlwIjoiSldUIiwiYWxnIjoiRVMyNTYifQ.eyJpc3MiOiJIS0YzNzJKU01LIiwiaWF0IjoxNzMzMTkxMzI2LCJvcmlnaW4iOiJvYS5wYW4tYW1lcmljYW4taW50bC5jb20ifQ.1czYQb-Nxh6n4kG9sVylQH32XawN92gBKXjn6i_SU0F2M9fpwbStM-gDRvfANEiEUDz5ogUmm_FQf9eBF8o9Zg";
             mapkit.init({
                 libraries:'services',
@@ -737,7 +703,7 @@ export default {
             that.fordata=[];
             for (let i = 0; i < this.mapdata.length; i++) {
                 var listinif={}
-                geocoder.lookup(this.mapdata[i].address==''?'中国':this.mapdata[i].address, function (err, data) {
+                geocoder.lookup(this.mapdata[i].address, function (err, data) {
                     if (err) {
                         console.log(err);
                     }else{
@@ -1199,7 +1165,7 @@ export default {
                 this.StatisticsGroupCost()
             }
             if (this.activeName=='fifth') {
-                this.getonline();
+                this.onlinemap();
             }
             // this.businessincome=[];
             // this.Grossprofit=[];
@@ -1634,7 +1600,7 @@ export default {
     },
     mounted(){
         this.StatisticsYOY();
-        this.onlinemap();
+        // this.onlinemap();
         // this.countrieschange(this.value);
         // this.StatisticsOP(1);
         // this.StatisticsAirTicket();