From 08193e523dde619e0d04066713d6f0931fc600fc Mon Sep 17 00:00:00 2001 From: xuyiming Date: Thu, 2 Jul 2020 18:22:55 +0800 Subject: [PATCH] =?UTF-8?q?starlist=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/e-charts/starlist.vue | 122 +++++++++++++++++++++++++ src/components/e-charts/toplist.vue | 30 ++---- src/pages/data-analysis/my-service.vue | 8 +- 3 files changed, 138 insertions(+), 22 deletions(-) diff --git a/src/components/e-charts/starlist.vue b/src/components/e-charts/starlist.vue index e69de29..57f83de 100644 --- a/src/components/e-charts/starlist.vue +++ b/src/components/e-charts/starlist.vue @@ -0,0 +1,122 @@ + + + + + + + diff --git a/src/components/e-charts/toplist.vue b/src/components/e-charts/toplist.vue index d3a27c0..969822e 100644 --- a/src/components/e-charts/toplist.vue +++ b/src/components/e-charts/toplist.vue @@ -16,12 +16,12 @@

-
-
-
+ @@ -77,8 +77,8 @@ export default { }, }, methods: { - getBarWidth(value) { - return Math.min((value / this.targetValue) * 100, 100) + "%"; + getPercent(value) { + return Math.min((value / this.targetValue) * 100, 100); }, }, }; @@ -94,6 +94,7 @@ export default { display: flex; justify-content: flex-start; align-items: center; + margin-right: 10px; margin-bottom: 18px; } .item_index { @@ -122,7 +123,6 @@ export default { } .item_detail { flex-grow: 1; - margin-right: 10px; } .item_info > span:first-child { flex-grow: 1; @@ -137,16 +137,6 @@ export default { color: #0d1847; } .item_progress { - height: 5px; - border-radius: 2px; - overflow: hidden; - background-color: #c9cedd; - margin-top: 7px; -} -.item_progress > .item_progress_bar { - height: inherit; - border-radius: inherit; - overflow: inherit; - background-color: #e56600; + margin-top: 6px; } diff --git a/src/pages/data-analysis/my-service.vue b/src/pages/data-analysis/my-service.vue index 07804ec..b5b8858 100644 --- a/src/pages/data-analysis/my-service.vue +++ b/src/pages/data-analysis/my-service.vue @@ -46,7 +46,9 @@ - + + + @@ -67,11 +69,13 @@ import BlockRadius from "@/components/block-radius"; import Dashboard from "@/components/e-charts/dashboard"; import Toplist from "@/components/e-charts/toplist"; +import Starlist from "@/components/e-charts/starlist"; export default { components: { BlockRadius, Dashboard, - Toplist + Toplist, + Starlist }, data: () => ({ navList: [] -- 2.26.0