|
@@ -362,7 +362,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
import { getToken } from 'mapkit-token';
|
|
|
import * as echarts from 'echarts';
|
|
@@ -600,10 +599,10 @@ export default {
|
|
|
},
|
|
|
//在线引入
|
|
|
getonline(){
|
|
|
- const oScript = document.createElement('script');
|
|
|
- oScript.type = 'text/javascript';
|
|
|
- oScript.src = 'https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.core.js';
|
|
|
- document.body.appendChild(oScript);
|
|
|
+ // const oScript = document.createElement('script');
|
|
|
+ // oScript.type = 'text/javascript';
|
|
|
+ // oScript.src = 'https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.core.js';
|
|
|
+ // document.body.appendChild(oScript);
|
|
|
this.onlinemap();
|
|
|
},
|
|
|
//在线地图
|
|
@@ -628,9 +627,13 @@ export default {
|
|
|
});
|
|
|
// var map = new mapkit.Map('map', { center: new mapkit.Coordinate(104.096488, 30.635261) });
|
|
|
const coordinate = new mapkit.Coordinate(104.096488, 30.635261)
|
|
|
- const span = new mapkit.CoordinateSpan(5, 5) // 1degree=111km
|
|
|
- const region = new mapkit.CoordinateRegion(coordinate, span)
|
|
|
- const map = new mapkit.Map("map", {center: coordinate, countryCode: "CN"})
|
|
|
+ // const span = new mapkit.CoordinateSpan(5, 5) // 1degree=111km
|
|
|
+ // const region = new mapkit.CoordinateRegion(coordinate, span)
|
|
|
+ const map = new mapkit.Map("map", {
|
|
|
+ center: coordinate,
|
|
|
+ countryCode: "CN",
|
|
|
+ isZoomEnabled:true,
|
|
|
+ })
|
|
|
|
|
|
|
|
|
},
|
|
@@ -712,7 +715,12 @@ export default {
|
|
|
dataset: {
|
|
|
source: this.invitationtop
|
|
|
},
|
|
|
- xAxis: { type: 'category' },
|
|
|
+ xAxis: {
|
|
|
+ type: 'category',
|
|
|
+ axisLabel:{
|
|
|
+ rotate:30
|
|
|
+ },
|
|
|
+ },
|
|
|
yAxis: {
|
|
|
name: '数量',
|
|
|
},
|
|
@@ -737,7 +745,12 @@ export default {
|
|
|
dataset: {
|
|
|
source: this.teamCooperation
|
|
|
},
|
|
|
- xAxis: { type: 'category' },
|
|
|
+ xAxis: {
|
|
|
+ type: 'category',
|
|
|
+ axisLabel:{
|
|
|
+ rotate:25
|
|
|
+ },
|
|
|
+ },
|
|
|
yAxis: {
|
|
|
name: '次数',
|
|
|
},
|
|
@@ -1099,7 +1112,7 @@ export default {
|
|
|
}).then(function (res) {
|
|
|
if(res.data.code==200){
|
|
|
that.invitationtop=[];
|
|
|
- let datainfo=res.data.data;
|
|
|
+ let datainfo=res.data.data.groupByCountry;
|
|
|
that.invitationtop.push(['product','商邀邀请国家数量']);
|
|
|
for(let i=0;i<datainfo.length;i++){
|
|
|
that.invitationtop.push([datainfo[i].country,datainfo[i].timeNum]);
|