|
@@ -52,7 +52,7 @@ export default {
|
|
// 状态列表
|
|
// 状态列表
|
|
statusList: [],
|
|
statusList: [],
|
|
// 列表
|
|
// 列表
|
|
- opera: [{ label: '查看', method: 'view' }],
|
|
|
|
|
|
+ opera: [{ label: '查看', method: 'view', display: (i) => i.status == '0' }],
|
|
fields: [
|
|
fields: [
|
|
{
|
|
{
|
|
label: '来源',
|
|
label: '来源',
|
|
@@ -91,9 +91,8 @@ export default {
|
|
async search({ skip = 0, limit = this.$limit, ...info } = {}) {
|
|
async search({ skip = 0, limit = this.$limit, ...info } = {}) {
|
|
info.inviter = this.id;
|
|
info.inviter = this.id;
|
|
let arr = await this.computedTotal({ customer: this.id });
|
|
let arr = await this.computedTotal({ customer: this.id });
|
|
- if (this.$checkRes(arr)) {
|
|
|
|
- this.$set(this, `info`, arr.data);
|
|
|
|
- }
|
|
|
|
|
|
+ if (this.$checkRes(arr)) this.$set(this, `info`, arr.data);
|
|
|
|
+
|
|
let res = await this.query({ skip, limit, ...info });
|
|
let res = await this.query({ skip, limit, ...info });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `list`, res.data);
|