|
|
@@ -194,11 +194,13 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
- // $route(val) {
|
|
|
- // // console.log(val);
|
|
|
- // },
|
|
|
+ teamTab() {
|
|
|
+ // console.log(val);
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
+ this.getTeamList();
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -233,33 +235,30 @@ export default {
|
|
|
},
|
|
|
getList() {
|
|
|
this.$API.personnel
|
|
|
- .getTeamList({
|
|
|
+ .getTeamUserList({
|
|
|
userId: this.$route.query.userId,
|
|
|
+ pageNum: this.pageInfo.pageNum,
|
|
|
+ pageSize: this.pageInfo.pageSize,
|
|
|
...this.formState,
|
|
|
+ type: this.teamTab,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- // console.log(res);
|
|
|
if (res.data.code === 200) {
|
|
|
- this.teamList = [...res.data.data.hzList];
|
|
|
- // this.teamList.unshift({
|
|
|
- // totalManpower: this.$route.query.totalManpower,
|
|
|
- // totalPremium: this.$route.query.totalPremium,
|
|
|
- // orderManpower: this.$route.query.orderManpower,
|
|
|
- // teamLevel: "汇总",
|
|
|
- // });
|
|
|
+ this.userList = [...res.data.data.records];
|
|
|
+ this.pageInfo.total = res.data.data.total;
|
|
|
}
|
|
|
});
|
|
|
+ },
|
|
|
+ getTeamList() {
|
|
|
this.$API.personnel
|
|
|
- .getTeamUserList({
|
|
|
+ .getTeamList({
|
|
|
userId: this.$route.query.userId,
|
|
|
- pageNum: this.pageInfo.pageNum,
|
|
|
- pageSize: this.pageInfo.pageSize,
|
|
|
...this.formState,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
+ // console.log(res);
|
|
|
if (res.data.code === 200) {
|
|
|
- this.userList = [...res.data.data.records];
|
|
|
- this.pageInfo.total = res.data.data.total;
|
|
|
+ this.teamList = [...res.data.data.hzList];
|
|
|
}
|
|
|
});
|
|
|
},
|