update
parent
10ef0298e6
commit
3074cc5e09
|
|
@ -26,7 +26,7 @@
|
||||||
<div class="chart-content" :ref="el => chartRefs[index] = el"></div>
|
<div class="chart-content" :ref="el => chartRefs[index] = el"></div>
|
||||||
<div class="max-date">历史峰值:{{ chart.maxDate }} <span style="color: #ff3333; font-weight: bold; opacity: 1;">{{
|
<div class="max-date">历史峰值:{{ chart.maxDate }} <span style="color: #ff3333; font-weight: bold; opacity: 1;">{{
|
||||||
Number(chart.maxValue).toLocaleString()
|
Number(chart.maxValue).toLocaleString()
|
||||||
}}</span><span style="font-size: 14px;">人</span>
|
}}</span><span style="font-size: 14px;">人次</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -80,7 +80,7 @@ const getBaifenbiPercentage = (chart) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const percentage = ((chart.totalSum - chart.comparePercent) / chart.comparePercent) * 100
|
const percentage = ((chart.totalSum - chart.comparePercent) / chart.comparePercent) * 100
|
||||||
|
|
||||||
console.log('====== 百分比计算详情 ======')
|
console.log('====== 百分比计算详情 ======')
|
||||||
console.log('今日累计客流 (totalSum):', chart.totalSum)
|
console.log('今日累计客流 (totalSum):', chart.totalSum)
|
||||||
console.log('对比日累计客流 (comparePercent):', chart.comparePercent)
|
console.log('对比日累计客流 (comparePercent):', chart.comparePercent)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue