加单位

This commit is contained in:
duxp 2023-09-18 17:23:41 +08:00
parent d0ead1dc82
commit 9a2097a7fa
1 changed files with 14 additions and 3 deletions

View File

@ -107,7 +107,7 @@
</div>
<div style="margin: 2% 0 2% 5%;color: #fff;font-size: 12px">
<span class="trade_all_num">全年累计交易数0</span>
<span class="trade_all_money">全年累计交易额0</span>
<span class="trade_all_money">全年累计交易额0万元</span>
</div>
<div class="center_footer_content" style="height: 20vh" id="center_footer_two">
</div>
@ -705,7 +705,7 @@
})
}
//加载指标汇总数据
//加载资源交易数据
function loadDepData(){
$.ajax({
url:'/base/index/tradeEcharts',
@ -715,7 +715,7 @@
let _data = res.data;
let _yData = [],_sData1 = [],_sData2 = [];
$('.trade_all_num').text('全年累计交易数:'+_data.yearCount);
$('.trade_all_money').text('全年累计交易额:'+_data.yearMoney.toFixed(2));
$('.trade_all_money').text('全年累计交易额:'+_data.yearMoney.toFixed(2)+'万元');
_data.list.forEach(item => {
_yData.push(item.month);
_sData1.push(item.count);
@ -728,6 +728,17 @@
trigger: 'axis',
axisPointer: {
type: 'shadow'
},
formatter:function(params){
let _data = params[0].name+'<br/>';
params.forEach((item,index) => {
if(index === 0){
_data+=item.marker+' '+item.seriesName+''+item.data+'<br/>';
}else{
_data+=item.marker+' '+item.seriesName+''+item.data+'万元';
}
})
return _data;
}
},
legend: {