|
@@ -40,9 +40,11 @@
|
|
|
<div v-else-if="value==1" style="width: 100%;">
|
|
|
<div id="grossmarginss" style="width: 100%;height:400px;"></div>
|
|
|
<div id="Airticketcitybox" style="width: 100%;height:400px;"></div>
|
|
|
+ <div id="AirPredeterminedPlatform" style="width: 100%;height:400px;"></div>
|
|
|
</div>
|
|
|
<div v-else-if="value==2" style="width: 100%;">
|
|
|
<div id="hoteltopten" style="width: 100%;height:400px;"></div>
|
|
|
+ <div id="hotelPredeterminedPlatform" style="width: 100%;height:400px;"></div>
|
|
|
</div>
|
|
|
<div v-else-if="value==5" style="width: 100%;">
|
|
|
<div id="invitationtopten" style="width: 100%;height:400px;"></div>
|
|
@@ -244,7 +246,9 @@ export default {
|
|
|
costing:[],
|
|
|
Airticketnum:[],
|
|
|
Airticketcity:[],
|
|
|
+ AirticketPredetermined:[],
|
|
|
Hoteltop:[],
|
|
|
+ hotelPredetermined:[],
|
|
|
invitationtop:[],
|
|
|
teamCooperation:[],
|
|
|
groupnum:[],
|
|
@@ -389,6 +393,35 @@ export default {
|
|
|
color:['#2e83d4'],
|
|
|
series: [{ type: 'bar' }]
|
|
|
},true);
|
|
|
+ //预定平台
|
|
|
+ var AirPredeterminedPlatform = echarts.init(document.getElementById('AirPredeterminedPlatform'));
|
|
|
+ AirPredeterminedPlatform.setOption({
|
|
|
+ title:{
|
|
|
+ text: '机票预订平台排行',
|
|
|
+ },
|
|
|
+ legend: {},
|
|
|
+ tooltip: {
|
|
|
+ formatter:function(params){
|
|
|
+ console.log(params);
|
|
|
+
|
|
|
+ var html=params.data[0]+"预订总次数:"+params.data[1]+"次<br/>"
|
|
|
+ for(let i=0;i<params.data[2].length;i++){
|
|
|
+ html += '团组名称:'+params.data[2][i].groupName+' 次数:'+params.data[2][i].total+",<br/>";
|
|
|
+ }
|
|
|
+ return html
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ dataset: {
|
|
|
+ source: this.AirticketPredetermined
|
|
|
+ },
|
|
|
+ xAxis: { type: 'category' },
|
|
|
+ yAxis: {
|
|
|
+ name: '该平台预订次数',
|
|
|
+ },
|
|
|
+ color:['#2e83d4'],
|
|
|
+ series: [{ type: 'bar' }]
|
|
|
+ },true);
|
|
|
},
|
|
|
//团组酒店
|
|
|
grouphotel(){
|
|
@@ -418,11 +451,37 @@ export default {
|
|
|
color:['#2e83d4'],
|
|
|
series: [{ type: 'bar' }]
|
|
|
},true);
|
|
|
+ //预定平台
|
|
|
+ var hotelPredeterminedPlatform = echarts.init(document.getElementById('hotelPredeterminedPlatform'));
|
|
|
+ hotelPredeterminedPlatform.setOption({
|
|
|
+ title:{
|
|
|
+ text: '预订酒店平台排行',
|
|
|
+ },
|
|
|
+ legend: {},
|
|
|
+ tooltip: {
|
|
|
+ formatter:function(params){
|
|
|
+ var html="该平台预订总次数:"+params.data[1]+"次<br/>"
|
|
|
+ for(let i=0;i<params.data[2].length;i++){
|
|
|
+ html += '酒店名称:'+params.data[2][i].hotelName+', '+'单人间:' +params.data[2][i].singleRoomCount+', '+'双人间:' +params.data[2][i].doubleRoomCount+', '+'套房:' +params.data[2][i].suiteRoomCount+', '+'其他房型:' +params.data[2][i].otherRoomCount+', '+'总房数:' +params.data[2][i].roomTotal+",<br/>";
|
|
|
+ }
|
|
|
+ return html
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ dataset: {
|
|
|
+ source: this.hotelPredetermined
|
|
|
+ },
|
|
|
+ xAxis: { type: 'category' },
|
|
|
+ yAxis: {
|
|
|
+ name: '该平台预订次数',
|
|
|
+ },
|
|
|
+ color:['#2e83d4'],
|
|
|
+ series: [{ type: 'bar' }]
|
|
|
+ },true);
|
|
|
},
|
|
|
//团组商邀
|
|
|
groupinvitation(){
|
|
|
var invitationtopten = echarts.init(document.getElementById('invitationtopten'));
|
|
|
-
|
|
|
invitationtopten.setOption({
|
|
|
title:{
|
|
|
text: '邀请国家数量排行',
|
|
@@ -615,6 +674,7 @@ export default {
|
|
|
if(document.getElementById('grossmarginss')!=null){
|
|
|
echarts.init(document.getElementById('grossmarginss')).dispose();
|
|
|
echarts.init(document.getElementById('Airticketcitybox')).dispose();
|
|
|
+ echarts.init(document.getElementById('AirPredeterminedPlatform')).dispose();
|
|
|
}
|
|
|
if(document.getElementById('teamCooperationbox')!=null){
|
|
|
echarts.init(document.getElementById('teamCooperationbox')).dispose();
|
|
@@ -624,6 +684,7 @@ export default {
|
|
|
}
|
|
|
if(document.getElementById('hoteltopten')!=null){
|
|
|
echarts.init(document.getElementById('hoteltopten')).dispose();
|
|
|
+ echarts.init(document.getElementById('hotelPredeterminedPlatform')).dispose();
|
|
|
}
|
|
|
if(document.getElementById('invitationtopten')!=null){
|
|
|
echarts.init(document.getElementById('invitationtopten')).dispose();
|
|
@@ -706,6 +767,7 @@ export default {
|
|
|
if(res.data.code==200){
|
|
|
that.Airticketnum=[];
|
|
|
that.Airticketcity=[];
|
|
|
+ that.Airticketpred=[];
|
|
|
var datainfo=res.data.data;
|
|
|
//机票数
|
|
|
that.Airticketnum.push(['product','本年机票数量']);
|
|
@@ -717,6 +779,11 @@ export default {
|
|
|
for(let i=0;i<datainfo.airTicketAreaData.length;i++){
|
|
|
that.Airticketcity.push([datainfo.airTicketAreaData[i].month+'月',datainfo.airTicketAreaData[i].quantity,datainfo.airTicketAreaData[i].cityData]);
|
|
|
}
|
|
|
+ //机票预订平台
|
|
|
+ that.AirticketPredetermined.push(['product','机票预订平台排行榜']);
|
|
|
+ for(let i=0;i<datainfo.airTicketPlatformData.length;i++){
|
|
|
+ that.AirticketPredetermined.push([datainfo.airTicketPlatformData[i].platform,datainfo.airTicketPlatformData[i].total,datainfo.airTicketPlatformData[i].children]);
|
|
|
+ }
|
|
|
that.groupstatisone()
|
|
|
}else{
|
|
|
that.$message({
|
|
@@ -742,12 +809,19 @@ export default {
|
|
|
}).then(function (res) {
|
|
|
if(res.data.code==200){
|
|
|
that.Hoteltop=[];
|
|
|
- var datainfo=res.data.data;
|
|
|
+ that.hotelPredetermined=[];
|
|
|
+ var datainfo=res.data.data.hotelCityData;
|
|
|
+ var hotelpred=res.data.data.hotelPlatformData
|
|
|
//酒店预订数
|
|
|
that.Hoteltop.push(['product','城市酒店预订排行榜']);
|
|
|
for(let i=0;i<datainfo.length;i++){
|
|
|
that.Hoteltop.push([datainfo[i].city,datainfo[i].bookingRoomNum,datainfo[i].hotelData]);
|
|
|
}
|
|
|
+ //酒店预订平台
|
|
|
+ that.hotelPredetermined.push(['product','酒店预订平台排行榜']);
|
|
|
+ for(let k=0;k<hotelpred.length;k++){
|
|
|
+ that.hotelPredetermined.push([hotelpred[k].platform,hotelpred[k].bookingRoomNum,hotelpred[k].hotelData]);
|
|
|
+ }
|
|
|
that.grouphotel()
|
|
|
}else{
|
|
|
that.$message({
|