From 6b1c3f30a4c422a3b885f07e61f13b40f7862667 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Thu, 20 Oct 2022 10:09:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E8=A1=8C=E6=A6=9C=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/api/abilityStatistics.js | 32 +++ .../components/AbilityRanking.vue | 187 ++++++++++++++---- 2 files changed, 179 insertions(+), 40 deletions(-) diff --git a/front/src/api/abilityStatistics.js b/front/src/api/abilityStatistics.js index c2bf733e..2144f144 100644 --- a/front/src/api/abilityStatistics.js +++ b/front/src/api/abilityStatistics.js @@ -47,6 +47,38 @@ export function pageWithAttrs(data) { data, }) } +//获取好评榜 +export function getPraiseList(params) { + return request({ + url: '/resource/getPraiseList', + method: 'get', + params, + }) +} +//获取热门榜 +export function getPopularList(params) { + return request({ + url: '/resource/getPopularList', + method: 'get', + params, + }) +} +//获取明星榜 +export function getStarList(params) { + return request({ + url: '/resource/getStarList', + method: 'get', + params, + }) +} +//获取潜力榜 +export function getPotentialList(params) { + return request({ + url: '/resource/getPotentialList', + method: 'get', + params, + }) +} //能力统计-能力需求 export function capabilityRequirements(params) { return request({ diff --git a/front/src/views/abilityStatistics/components/AbilityRanking.vue b/front/src/views/abilityStatistics/components/AbilityRanking.vue index ea0efca1..2f731501 100644 --- a/front/src/views/abilityStatistics/components/AbilityRanking.vue +++ b/front/src/views/abilityStatistics/components/AbilityRanking.vue @@ -15,10 +15,45 @@ }" >
{{ item }} + + + + + + +
@@ -28,12 +63,54 @@ class="content-son" v-for="(item, index) in dataList" :key="item" - @click="viewDetails(item.id)" + @click="viewDetails(item.resourceId)" > -
+
{{ index + 1 }}
-
{{ item.name }}
-
访问量:{{ item.visits }}
+
{{ item.resourceName }}
+
+ 平均分:{{ item.score }} +
+
+ 申请量:{{ item.applyCount }} +
+
+ 热度值: + + + +
+
+ + +
@@ -46,10 +123,17 @@