fix(custom): 去除后结订单统计多余逻辑
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
<n-gi>
|
<n-gi>
|
||||||
<n-card rounded-5 style="background-color: #797979">
|
<n-card rounded-5 style="background-color: #797979">
|
||||||
<n-statistic label="抹零(元)" tabular-nums>
|
<n-statistic label="抹零(元)" tabular-nums>
|
||||||
<n-number-animation :from="0" :to="cardData.zero" />
|
<n-number-animation :from="0" :to="cardData.zero" :precision="2" />
|
||||||
</n-statistic>
|
</n-statistic>
|
||||||
</n-card>
|
</n-card>
|
||||||
</n-gi>
|
</n-gi>
|
||||||
@@ -121,12 +121,6 @@ const get_data = async () => {
|
|||||||
option.value.series[0].data = []
|
option.value.series[0].data = []
|
||||||
const res = await api.getData()
|
const res = await api.getData()
|
||||||
cardData.value = res.data
|
cardData.value = res.data
|
||||||
for (let i = 0; i < 100; i++) {
|
|
||||||
res.data.data.push({
|
|
||||||
Name: '商品' + i,
|
|
||||||
Price: 2000 - i * 20,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
for (let i = 0; i < res.data.data.length; i++) {
|
for (let i = 0; i < res.data.data.length; i++) {
|
||||||
option.value.xAxis.data.push(res.data.data[i].Name)
|
option.value.xAxis.data.push(res.data.data[i].Name)
|
||||||
option.value.series[0].data.push(res.data.data[i].Price)
|
option.value.series[0].data.push(res.data.data[i].Price)
|
||||||
|
|||||||
Reference in New Issue
Block a user