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

1111

parent a2a3c5dd
...@@ -271,6 +271,7 @@ export default { ...@@ -271,6 +271,7 @@ export default {
rjGuest:[], rjGuest:[],
//年份列表 //年份列表
yearList:[], yearList:[],
Mydatalist:[],
} }
}, },
watch: { watch: {
...@@ -419,7 +420,35 @@ export default { ...@@ -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){ getName(item){
return item.replace('印象',''); return item.replace('印象','');
...@@ -552,202 +581,203 @@ export default { ...@@ -552,202 +581,203 @@ export default {
} }
} }
], ],
series: [ series:this.Mydatalist,
{ // series: [
name:'成都', // {
type:'bar', // name:'成都',
data:that.cdList, // type:'bar',
itemStyle: { // data:that.cdList,
normal: { // itemStyle: {
// color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [ // normal: {
// { offset: 1, color: "#256AFB" }, // // color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [
// { offset: 0, color: "#FE7691" } // // { offset: 1, color: "#256AFB" },
// ]), // // { offset: 0, color: "#FE7691" }
} // // ]),
}, // }
}, // },
{ // },
name:'昆明', // {
type:'bar', // name:'昆明',
data:that.kmList // type:'bar',
}, // data:that.kmList
{ // },
name:'西安', // {
type:'bar', // name:'西安',
data:that.xaList // type:'bar',
}, // data:that.xaList
{ // },
name:'武汉', // {
type:'bar', // name:'武汉',
data:that.whList // type:'bar',
}, // data:that.whList
{ // },
name:'南宁', // {
type:'bar', // name:'南宁',
data:that.nnList // type:'bar',
}, // data:that.nnList
{ // },
name:'贵阳', // {
type:'bar', // name:'贵阳',
data:that.gyList // type:'bar',
}, // data:that.gyList
{ // },
name:'南昌', // {
type:'bar', // name:'南昌',
data:that.ncList // type:'bar',
}, // data:that.ncList
{ // },
name:'合肥', // {
type:'bar', // name:'合肥',
data:that.hfList // type:'bar',
}, // data:that.hfList
{ // },
name:'长沙', // {
type:'bar', // name:'长沙',
data:that.csList // type:'bar',
}, // data:that.csList
{ // },
name:'厦门', // {
type:'bar', // name:'厦门',
data:that.xmList // type:'bar',
}, // data:that.xmList
{ // },
name:'南京', // {
type:'bar', // name:'南京',
data:that.njList // type:'bar',
}, // data:that.njList
{ // },
name:'重庆', // {
type:'bar', // name:'重庆',
data:that.cqList // type:'bar',
}, // data:that.cqList
{ // },
name:'入境', // {
type:'bar', // name:'入境',
data:that.rjList // type:'bar',
}, // data:that.rjList
{ // },
// {
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
hoverAnimation: true, // hoverAnimation: true,
yAxisIndex:1, // yAxisIndex:1,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.cdGuest // data:that.cdGuest
}, // },
{ // {
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
yAxisIndex:1, // yAxisIndex:1,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.kmGuest // data:that.kmGuest
},{ // },{
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
yAxisIndex:1, // yAxisIndex:1,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.xaGuest // data:that.xaGuest
},{ // },{
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
yAxisIndex:1, // yAxisIndex:1,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.whGuest // data:that.whGuest
},{ // },{
yAxisIndex:1, // yAxisIndex:1,
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.nnGuest // data:that.nnGuest
},{ // },{
yAxisIndex:1, // yAxisIndex:1,
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.gyGuest // data:that.gyGuest
},{ // },{
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
yAxisIndex:1, // yAxisIndex:1,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.ncGuest // data:that.ncGuest
}, // },
{ // {
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
yAxisIndex:1, // yAxisIndex:1,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.hfGuest // data:that.hfGuest
}, // },
{ // {
yAxisIndex:1, // yAxisIndex:1,
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.csGuest // data:that.csGuest
}, // },
{ // {
yAxisIndex:1, // yAxisIndex:1,
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.xmGuest // data:that.xmGuest
}, // },
{ // {
yAxisIndex:1, // yAxisIndex:1,
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.njGuest // data:that.njGuest
}, // },
{ // {
yAxisIndex:1, // yAxisIndex:1,
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.cqGuest // data:that.cqGuest
}, // },
{ // {
yAxisIndex:1, // yAxisIndex:1,
type:'line', // type:'line',
symbolSize: 2, // symbolSize: 2,
hoverAnimation: true, // hoverAnimation: true,
smooth: true, // smooth: true,
showSymbol: false, // showSymbol: false,
data:that.rjGuest // data:that.rjGuest
} // }
], // ],
color: ['#FE7691', '#FA219C','#774FB5','#6C7AE0','#256AFB','#00D8FF','#84F3D3','#009D62','#66E62C','#FACA57','#FACA57','#FF7437','#E70000'] color: ['#FE7691', '#FA219C','#774FB5','#6C7AE0','#256AFB','#00D8FF','#84F3D3','#009D62','#66E62C','#FACA57','#FACA57','#FF7437','#E70000']
}; };
// myChart.setOption(option); // 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