From 6e7191176375817d2c537bafdb8463d20be4f356 Mon Sep 17 00:00:00 2001
From: lmj <3407000732@qq.com>
Date: Fri, 21 Oct 2022 18:39:20 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E6=8E=92=E8=A1=8C=E6=A6=9C?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=AA=E4=BA=BA=E7=BB=84=E7=BB=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/portal/article/Index.vue | 37 +++++++++++++++++++++++-------
1 file changed, 29 insertions(+), 8 deletions(-)
diff --git a/src/views/portal/article/Index.vue b/src/views/portal/article/Index.vue
index b3eda535..c44898a6 100644
--- a/src/views/portal/article/Index.vue
+++ b/src/views/portal/article/Index.vue
@@ -79,24 +79,25 @@
贡献榜
-
-
-
+
+
-
+
-
+
-
+
-
+
- {{ item.sysCreateUname }}
-
+ {{ item.sysCreateUname }}({{ item.orinfo }})
+
+
@@ -150,6 +151,7 @@ export default {
},
data() {
return {
+ ankIds:[],
resonimg:{},
moreState:1,// 1 加载更多 2 加载中 3无数据
searchRecords: [],
@@ -390,6 +392,20 @@ export default {
apiArticle.countsUsername(5).then(res => {
if (res.status == 200) {
this.ankingList = res.result;
+ let ids = [];
+ this.ankingList.forEach(item =>{
+ ids.push(item.sysCreateAid);
+ })
+ apiUser.getByIds(ids).then(res=>{
+ res.result.forEach(item=>{
+ this.ankIds.push(item.orgInfo);
+ this.ankingList.forEach((value, index) => {
+ value['orinfo'] = this.ankIds[index];
+ })
+ })
+ // console.log(this.ankingList);
+ })
+
}
});
},
@@ -398,6 +414,11 @@ export default {