|
@@ -222,7 +222,9 @@ export default {
|
|
res = await this.getDict({ code: 'group_status' });
|
|
res = await this.getDict({ code: 'group_status' });
|
|
if (this.$checkRes(res)) this.$set(this, `statusList`, res.data);
|
|
if (this.$checkRes(res)) this.$set(this, `statusList`, res.data);
|
|
// 团长列表
|
|
// 团长列表
|
|
- res = await this.userQuery({ is_leader: '0' });
|
|
|
|
|
|
+ const data = { is_leader: '0' };
|
|
|
|
+ if (this.user.role.code == 'shopAdmin') data.shop = this.user.shop._id || this.user.shop.id;
|
|
|
|
+ res = await this.userQuery(data);
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
for (const p1 of res.data) {
|
|
for (const p1 of res.data) {
|
|
p1.name = '团长' + '---' + p1.phone + '---' + p1.name;
|
|
p1.name = '团长' + '---' + p1.phone + '---' + p1.name;
|