From 6693cf2a75c4a89d078eb1c2f79152b0ea7b211c Mon Sep 17 00:00:00 2001 From: zhaoguoqiang <849348323@qq.com> Date: Tue, 17 Aug 2021 18:27:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E4=BA=86=E4=B8=80=E4=B8=AA=E5=80=9F?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataOverview/index.vue | 18 +++++++++--------- src/views/teamList/index.vue | 7 ++++++- src/views/teamPerformance/index.vue | 18 +++++++++++------- 3 files changed, 26 insertions(+), 17 deletions(-) diff --git a/src/views/dataOverview/index.vue b/src/views/dataOverview/index.vue index f8646a6..0345e88 100644 --- a/src/views/dataOverview/index.vue +++ b/src/views/dataOverview/index.vue @@ -110,7 +110,7 @@
本月团队业绩排名TOP
-
+

{{index+1}}

@@ -160,14 +160,14 @@ } }) }, - toTeamPerformance(){ - // this.$router.push({ - // path: '/teamPerformance', - // query: { - // // type: type, - // // level_id: id, - // } - // }) + toTeamPerformance(id){ + // console.log(id,'---id'); + this.$router.push({ + path: '/teamPerformance', + query: { + lid:id, + } + }) }, } } diff --git a/src/views/teamList/index.vue b/src/views/teamList/index.vue index dbb9a4e..dd139ee 100644 --- a/src/views/teamList/index.vue +++ b/src/views/teamList/index.vue @@ -46,7 +46,7 @@ error: false, type:'', level_id:'', - today_month:this.$route.query.today_month, + id:'', } }, filters: { @@ -69,6 +69,10 @@ } }, created() { + if(this.$route.query.id){ + console.log(`2222222222222222`); + this.id = this.$route.query.id + } this.getList() }, methods: { @@ -76,6 +80,7 @@ const res = await data.poxyList({ type: this.$route.query.type, level_id: this.$route.query.level_id, + user_id:this.id, page:++this.list.curPage, }) const information = res.data.data diff --git a/src/views/teamPerformance/index.vue b/src/views/teamPerformance/index.vue index 283b115..7aed746 100644 --- a/src/views/teamPerformance/index.vue +++ b/src/views/teamPerformance/index.vue @@ -134,6 +134,7 @@ data() { return { list: {}, + id:'', } }, filters: { @@ -142,6 +143,8 @@ }, }, created() { + this.id = this.$route.query.lid + console.log(this.id,'-----------------'); this.getData() }, methods: { @@ -151,13 +154,14 @@ console.log(this.list, '---this.list'); }, toTeamList(type, id) { - // this.$router.push({ - // path: '/teamList', - // query: { - // type: type, - // level_id: id, - // } - // }) + this.$router.push({ + path: '/teamList', + query: { + type: type, + level_id: id, + id:this.id, + } + }) }, } }