diff --git a/src/views/PlatformData/UserOverview.vue b/src/views/PlatformData/UserOverview.vue
index 171e2b5..27f3a76 100644
--- a/src/views/PlatformData/UserOverview.vue
+++ b/src/views/PlatformData/UserOverview.vue
@@ -124,22 +124,22 @@
- {{ scope.row.dailyNew }}
+ {{ scope.row.dailyNew }}
- {{ scope.row.weeklyNew }}
+ {{ scope.row.weeklyNew }}
- {{ scope.row.monthlyNew }}
+ {{ scope.row.monthlyNew }}
- {{ scope.row.periodNew }}
+ {{ scope.row.periodNew }}
@@ -243,6 +243,12 @@ const getGrowthText = (growthStr) => {
return `${prefix}${arrow} ${value}`;
};
+// 获取表格数值颜色样式
+const getValueColorClass = (val) => {
+ if (!val || val === '-') return '';
+ return String(val).startsWith('-') ? 'text-red' : 'text-green';
+};
+
// 格式化日期
const formatDate = (date) => {
if (!date) return '';