From e38c8234a495b7bcbf6d775568c1641c43dc67a0 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Sun, 19 Jun 2022 18:30:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=9C=8D=E5=8A=A1=E5=92=8C?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E8=AE=BE=E6=96=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/api/capabilityCloud.js | 8 + .../components/ComponentServices.vue | 148 ++++++++++++++---- .../components/Infrastructure.vue | 9 +- 3 files changed, 133 insertions(+), 32 deletions(-) diff --git a/front/src/api/capabilityCloud.js b/front/src/api/capabilityCloud.js index 8bc42fa6..d0d921d4 100644 --- a/front/src/api/capabilityCloud.js +++ b/front/src/api/capabilityCloud.js @@ -49,4 +49,12 @@ export function assemblerBaseStatic() { method: 'get', }) } +//能力云图-组件服务排行 +export function componentServiceRank(params) { + return request({ + url: '/census/center/v2/componentServiceRank', + method: 'get', + params + }) +} diff --git a/front/src/views/capabilityCloud/components/ComponentServices.vue b/front/src/views/capabilityCloud/components/ComponentServices.vue index 2ae1c3c3..d6ca53e0 100644 --- a/front/src/views/capabilityCloud/components/ComponentServices.vue +++ b/front/src/views/capabilityCloud/components/ComponentServices.vue @@ -53,8 +53,18 @@
-
-
+
+ 周 +
+
+ 月 +
@@ -64,8 +74,20 @@
-
组件赋能排行
-
组件评分排行
+
+ 组件赋能排行 +
+
+ 组件评分排行 +
@@ -73,10 +95,13 @@ 名称 应用数
-
- - - +
+ {{ index + 1 }} + + + {{ item.name }} + + {{ item.count }}
@@ -88,25 +113,50 @@