feat:【mall 商城】商城首页的迁移【antd】45%:terminal-card 修复缺陷
This commit is contained in:
@@ -24,7 +24,7 @@ const getMemberTerminalStatisticsList = async () => {
|
||||
loading.value = true;
|
||||
try {
|
||||
const list = await MemberStatisticsApi.getMemberTerminalStatisticsList();
|
||||
const dictDataList = getDictOptions('terminal');
|
||||
const dictDataList = getDictOptions('terminal', 'number');
|
||||
const chartData = dictDataList.map((dictData: any) => {
|
||||
const userCount = list.find(
|
||||
(item: any) => item.terminal === dictData.value,
|
||||
@@ -49,7 +49,7 @@ onMounted(() => {
|
||||
<template>
|
||||
<Card :bordered="false" title="会员终端" class="h-full">
|
||||
<Spin :spinning="loading">
|
||||
<EchartsUI ref="chartRef" class="h-[300px] w-full" />
|
||||
<EchartsUI ref="chartRef" />
|
||||
</Spin>
|
||||
</Card>
|
||||
</template>
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/**
|
||||
* 会员终端统计图配置
|
||||
*/
|
||||
/** 会员终端统计图配置 */
|
||||
export function getTerminalChartOptions(data: any[]): any {
|
||||
return {
|
||||
tooltip: {
|
||||
@@ -12,7 +10,6 @@ export function getTerminalChartOptions(data: any[]): any {
|
||||
orient: 'vertical',
|
||||
left: 'right',
|
||||
},
|
||||
roseType: 'area',
|
||||
series: [
|
||||
{
|
||||
name: '会员终端',
|
||||
@@ -28,4 +25,3 @@ export function getTerminalChartOptions(data: any[]): any {
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user