-
-
{{ item.title }}
-
-
-
-
-
- !
-
-
- {{ item.tooltip }}
-
-
-
+
+
+
{{ item.title }}
+
+
+
+
+
+ !
+
+
+ {{ item.tooltip }}
+
+
+
+
+
+
+
+
+
+ {{
+ calculateGrowthRate(item.value, item.totalValue).isPositive
+ ? '+'
+ : '-'
+ }}{{
+ formatGrowthRate(
+ calculateGrowthRate(item.value, item.totalValue).rate,
+ )
+ }}%
+
+
diff --git a/packages/effects/common-ui/src/ui/dashboard/typing.ts b/packages/effects/common-ui/src/ui/dashboard/typing.ts
index d4332149b..21cd93f05 100644
--- a/packages/effects/common-ui/src/ui/dashboard/typing.ts
+++ b/packages/effects/common-ui/src/ui/dashboard/typing.ts
@@ -7,6 +7,8 @@ interface AnalysisOverviewItem {
totalValue?: number;
value: number;
tooltip?: string;
+ // 环比增长相关字段
+ showGrowthRate?: boolean; // 是否显示环比增长率,默认为false
}
interface WorkbenchProjectItem {