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 @@
{{item.username}}
-
+
注册时间:{{item.created_at |time}}
-
团队人数:{{item.team_num}}
+
团队人数:{{item.team_num}}
@@ -31,7 +31,7 @@
import {
Tab,
Tabs,
- Empty
+ Empty
} from 'vant';
export default {
data() {
@@ -44,9 +44,9 @@
totalPage: 1,
},
error: false,
- type:'',
- level_id:'',
- id:'',
+ type: '',
+ level_id: '',
+ id: '',
}
},
filters: {
@@ -54,10 +54,10 @@
return (+val || 0).toFixed(0).replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, '$&,')
},
time: function (val) {
- return val.substring(0,10);
+ return val.substring(0, 10);
},
capitalize2: function (index) {
- let key = Number(index-1)
+ let key = Number(index - 1)
const statusList = [
"vip",
"总代",
@@ -69,7 +69,7 @@
}
},
created() {
- if(this.$route.query.id){
+ if (this.$route.query.id) {
console.log(`2222222222222222`);
this.id = this.$route.query.id
}
@@ -80,10 +80,16 @@
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,
+ user_id: this.id,
+ page: ++this.list.curPage,
})
- const information = res.data.data
+ let information
+ if (this.$route.query.id) {
+ information = res.data
+ } else {
+ information = res.data.data
+ }
+ console.log(information, '222');
if (JSON.stringify(information.data) != '[]') {
this.list.data.push(...information.data);
this.list.totalPage = information.last_page;
@@ -100,9 +106,6 @@
this.list.finished = true;
});
}
- },
- addList() {
-
},
onLoad() {
var _this = this;
@@ -122,18 +125,20 @@
min-height: 100vh;
background: RGBA(63, 66, 88, 1);
position: relative;
- .empty{
+
+ .empty {
position: absolute;
top: 20%;
- left:50%;
+ left: 50%;
transform: translateX(-50%);
}
+
.moneyRanking {
min-height: 100vh;
background: RGBA(63, 66, 88, 1);
padding: 0 70px;
padding-top: 50px;
-
+
.title {
font-size: 40px;
diff --git a/src/views/teamPerformance/index.vue b/src/views/teamPerformance/index.vue
index 7aed746..4dcd1d5 100644
--- a/src/views/teamPerformance/index.vue
+++ b/src/views/teamPerformance/index.vue
@@ -149,7 +149,9 @@
},
methods: {
async getData() {
- const res = await data.overview();
+ const res = await data.overviewByUserId({
+ user_id:this.id,
+ });
this.list = res.data
console.log(this.list, '---this.list');
},