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 @@