Skip to content

Commit 2bfc9c3

Browse files
committed
统计:处理会员性别统计,存在未知的情况
1 parent 661e72b commit 2bfc9c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/views/mall/statistics/member/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ const getMemberAreaStatisticsList = async () => {
267267
const getMemberSexStatisticsList = async () => {
268268
const list = await MemberStatisticsApi.getMemberSexStatisticsList()
269269
const dictDataList = getIntDictOptions(DICT_TYPE.SYSTEM_USER_SEX)
270+
dictDataList.push({ label: '未知', value: null } as any)
270271
sexChartOptions.series![0].data = dictDataList.map((dictData: DictDataType) => {
271272
const userCount = list.find((item: MemberSexStatisticsRespVO) => item.sex === dictData.value)
272273
?.userCount

0 commit comments

Comments
 (0)