From 813c2a466209b1a41084e4cb2aad1b2f9d4a3a4e Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Fri, 21 Oct 2022 19:14:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/article/Detail.vue | 31 +++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/src/views/portal/article/Detail.vue b/src/views/portal/article/Detail.vue index bedbdfed..aac64e00 100644 --- a/src/views/portal/article/Detail.vue +++ b/src/views/portal/article/Detail.vue @@ -60,22 +60,22 @@ @@ -133,6 +133,7 @@ export default { }, data() { return { + ankIds:[], resonimg:{}, fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL, noData:true, @@ -218,6 +219,19 @@ 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); + }) } }); }, @@ -291,6 +305,11 @@ export default {