Browse Source

接完

pull/12/head
zhaoguoqiang 4 years ago
parent
commit
df981b835d
  1. 5
      src/api/data.js
  2. 4
      src/views/dataOverview/index.vue
  3. 17
      src/views/teamList/index.vue
  4. 4
      src/views/teamPerformance/index.vue

5
src/api/data.js

@ -19,6 +19,11 @@ class data{
async poxyList(param){ async poxyList(param){
return await get("/admin/DataReport/ShopDataReport/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() export default new data()

4
src/views/dataOverview/index.vue

@ -155,13 +155,11 @@
path: '/teamList', path: '/teamList',
query: { query: {
type: type, type: type,
level_id: id,
today_month:this.list.today_month,
level_id: id
} }
}) })
}, },
toTeamPerformance(id){ toTeamPerformance(id){
// console.log(id,'---id');
this.$router.push({ this.$router.push({
path: '/teamPerformance', path: '/teamPerformance',
query: { query: {

17
src/views/teamList/index.vue

@ -14,9 +14,9 @@
</div> </div>
<div class="teamInfo"> <div class="teamInfo">
<div class="teamName">{{item.username}}</div> <div class="teamName">{{item.username}}</div>
<!-- <div class="teamMoney"></div> -->
<div class="teamNum" v-if="id"></div>
<div class="teamMoney">注册时间{{item.created_at |time}}</div> <div class="teamMoney">注册时间{{item.created_at |time}}</div>
<div class="teamNum">团队人数{{item.team_num}}</div>
<div class="teamNum" v-if="!id">团队人数{{item.team_num}}</div>
</div> </div>
</div> </div>
</van-list> </van-list>
@ -83,7 +83,13 @@
user_id: this.id, user_id: this.id,
page: ++this.list.curPage, 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) != '[]') { if (JSON.stringify(information.data) != '[]') {
this.list.data.push(...information.data); this.list.data.push(...information.data);
this.list.totalPage = information.last_page; this.list.totalPage = information.last_page;
@ -100,9 +106,6 @@
this.list.finished = true; this.list.finished = true;
}); });
} }
},
addList() {
}, },
onLoad() { onLoad() {
var _this = this; var _this = this;
@ -122,12 +125,14 @@
min-height: 100vh; min-height: 100vh;
background: RGBA(63, 66, 88, 1); background: RGBA(63, 66, 88, 1);
position: relative; position: relative;
.empty { .empty {
position: absolute; position: absolute;
top: 20%; top: 20%;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
} }
.moneyRanking { .moneyRanking {
min-height: 100vh; min-height: 100vh;
background: RGBA(63, 66, 88, 1); background: RGBA(63, 66, 88, 1);

4
src/views/teamPerformance/index.vue

@ -149,7 +149,9 @@
}, },
methods: { methods: {
async getData() { async getData() {
const res = await data.overview();
const res = await data.overviewByUserId({
user_id:this.id,
});
this.list = res.data this.list = res.data
console.log(this.list, '---this.list'); console.log(this.list, '---this.list');
}, },

Loading…
Cancel
Save