瀏覽代碼

feature(优化): 停用账号不展示

ZZH-wl 2 年之前
父節點
當前提交
8a4962415b
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/components/select/SelectUser.vue

+ 8 - 1
src/components/select/SelectUser.vue

@@ -79,8 +79,9 @@
         queryForm: {
           keyWords: '',
           pageNum: 1,
-          orderBy: 'userName',
           pageSize: 50,
+          orderBy: 'userName',
+          status: '10',
         },
         disabled: false,
         total: 0,
@@ -147,7 +148,13 @@
             this.options = this.options.concat(list)
           }
           this.queryForm.pageNum++
+        } else {
+          if (type === 'new') {
+            this.list = []
+            this.options = []
+          }
         }
+
         // 禁用加载请求
         this.disabled = false
         if (this.list.length >= this.total) {