From 496e6a2eef4fd32b10430c87b7c0c560ae82d7ae Mon Sep 17 00:00:00 2001 From: math-zhuxy <235934429@qq.com> Date: Sat, 5 Jul 2025 12:56:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + src/views/pages/Analysis.vue | 884 +++++++++++++++++++++++++++++------ 2 files changed, 755 insertions(+), 130 deletions(-) diff --git a/components.d.ts b/components.d.ts index 21fa9bb..b7cb66b 100644 --- a/components.d.ts +++ b/components.d.ts @@ -34,6 +34,7 @@ declare module '@vue/runtime-core' { ElPagination: typeof import('element-plus/es')['ElPagination'] ElProgress: typeof import('element-plus/es')['ElProgress'] ElRadio: typeof import('element-plus/es')['ElRadio'] + ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRow: typeof import('element-plus/es')['ElRow'] ElSelect: typeof import('element-plus/es')['ElSelect'] diff --git a/src/views/pages/Analysis.vue b/src/views/pages/Analysis.vue index 5766284..b98e89f 100644 --- a/src/views/pages/Analysis.vue +++ b/src/views/pages/Analysis.vue @@ -2,17 +2,61 @@
-

数据分析

-
+

订单数据分析

+
+ +
+ +
+ + + + + + + + - + + +
+
+ + +
+
+
+ {{ trendDirection }} {{ Math.abs(trendPercentage).toFixed(1) }}% +
+
{{ periodLabel }}趋势
+
+
+
{{ statistics.growth.toFixed(1) }}%
+
环比增长
+
+
+
{{ statistics.volatility.toFixed(1) }}%
+
波动率
@@ -21,56 +65,159 @@
平均值
{{ statistics.mean }}
+
{{ getDataUnit() }}
最大值
{{ statistics.max }}
+
峰值
最小值
{{ statistics.min }}
+
谷值
-
总数
+
总计
{{ statistics.sum }}
+
累计
标准差
{{ statistics.stdDev }}
+
离散度
+
+
+
中位数
+
{{ statistics.median }}
+
中值
+
+
+ + +
+

数据对比分析

+
+ + 周对比 + 月对比 + 季度对比 + + +
+
+
+
当前周期
+
{{ currentPeriodSum }}
+
+
+
上个周期
+ +
+
+
增长率
+
+ {{ growthRate > 0 ? '+' : '' }}{{ growthRate.toFixed(1) }}% +
+
-

当前数据

+
+

{{ getChartTitle() }}

+
+ + 折线图 + 柱状图 + 面积图 + +
+



-
-

未来趋势

- - 线性回归 - 指数回归 - 多项式回归 - ARIMA回归 - +
+
+

未来趋势预测

+ + 线性回归 + 指数回归 + 多项式回归 + ARIMA回归 + +
+
+ + +
+
+
+
+
+ 预测准确度: + {{ predictionAccuracy.toFixed(1) }}% +
+
+ 置信区间: + 95% +
+ +
+

数据洞察

+
+
+
+
📈
+
+

趋势分析

+

{{ getTrendInsight() }}

+
+
+
+
🎯
+
+

异常检测

+

{{ getAnomalyInsight() }}

+
+
+
+
💡
+
+

建议

+

{{ getRecommendation() }}

+
+
+
+
+
-

编辑数据

+

编辑{{ getDataUnit() }}数据

-
- - +
+ + +
+
+ + + +
+