From d344efaa400e441eefa80bb0e4a5435e4d6c2e5d Mon Sep 17 00:00:00 2001 From: chenghx Date: Mon, 10 Sep 2018 16:14:58 +0800 Subject: [PATCH] feat: add trend components --- src/components/chart/Trend.vue | 82 ++++++++++++++++++++++++++ src/components/dashboard/Dashboard.vue | 27 ++++----- 2 files changed, 94 insertions(+), 15 deletions(-) create mode 100644 src/components/chart/Trend.vue diff --git a/src/components/chart/Trend.vue b/src/components/chart/Trend.vue new file mode 100644 index 0000000..bcbfa55 --- /dev/null +++ b/src/components/chart/Trend.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/src/components/dashboard/Dashboard.vue b/src/components/dashboard/Dashboard.vue index 1e276f9..87df5c8 100644 --- a/src/components/dashboard/Dashboard.vue +++ b/src/components/dashboard/Dashboard.vue @@ -7,18 +7,10 @@
-
- 同周比 - 12% - -
-
- 日环比 - 11% - -
+ +
-
日均销售额 ¥ 234.56
+
日均销售额 ¥234.56
@@ -29,7 +21,7 @@
-
日均销售额 ¥ 234.56
+
日访问量 123,4
@@ -40,18 +32,21 @@
-
日均销售额 ¥ 234.56
+
转化率 60%
- +
-
日均销售额 ¥ 234.56
+
+ + +
@@ -122,6 +117,7 @@ import Bar from '../chart/Bar' import RankingList from '../chart/RankingList' import HotSearch from '../analysis/HotSearch' import SalesData from '../analysis/SalesData' +import Trend from '../chart/Trend' const rankList = [] @@ -142,6 +138,7 @@ export default { } }, components: { + Trend, SalesData, HotSearch, RankingList,