Commit 9ebad3f4 authored by 黄媛媛's avatar 黄媛媛

1111

parent a2a3c5dd
......@@ -271,6 +271,7 @@ export default {
rjGuest:[],
//年份列表
yearList:[],
Mydatalist:[],
}
},
watch: {
......@@ -419,7 +420,35 @@ export default {
}
})
})
console.log(companyArr,'bbbbbbbbbbbbb');
// console.log(companyArr,'bbbbbbbbbbbbb');
let arr=[];
let arr1=[];
companyArr.forEach(item=>{
let obj={
name:item.OutBranchName,
type:'bar',
data:[]
}
let objline={
type:'line',
symbolSize: 2,
yAxisIndex:1,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:[]
}
item.List.forEach(list=>{
obj.data.push(list.PreferPrice);
objline.data.push(list.GuestNum);
})
arr.push(obj);
arr1.push(objline);
})
this.Mydatalist=arr.concat(arr1);
console.log("this.Mydatalist",this.Mydatalist)
},
getName(item){
return item.replace('印象','');
......@@ -552,202 +581,203 @@ export default {
}
}
],
series: [
{
name:'成都',
type:'bar',
data:that.cdList,
itemStyle: {
normal: {
// color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
// { offset: 1, color: "#256AFB" },
// { offset: 0, color: "#FE7691" }
// ]),
}
},
},
{
name:'昆明',
type:'bar',
data:that.kmList
},
{
name:'西安',
type:'bar',
data:that.xaList
},
{
name:'武汉',
type:'bar',
data:that.whList
},
{
name:'南宁',
type:'bar',
data:that.nnList
},
{
name:'贵阳',
type:'bar',
data:that.gyList
},
{
name:'南昌',
type:'bar',
data:that.ncList
},
{
name:'合肥',
type:'bar',
data:that.hfList
},
{
name:'长沙',
type:'bar',
data:that.csList
},
{
name:'厦门',
type:'bar',
data:that.xmList
},
{
name:'南京',
type:'bar',
data:that.njList
},
{
name:'重庆',
type:'bar',
data:that.cqList
},
{
name:'入境',
type:'bar',
data:that.rjList
},
{
series:this.Mydatalist,
// series: [
// {
// name:'成都',
// type:'bar',
// data:that.cdList,
// itemStyle: {
// normal: {
// // color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
// // { offset: 1, color: "#256AFB" },
// // { offset: 0, color: "#FE7691" }
// // ]),
// }
// },
// },
// {
// name:'昆明',
// type:'bar',
// data:that.kmList
// },
// {
// name:'西安',
// type:'bar',
// data:that.xaList
// },
// {
// name:'武汉',
// type:'bar',
// data:that.whList
// },
// {
// name:'南宁',
// type:'bar',
// data:that.nnList
// },
// {
// name:'贵阳',
// type:'bar',
// data:that.gyList
// },
// {
// name:'南昌',
// type:'bar',
// data:that.ncList
// },
// {
// name:'合肥',
// type:'bar',
// data:that.hfList
// },
// {
// name:'长沙',
// type:'bar',
// data:that.csList
// },
// {
// name:'厦门',
// type:'bar',
// data:that.xmList
// },
// {
// name:'南京',
// type:'bar',
// data:that.njList
// },
// {
// name:'重庆',
// type:'bar',
// data:that.cqList
// },
// {
// name:'入境',
// type:'bar',
// data:that.rjList
// },
// {
type:'line',
symbolSize: 2,
hoverAnimation: true,
yAxisIndex:1,
smooth: true,
showSymbol: false,
data:that.cdGuest
},
{
// type:'line',
// symbolSize: 2,
// hoverAnimation: true,
// yAxisIndex:1,
// smooth: true,
// showSymbol: false,
// data:that.cdGuest
// },
// {
type:'line',
symbolSize: 2,
yAxisIndex:1,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.kmGuest
},{
// type:'line',
// symbolSize: 2,
// yAxisIndex:1,
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.kmGuest
// },{
type:'line',
symbolSize: 2,
yAxisIndex:1,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.xaGuest
},{
// type:'line',
// symbolSize: 2,
// yAxisIndex:1,
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.xaGuest
// },{
type:'line',
symbolSize: 2,
yAxisIndex:1,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.whGuest
},{
yAxisIndex:1,
// type:'line',
// symbolSize: 2,
// yAxisIndex:1,
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.whGuest
// },{
// yAxisIndex:1,
type:'line',
symbolSize: 2,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.nnGuest
},{
yAxisIndex:1,
// type:'line',
// symbolSize: 2,
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.nnGuest
// },{
// yAxisIndex:1,
type:'line',
symbolSize: 2,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.gyGuest
},{
type:'line',
// type:'line',
// symbolSize: 2,
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.gyGuest
// },{
// type:'line',
symbolSize: 2,
yAxisIndex:1,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.ncGuest
},
{
// symbolSize: 2,
// yAxisIndex:1,
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.ncGuest
// },
// {
type:'line',
symbolSize: 2,
yAxisIndex:1,
// type:'line',
// symbolSize: 2,
// yAxisIndex:1,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.hfGuest
},
{
yAxisIndex:1,
type:'line',
symbolSize: 2,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.csGuest
},
{
yAxisIndex:1,
type:'line',
symbolSize: 2,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.xmGuest
},
{
yAxisIndex:1,
type:'line',
symbolSize: 2,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.njGuest
},
{
yAxisIndex:1,
type:'line',
symbolSize: 2,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.cqGuest
},
{
yAxisIndex:1,
type:'line',
symbolSize: 2,
hoverAnimation: true,
smooth: true,
showSymbol: false,
data:that.rjGuest
}
],
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.hfGuest
// },
// {
// yAxisIndex:1,
// type:'line',
// symbolSize: 2,
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.csGuest
// },
// {
// yAxisIndex:1,
// type:'line',
// symbolSize: 2,
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.xmGuest
// },
// {
// yAxisIndex:1,
// type:'line',
// symbolSize: 2,
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.njGuest
// },
// {
// yAxisIndex:1,
// type:'line',
// symbolSize: 2,
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.cqGuest
// },
// {
// yAxisIndex:1,
// type:'line',
// symbolSize: 2,
// hoverAnimation: true,
// smooth: true,
// showSymbol: false,
// data:that.rjGuest
// }
// ],
color: ['#FE7691', '#FA219C','#774FB5','#6C7AE0','#256AFB','#00D8FF','#84F3D3','#009D62','#66E62C','#FACA57','#FACA57','#FF7437','#E70000']
};
// myChart.setOption(option);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment