|
@@ -364,7 +364,7 @@ export default {
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
|
- name: "在线用户数",
|
|
|
+ name: "",
|
|
|
top: 10,
|
|
|
color: "#00A6FC",
|
|
|
type: "bar",
|
|
@@ -422,7 +422,8 @@ export default {
|
|
|
chartInstance: null,
|
|
|
option: {
|
|
|
tooltip: {
|
|
|
- trigger: "item"
|
|
|
+ trigger: "item",
|
|
|
+ formatter:"{b}:{d}%"
|
|
|
},
|
|
|
legend: {
|
|
|
orient: "vertical",
|
|
@@ -501,6 +502,15 @@ export default {
|
|
|
if (res.data.errno == 0) {
|
|
|
this.options.yAxis.data = res.data.data.cityList.reverse();
|
|
|
this.options.series[0].data = res.data.data.data.reverse();
|
|
|
+ if(this.cityDataType==1){
|
|
|
+ this.options.series[0].name="业绩"
|
|
|
+ }else if(this.cityDataType==2){
|
|
|
+ this.options.series[0].name="订单量"
|
|
|
+ }else if(this.cityDataType==3){
|
|
|
+ this.options.series[0].name="客单价"
|
|
|
+ }else if(this.cityDataType==4){
|
|
|
+ this.options.series[0].name="线索量"
|
|
|
+ }
|
|
|
this.initBarChart();
|
|
|
}
|
|
|
})
|