diff --git a/src/router/index.js b/src/router/index.js index 47803f3..1df3731 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -91,7 +91,7 @@ const routes = [ path: 'loginStats', name: 'loginStats', component: () => import('../views/PlatformData/UserLoginStats.vue'), - meta: { title: '用户类登录统计', showSidebar: true } + meta: { title: '用户登录统计', showSidebar: true } }, { path: 'activityStats', diff --git a/src/views/PlatformData/UserActivityStats.vue b/src/views/PlatformData/UserActivityStats.vue index a6c532d..06e38c9 100644 --- a/src/views/PlatformData/UserActivityStats.vue +++ b/src/views/PlatformData/UserActivityStats.vue @@ -23,7 +23,7 @@
每日 - 近七日 + 近三十日
@@ -73,8 +73,8 @@ - - + @@ -282,25 +282,15 @@ const updateChart = (data) => { boundaryGap: false, data: dates }, - yAxis: [ - { - type: 'value', - min: 0, - position: 'left', - axisLabel: { formatter: '{value}' } - }, - { - type: 'value', - min: 0, - position: 'right', - axisLabel: { formatter: '{value}' } - } - ], + yAxis: { + type: 'value', + min: 0, + axisLabel: { formatter: '{value}' } + }, series: [ { name: 'DeepChart活跃人数', type: 'line', - yAxisIndex: 0, data: activeUsers, itemStyle: { color: '#e74c3c' }, symbol: 'circle', @@ -310,7 +300,6 @@ const updateChart = (data) => { { name: 'DeepChart使用次数', type: 'line', - yAxisIndex: 1, data: useCounts, itemStyle: { color: '#2ecc71' }, symbol: 'circle', diff --git a/src/views/PlatformData/UserLoginStats.vue b/src/views/PlatformData/UserLoginStats.vue index b04a0ee..a23bcc8 100644 --- a/src/views/PlatformData/UserLoginStats.vue +++ b/src/views/PlatformData/UserLoginStats.vue @@ -8,13 +8,13 @@ > 登录数据 -
各地区登录数据 -
+ --> @@ -403,6 +403,10 @@ const fetchTrendData = async () => { } else { chartTrendTitle.value = '近7天登录趋势'; } + + if (selectedRegion.value && selectedRegion.value !== 'all') { + params.region = selectedRegion.value; + } try { const res = await getUserLoginTrend(params); diff --git a/src/views/PlatformData/UserOverview.vue b/src/views/PlatformData/UserOverview.vue index 3f3616f..fe771a2 100644 --- a/src/views/PlatformData/UserOverview.vue +++ b/src/views/PlatformData/UserOverview.vue @@ -15,6 +15,9 @@ > 数据明细 +
+ * 默认展示截止到今日的数据 +
@@ -48,7 +51,7 @@
- 会员总数 + 会员登陆总数
@@ -628,6 +631,20 @@ onMounted(() => { color: #fff; } +.tab-note { + margin-left: auto; + display: flex; + align-items: center; + font-size: 14px; + color: #666; +} + +.red-asterisk { + color: #ff4d4f; + font-weight: bold; + margin-right: 5px; +} + /* Overview Tab */ .stats-row { display: flex;