统计:会员终端统计,处理未知终端情况

(cherry picked from commit edfd03903f)
This commit is contained in:
owen 2023-10-16 14:26:04 +08:00 committed by shizhong
parent d46adb0683
commit 35803ba77a

View File

@ -282,6 +282,7 @@ const getMemberSexStatisticsList = async () => {
const getMemberTerminalStatisticsList = async () => {
const list = await MemberStatisticsApi.getMemberTerminalStatisticsList()
const dictDataList = getIntDictOptions(DICT_TYPE.TERMINAL)
dictDataList.push({ label: '未知', value: null } as any)
terminalChartOptions.series![0].data = dictDataList.map((dictData: DictDataType) => {
const userCount = list.find(
(item: MemberTerminalStatisticsRespVO) => item.terminal === dictData.value