|
@@ -85,8 +85,14 @@ export default {
|
|
|
this.user.role == '0' && !_.get(this.user, 'pid') ? '' : (query.pid = this.user.uid);
|
|
|
const res = await this.getBusinessUser(query);
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `list`, res.data);
|
|
|
- this.$set(this, `total`, res.total);
|
|
|
+ if (this.user.role == '0') {
|
|
|
+ let newarr = res.data.filter(i => i.role == '1');
|
|
|
+ this.$set(this, `list`, newarr);
|
|
|
+ this.$set(this, `total`, newarr.length);
|
|
|
+ } else {
|
|
|
+ this.$set(this, `list`, res.data);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
// 修改
|