@@ -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,
+ }
+ })
},
}
}
From df981b835d622212465cd408403cd4f5856b245f Mon Sep 17 00:00:00 2001
From: zhaoguoqiang <849348323@qq.com>
Date: Wed, 18 Aug 2021 10:49:48 +0800
Subject: [PATCH 6/6] =?UTF-8?q?=E6=8E=A5=E5=AE=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/data.js | 5 ++++
src/views/dataOverview/index.vue | 4 +--
src/views/teamList/index.vue | 41 ++++++++++++++++-------------
src/views/teamPerformance/index.vue | 4 ++-
4 files changed, 32 insertions(+), 22 deletions(-)
diff --git a/src/api/data.js b/src/api/data.js
index 8daefaa..e0d4f46 100644
--- a/src/api/data.js
+++ b/src/api/data.js
@@ -19,6 +19,11 @@ class data{
async poxyList(param){
return await get("/admin/DataReport/ShopDataReport/poxyList",param)
}
+
+ async overviewByUserId(param){
+ return await get("/admin/DataReport/ShopDataReport/overviewByUserId",param)
+ }
+
}
export default new data()
\ No newline at end of file
diff --git a/src/views/dataOverview/index.vue b/src/views/dataOverview/index.vue
index 0345e88..90d2776 100644
--- a/src/views/dataOverview/index.vue
+++ b/src/views/dataOverview/index.vue
@@ -155,13 +155,11 @@
path: '/teamList',
query: {
type: type,
- level_id: id,
- today_month:this.list.today_month,
+ level_id: id
}
})
},
toTeamPerformance(id){
- // console.log(id,'---id');
this.$router.push({
path: '/teamPerformance',
query: {
diff --git a/src/views/teamList/index.vue b/src/views/teamList/index.vue
index dd139ee..577bdc6 100644
--- a/src/views/teamList/index.vue
+++ b/src/views/teamList/index.vue
@@ -14,9 +14,9 @@