Browse Source

接了一个借口

pull/12/head
zhaoguoqiang 3 years ago
parent
commit
6693cf2a75
  1. 18
      src/views/dataOverview/index.vue
  2. 7
      src/views/teamList/index.vue
  3. 18
      src/views/teamPerformance/index.vue

18
src/views/dataOverview/index.vue

@ -110,7 +110,7 @@
<div class="moneyRanking">
<div class="title">本月团队业绩排名TOP</div>
<div class="list">
<div class="item" @click="toTeamPerformance" v-for="(item,index) of list.month_money_top" :key="index">
<div class="item" @click="toTeamPerformance(item.id)" v-for="(item,index) of list.month_money_top" :key="index">
<div class="rankNum">
<p>{{index+1}}</p>
</div>
@ -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,
}
})
},
}
}

7
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

18
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,
}
})
},
}
}

Loading…
Cancel
Save