Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
661e72bc
authored
Oct 16, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计:修复错误
parent
8dec8edc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
src/views/mall/statistics/member/index.vue
+10
-10
src/views/mall/statistics/trade/index.vue
+0
-1
No files found.
src/views/mall/statistics/member/index.vue
View file @
661e72bc
...
@@ -145,7 +145,7 @@ const summary = ref<MemberSummaryRespVO>() // 会员统计数据
...
@@ -145,7 +145,7 @@ const summary = ref<MemberSummaryRespVO>() // 会员统计数据
const
areaStatisticsList
=
shallowRef
<
MemberAreaStatisticsRespVO
[]
>
()
// 省份会员统计
const
areaStatisticsList
=
shallowRef
<
MemberAreaStatisticsRespVO
[]
>
()
// 省份会员统计
// 注册地图
// 注册地图
echarts
?.
registerMap
(
'china'
,
china
!
)
echarts
?.
registerMap
(
'china'
,
china
as
any
)
/** 会员终端统计图配置 */
/** 会员终端统计图配置 */
const
terminalChartOptions
=
reactive
<
EChartsOption
>
({
const
terminalChartOptions
=
reactive
<
EChartsOption
>
({
...
@@ -207,8 +207,8 @@ const areaChartOptions = reactive<EChartsOption>({
...
@@ -207,8 +207,8 @@ const areaChartOptions = reactive<EChartsOption>({
formatter
:
(
params
:
any
)
=>
{
formatter
:
(
params
:
any
)
=>
{
return
`
${
params
?.
data
?.
areaName
||
params
?.
name
}
<
br
/>
return
`
${
params
?.
data
?.
areaName
||
params
?.
name
}
<
br
/>
会员数量:
$
{
params
?.
data
?.
userCount
||
0
}
<
br
/>
会员数量:
$
{
params
?.
data
?.
userCount
||
0
}
<
br
/>
订单创建数量:
$
{
params
?.
data
?.
orderCreateCount
||
0
}
<
br
/>
订单创建数量:
$
{
params
?.
data
?.
orderCreate
User
Count
||
0
}
<
br
/>
订单支付数量:
$
{
params
?.
data
?.
orderPayCount
||
0
}
<
br
/>
订单支付数量:
$
{
params
?.
data
?.
orderPay
User
Count
||
0
}
<
br
/>
订单支付金额:
$
{
fenToYuan
(
params
?.
data
?.
orderPayPrice
||
0
)}
`
订单支付金额:
$
{
fenToYuan
(
params
?.
data
?.
orderPayPrice
||
0
)}
`
}
}
},
},
...
@@ -254,20 +254,20 @@ const getMemberAreaStatisticsList = async () => {
...
@@ -254,20 +254,20 @@ const getMemberAreaStatisticsList = async () => {
})
})
let min = 0
let min = 0
let max = 0
let max = 0
areaChartOptions.series[0].data = areaStatisticsList.value.map((item) => {
areaChartOptions.series
!
[0].data = areaStatisticsList.value.map((item) => {
min = Math.min(min, item.orderPay
Count
)
min = Math.min(min, item.orderPay
UserCount || 0
)
max = Math.max(max, item.orderPay
Count
)
max = Math.max(max, item.orderPay
UserCount || 0
)
return { ...item, name: item.areaName, value: item.orderPayCount || 0 }
return { ...item, name: item.areaName, value: item.orderPay
User
Count || 0 }
})
})
areaChartOptions.visualMap
.min
= min
areaChartOptions.visualMap
!['min']
= min
areaChartOptions.visualMap
.max
= max
areaChartOptions.visualMap
!['max']
= max
}
}
/** 按照性别,查询会员统计列表 */
/** 按照性别,查询会员统计列表 */
const getMemberSexStatisticsList = async () => {
const getMemberSexStatisticsList = async () => {
const list = await MemberStatisticsApi.getMemberSexStatisticsList()
const list = await MemberStatisticsApi.getMemberSexStatisticsList()
const dictDataList = getIntDictOptions(DICT_TYPE.SYSTEM_USER_SEX)
const dictDataList = getIntDictOptions(DICT_TYPE.SYSTEM_USER_SEX)
sexChartOptions.series[0].data = dictDataList.map((dictData: DictDataType) => {
sexChartOptions.series
!
[0].data = dictDataList.map((dictData: DictDataType) => {
const userCount = list.find((item: MemberSexStatisticsRespVO) => item.sex === dictData.value)
const userCount = list.find((item: MemberSexStatisticsRespVO) => item.sex === dictData.value)
?.userCount
?.userCount
return {
return {
...
...
src/views/mall/statistics/trade/index.vue
View file @
661e72bc
...
@@ -225,7 +225,6 @@ defineOptions({ name: 'TradeStatistics' })
...
@@ -225,7 +225,6 @@ defineOptions({ name: 'TradeStatistics' })
const
message
=
useMessage
()
// 消息弹窗
const
message
=
useMessage
()
// 消息弹窗
const
loading
=
ref
(
true
)
// 加载中
const
trendLoading
=
ref
(
true
)
// 交易状态加载中
const
trendLoading
=
ref
(
true
)
// 交易状态加载中
const
exportLoading
=
ref
(
false
)
// 导出的加载中
const
exportLoading
=
ref
(
false
)
// 导出的加载中
const
summary
=
ref
<
DataComparisonRespVO
<
TradeSummaryRespVO
>>
()
// 交易统计数据
const
summary
=
ref
<
DataComparisonRespVO
<
TradeSummaryRespVO
>>
()
// 交易统计数据
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment