diff --git a/src/views/Statistics/BuildingContrast.vue b/src/views/Statistics/BuildingContrast.vue index dea30c0..9c42f86 100644 --- a/src/views/Statistics/BuildingContrast.vue +++ b/src/views/Statistics/BuildingContrast.vue @@ -375,6 +375,7 @@ export default { pamaet.dateType=this.TimetoAhoose } this.$api.http.houseData(pamaet).then((res) => { + console.log(res) let arr=[] res.data.list.map(item=>{ let obj={} @@ -382,6 +383,7 @@ export default { obj.zxl=item.prohibitedCustomer arr.push(obj) }) + console.log(arr) arr=this.dealData(arr) this.objList3={ avg: res.data.avg || 0, @@ -389,6 +391,7 @@ export default { sum:res.data.sum || 0, list:arr || [] } + console.log(this.objList3) }) }, houseData4(){ @@ -479,7 +482,7 @@ export default { dealData(arr){ let num=Math.max.apply(Math, arr.map(function (o) { return o.zxl })) //结果:3 arr.map(item=>{ - item.zxl1=Math.floor(item.zxl/num*100) + item.zxl1=Math.floor(item.zxl/num*100) || 0; }) return arr }, diff --git a/src/views/Statistics/ConsultantBrand.vue b/src/views/Statistics/ConsultantBrand.vue index 374e5f0..357fb35 100644 --- a/src/views/Statistics/ConsultantBrand.vue +++ b/src/views/Statistics/ConsultantBrand.vue @@ -88,6 +88,9 @@ + + + + +
diff --git a/src/views/Statistics/MentoringAbility.vue b/src/views/Statistics/MentoringAbility.vue index 8e1e3d1..c0970a8 100644 --- a/src/views/Statistics/MentoringAbility.vue +++ b/src/views/Statistics/MentoringAbility.vue @@ -851,9 +851,6 @@ export default { var myChart = echarts.init(chartDom); var option; option = { - tooltip: { - trigger: "axis", - }, legend: { data: [this.consultantname,this.Packname], top: "6", @@ -881,32 +878,6 @@ export default { }, }, }, - yAxis: { - type: "value", - splitNumber: 4, - axisLabel: { - //重点在这一块,其余可以忽略 - textStyle: { - color: "#212121", //更改坐标轴文字颜色 - }, - }, - axisLine: { - lineStyle: { - ype: "solid", - color: "#DDE1EE", //x线的颜色 - width: "1", //坐标线的宽度 - }, - }, - splitLine: { - lineStyle: { - type: "dashed", // y轴分割线类型 - }, - }, - axisTick: { - //y轴刻度线 - show: false, - }, - }, series: [ { name: this.consultantname, @@ -922,6 +893,73 @@ export default { } ], }; + if(data1=='data3'){ + option.tooltip={ + trigger: 'axis', + formatter: function (params) { + let src= '

'+params[0].seriesName+':'+params[0].data+'%'+'

'+'

'+params[1].seriesName+':'+ params[1].data+'%'+'

'; + return src + } + }; + option.yAxis={ + type: 'value', + splitNumber:5, + max:100, + min:0, + axisLabel: { //重点在这一块,其余可以忽略 + textStyle: { + color: '#212121', //更改坐标轴文字颜色 + } + }, + axisLine: { + lineStyle: { + ype: 'solid', + color: '#DDE1EE',//x线的颜色 + width:'1'//坐标线的宽度 + } + }, + splitLine: { + lineStyle: { + type: 'dashed' // y轴分割线类型 + } + }, + axisTick: { //y轴刻度线 + show: false + }, + } + }else{ + option.tooltip={ + trigger: 'axis', + } + option.yAxis={ + type: 'value', + splitNumber:5, + min:0, + minInterval: 1, + axisLabel: { //重点在这一块,其余可以忽略 + textStyle: { + color: '#212121', //更改坐标轴文字颜色 + } + }, + axisLine: { + lineStyle: { + ype: 'solid', + color: '#DDE1EE',//x线的颜色 + width:'1'//坐标线的宽度 + } + }, + splitLine: { + lineStyle: { + type: 'dashed' // y轴分割线类型 + } + }, + axisTick: { //y轴刻度线 + show: false + }, + }; + } + + option && myChart.setOption(option); window.addEventListener("resize", () => { myChart.resize(); diff --git a/src/views/Statistics/ReceptionStatistical.vue b/src/views/Statistics/ReceptionStatistical.vue index aeb166c..651651c 100644 --- a/src/views/Statistics/ReceptionStatistical.vue +++ b/src/views/Statistics/ReceptionStatistical.vue @@ -109,10 +109,17 @@ + + + + + +