diff --git a/src/views/mall/statistics/member/index.vue b/src/views/mall/statistics/member/index.vue index 4790bd5a..2d4348e9 100644 --- a/src/views/mall/statistics/member/index.vue +++ b/src/views/mall/statistics/member/index.vue @@ -145,7 +145,7 @@ const summary = ref() // 会员统计数据 const areaStatisticsList = shallowRef() // 省份会员统计 // 注册地图 -echarts?.registerMap('china', china!) +echarts?.registerMap('china', china as any) /** 会员终端统计图配置 */ const terminalChartOptions = reactive({ @@ -207,8 +207,8 @@ const areaChartOptions = reactive({ formatter: (params: any) => { return `${params?.data?.areaName || params?.name}
会员数量:${params?.data?.userCount || 0}
-订单创建数量:${params?.data?.orderCreateCount || 0}
-订单支付数量:${params?.data?.orderPayCount || 0}
+订单创建数量:${params?.data?.orderCreateUserCount || 0}
+订单支付数量:${params?.data?.orderPayUserCount || 0}
订单支付金额:${fenToYuan(params?.data?.orderPayPrice || 0)}` } }, @@ -254,20 +254,20 @@ const getMemberAreaStatisticsList = async () => { }) let min = 0 let max = 0 - areaChartOptions.series[0].data = areaStatisticsList.value.map((item) => { - min = Math.min(min, item.orderPayCount) - max = Math.max(max, item.orderPayCount) - return { ...item, name: item.areaName, value: item.orderPayCount || 0 } + areaChartOptions.series![0].data = areaStatisticsList.value.map((item) => { + min = Math.min(min, item.orderPayUserCount || 0) + max = Math.max(max, item.orderPayUserCount || 0) + return { ...item, name: item.areaName, value: item.orderPayUserCount || 0 } }) - areaChartOptions.visualMap.min = min - areaChartOptions.visualMap.max = max + areaChartOptions.visualMap!['min'] = min + areaChartOptions.visualMap!['max'] = max } /** 按照性别,查询会员统计列表 */ const getMemberSexStatisticsList = async () => { const list = await MemberStatisticsApi.getMemberSexStatisticsList() 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) ?.userCount return { diff --git a/src/views/mall/statistics/trade/index.vue b/src/views/mall/statistics/trade/index.vue index 7a7b905c..b7dfc667 100644 --- a/src/views/mall/statistics/trade/index.vue +++ b/src/views/mall/statistics/trade/index.vue @@ -225,7 +225,6 @@ defineOptions({ name: 'TradeStatistics' }) const message = useMessage() // 消息弹窗 -const loading = ref(true) // 加载中 const trendLoading = ref(true) // 交易状态加载中 const exportLoading = ref(false) // 导出的加载中 const summary = ref>() // 交易统计数据