统计:处理会员性别统计,存在未知的情况
This commit is contained in:
parent
661e72bcfd
commit
2bfc9c3b13
@ -267,6 +267,7 @@ const getMemberAreaStatisticsList = async () => {
|
||||
const getMemberSexStatisticsList = async () => {
|
||||
const list = await MemberStatisticsApi.getMemberSexStatisticsList()
|
||||
const dictDataList = getIntDictOptions(DICT_TYPE.SYSTEM_USER_SEX)
|
||||
dictDataList.push({ label: '未知', value: null } as any)
|
||||
sexChartOptions.series![0].data = dictDataList.map((dictData: DictDataType) => {
|
||||
const userCount = list.find((item: MemberSexStatisticsRespVO) => item.sex === dictData.value)
|
||||
?.userCount
|
||||
|
Loading…
Reference in New Issue
Block a user