Files
dafuweng-saiadmin6.x/saiadmin-artd/src/views/dashboard/console/modules/sales-overview.vue
zhenhui dd264b1e97 1.将部门修改为渠道,并且所有dice_表关联渠道表
2.将所有配置表,记录表设置关联渠道
3.优化后台页面设置
2026-05-19 09:49:02 +08:00

41 lines
960 B
Vue

<template>
<div class="art-card h-105 p-5 mb-5 max-sm:mb-4">
<div class="art-card-header">
<div class="title">
<h4>{{ $t('console.salesOverview.title') }}</h4>
</div>
</div>
<ArtLineChart
height="calc(100% - 40px)"
:data="yData"
:xAxisData="xData"
:showAreaColor="true"
:showAxisLine="false"
/>
</div>
</template>
<script setup lang="ts">
import { fetchRechargeChart } from '@/api/dashboard'
import { getChannelDeptRequestParams, useChannelDeptReload } from '@/composables/useChannelDeptScope'
/**
* 充值金额数据
*/
const yData = ref<number[]>([])
/**
* 日期数据
*/
const xData = ref<string[]>([])
const loadChart = () => {
fetchRechargeChart(getChannelDeptRequestParams()).then((data: any) => {
yData.value = data?.recharge_amount ?? []
xData.value = data?.recharge_date ?? []
})
}
useChannelDeptReload(loadChart)
</script>