Commit 328622c3 by 匡雅琴

添加同比、环比

1 parent d72730cb
......@@ -19,11 +19,11 @@
<div class="ratio">
<div class="ratio-left">
周同比
<span class="positive">12%</span>
<span class="positive">{{toPercent(tb)}}</span>
</div>
<div class="ratio-right">
日环比
<span class="negative">-7%</span>
<span class="negative">{{toPercent(hb)}}</span>
</div>
</div>
<BarChart ref="amountChartRef" domId="amountChart" :dataList.sync="dataList.amountDataList" :colorList="color.amountColorList" :tooltipFormatterObj="tooltips.outputvalueTooltip"></BarChart>
......@@ -79,6 +79,8 @@ export default {
},
data() {
return {
tb: '',
hb: '',
outputvalue: '',
orderNum: '',
activityNum: '',
......@@ -119,6 +121,8 @@ export default {
async getAllOverview() {
const _result = await this.api.crowdFunding.getAllOverview()
const _data = _result.data.dataList[0]
this.tb = _data.tb
this.hb = _data.hb
this.outputvalue = _data.outputvalue
this.orderNum = _data.orderNum
this.activityNum = _data.activityNum
......
......@@ -90,7 +90,9 @@ export default {
})
},
mounted() {},
mounted() {
console.log(this, 'thid');
},
methods: {
async getGLOverview(Month) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!