Commit 328622c3 by 匡雅琴

添加同比、环比

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