YY %!s(int64=2) %!d(string=hai) anos
pai
achega
c16eebae9c
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  1. 3 4
      src/views/platmanag/user/detail.vue

+ 3 - 4
src/views/platmanag/user/detail.vue

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