|
@@ -69,7 +69,6 @@ export default {
|
|
{ label: '设为会员', method: 'puton', display: (i) => i.is_leader != '0', type: 'success' },
|
|
{ label: '设为会员', method: 'puton', display: (i) => i.is_leader != '0', type: 'success' },
|
|
{ label: '取消会员', method: 'puton', display: (i) => i.is_leader == '0', type: 'warning' },
|
|
{ label: '取消会员', method: 'puton', display: (i) => i.is_leader == '0', type: 'warning' },
|
|
{ label: '会员信息', method: 'leader', display: (i) => i.is_leader == '0' },
|
|
{ label: '会员信息', method: 'leader', display: (i) => i.is_leader == '0' },
|
|
-
|
|
|
|
{ label: '删除', method: 'del', confirm: true, type: 'danger' },
|
|
{ label: '删除', method: 'del', confirm: true, type: 'danger' },
|
|
],
|
|
],
|
|
fields: [
|
|
fields: [
|
|
@@ -147,6 +146,8 @@ export default {
|
|
...userleader({ ulQuery: 'query' }),
|
|
...userleader({ ulQuery: 'query' }),
|
|
async search({ skip = 0, limit = this.$limit, ...info } = {}) {
|
|
async search({ skip = 0, limit = this.$limit, ...info } = {}) {
|
|
let condition = _.cloneDeep(this.searchInfo);
|
|
let condition = _.cloneDeep(this.searchInfo);
|
|
|
|
+ // 判断是否是个人店铺查询
|
|
|
|
+ if (this.user.role.code == 'shopAdmin') info.shop = this.user.shop._id || this.user.shop.id;
|
|
let res = await this.query({ skip, limit, ...condition, ...info });
|
|
let res = await this.query({ skip, limit, ...condition, ...info });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, 'list', res.data);
|
|
this.$set(this, 'list', res.data);
|
|
@@ -231,7 +232,6 @@ export default {
|
|
if (this.$checkRes(res)) this.$set(this, `useList`, res.data);
|
|
if (this.$checkRes(res)) this.$set(this, `useList`, res.data);
|
|
// 是否使用
|
|
// 是否使用
|
|
res = await this.dictQuery({ code: 'use' });
|
|
res = await this.dictQuery({ code: 'use' });
|
|
- console.log(res.data);
|
|
|
|
if (this.$checkRes(res)) this.$set(this, `is_useList`, res.data);
|
|
if (this.$checkRes(res)) this.$set(this, `is_useList`, res.data);
|
|
},
|
|
},
|
|
},
|
|
},
|