|
@@ -25,7 +25,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="middleBox">
|
|
|
- <div class="topTitle" style="width: 240px;">
|
|
|
+ <div class="topTitle" style="width: 60%;">
|
|
|
<div>搜索访问量分布(pv)</div>
|
|
|
<div>{{format_number(barTotalNum)}}
|
|
|
</div>
|
|
@@ -206,9 +206,9 @@ export default {
|
|
|
let resStr = ''
|
|
|
for (let i=0;i<seriesData.length;i++) {
|
|
|
if(i==0){
|
|
|
- resStr=resStr+"<div class='tooltipBox' style='margin-top:0px'><div class='tooltipLeft' style='background:"+that.colorbarArr[i]+"'></div> "+that.format_number(seriesData[i].data[dataIndex].value)+" "+seriesData[i].percentage[dataIndex]*100+"%</div>"
|
|
|
+ resStr=resStr+"<div class='tooltipBox' style='margin-top:0px'><div class='tooltipLeft' style='background:"+that.colorbarArr[i]+"'></div> "+that.format_number(seriesData[i].data[dataIndex].value)+" "+that.accMul(seriesData[i].percentage[dataIndex],100)+"%</div>"
|
|
|
}else{
|
|
|
- resStr=resStr+"<div class='tooltipBox'><div class='tooltipLeft' style='background:"+that.colorbarArr[i]+"'></div> "+that.format_number(seriesData[i].data[dataIndex].value)+" "+seriesData[i].percentage[dataIndex]*100+"%</div>"
|
|
|
+ resStr=resStr+"<div class='tooltipBox'><div class='tooltipLeft' style='background:"+that.colorbarArr[i]+"'></div> "+that.format_number(seriesData[i].data[dataIndex].value)+" "+that.accMul(seriesData[i].percentage[dataIndex],100)+"%</div>"
|
|
|
}
|
|
|
}
|
|
|
//const { name, value } = params
|
|
@@ -315,6 +315,20 @@ export default {
|
|
|
pieChart0.setOption(option0);
|
|
|
})
|
|
|
},
|
|
|
+ accMul(arg1, arg2){
|
|
|
+ var m = 0, s1 = arg1.toString(), s2 = arg2.toString();
|
|
|
+ try {
|
|
|
+ m += s1.split(".")[1].length;
|
|
|
+ }
|
|
|
+ catch (e) {
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ m += s2.split(".")[1].length;
|
|
|
+ }
|
|
|
+ catch (e) {
|
|
|
+ }
|
|
|
+ return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m);
|
|
|
+ },
|
|
|
// 饼状图
|
|
|
getKnowledgeTypeAmount(){
|
|
|
let that = this
|
|
@@ -586,6 +600,7 @@ export default {
|
|
|
border-radius: 10px;
|
|
|
height: 24.896vw;
|
|
|
margin-top: 1.25vw;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
.bottomBox{
|
|
|
width: 100%;
|
|
@@ -598,12 +613,14 @@ export default {
|
|
|
background: #fff;
|
|
|
border-radius: 10px;
|
|
|
width: 49.6vw;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
.bottomBoxRight{
|
|
|
height: 20vw;
|
|
|
background: #fff;
|
|
|
border-radius: 10px;
|
|
|
width: 26vw;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
.numBox img{
|
|
|
width: 5.15625vw;
|