From aa8330438876830dede5aad80c3f2d9ac34be1fa Mon Sep 17 00:00:00 2001
From: nikogu <644506165@qq.com>
Date: Fri, 15 Sep 2017 10:39:24 +0800
Subject: [PATCH] clost: https://github.com/ant-design/test2/issues/12
---
src/routes/Dashboard/Analysis.js | 72 +++++++++++++++++++++---------
src/routes/Dashboard/Analysis.less | 9 ++--
2 files changed, 57 insertions(+), 24 deletions(-)
diff --git a/src/routes/Dashboard/Analysis.js b/src/routes/Dashboard/Analysis.js
index 014289f9..c5688db3 100644
--- a/src/routes/Dashboard/Analysis.js
+++ b/src/routes/Dashboard/Analysis.js
@@ -88,7 +88,7 @@ export default class Analysis extends Component {
salesTypeData,
salesTypeDataOnline,
salesTypeDataOffline,
- } = chart;
+ } = chart;
const salesPieData = salesType === 'all' ?
salesTypeData
@@ -253,30 +253,60 @@ export default class Analysis extends Component {
-
+
+
+
- 门店销售额排名
-
- {
- rankingListData.map((item, i) => (
- -
- {i + 1}
- {item.title}
- {numeral(item.total).format('0,0')}
-
- ))
- }
-
+
+
门店销售额排名
+
+ {
+ rankingListData.map((item, i) => (
+ -
+ {i + 1}
+ {item.title}
+ {numeral(item.total).format('0,0')}
+
+ ))
+ }
+
+
-
- 访问量没有, 因为偷懒了
+
+
+
+
+
+
+
+
+
+
门店访问量排名
+
+ {
+ rankingListData.map((item, i) => (
+ -
+ {i + 1}
+ {item.title}
+ {numeral(item.total).format('0,0')}
+
+ ))
+ }
+
+
+
+
@@ -390,4 +420,4 @@ export default class Analysis extends Component {
);
}
-}
+ }
diff --git a/src/routes/Dashboard/Analysis.less b/src/routes/Dashboard/Analysis.less
index 69eb7a1d..e9732adb 100644
--- a/src/routes/Dashboard/Analysis.less
+++ b/src/routes/Dashboard/Analysis.less
@@ -57,10 +57,13 @@
}
.salesCard {
+ .salesBar {
+ padding: 0 0 24px 24px;
+ }
+ .salesRank {
+ padding: 0 24px 24px 0;
+ }
:global {
- .ant-tabs-content {
- padding: 0 24px 24px 24px;
- }
.ant-tabs-bar {
padding-left: 24px;
.ant-tabs-nav .ant-tabs-tab {
--
GitLab