This commit is contained in:
zmj 2024-06-19 18:18:18 +08:00
parent fdffb4ac50
commit f341b32bf9
1 changed files with 13 additions and 5 deletions

View File

@ -33,7 +33,7 @@
</div>
</div>
</el-card>
<el-card :key="date">
<el-card :key="date" v-loading="!visitorOption.xAxis.data.length">
<template #header>
营业趋势
</template>
@ -107,7 +107,15 @@ date.value[1] = getFirstAndLastDayOfCurrentMonth().lastDay;
const formData = ref({
order_amount: 0
order_amount: 0,
receipt_amount: 0,
income_amount: 0,
verify_amount: 0,
cashier_amount: 0,
balance_amount: 0,
user_number: 0,
cash_amount: 0,
})
@ -184,20 +192,20 @@ const visitorOption = reactive({
},
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
data: []
},
yAxis: {
type: 'value'
},
series: [
{
data: [820, 932, 901, 934, 1290, 1330, 1320],
data: [],
type: 'line',
smooth: true,
name: "门店收款"
},
{
data: [15, 12, 14, 78, 96, 54, 85],
data: [],
type: 'line',
smooth: true,
name: '新增用户'