浏览代码

no message

linwenxin 1 年之前
父节点
当前提交
7987f37351
共有 1 个文件被更改,包括 10 次插入17 次删除
  1. 10 17
      src/views/setting/organizationManagement/tenantManagement/index.vue

+ 10 - 17
src/views/setting/organizationManagement/tenantManagement/index.vue

@@ -109,7 +109,6 @@
 import { COMMON_SELECT } from '@/utils/select_data'
 import {getList, changeAccountStatus} from "@/api/merchant";
 import {downloadFiles} from '@/utils/util'
-
 export default {
   data() {
     return {
@@ -133,23 +132,17 @@ export default {
     }
   },
   created() {
-    this.getList();
+    this.getListfun();
   },
   methods: {
     // 查询列表
-    getList() {
+    getListfun() {
       this.listLoading = true;
-
-      let params = {
+      getList({
         pageNum: this.currentPage,
         pageSize: this.pageSize,
-        userName: this.screenForm.account,
-        nickName: this.screenForm.nickName,
-        linkPhone: this.screenForm.phone,
-        email: this.screenForm.email,
-        status: this.screenForm.status,
-      };
-      getList(params).then((res) => {
+        ...this.screenForm
+      }).then((res) => {
         this.dataList = res.data.records;
         this.listTotal = res.data.total;
         this.listLoading = false;
@@ -158,24 +151,24 @@ export default {
     // 提交筛选表单
     submitScreenForm() {
       this.currentPage = 1;
-      this.getList();
+      this.getListfun();
     },
     // 重置筛选表单
     resetScreenForm() {
       this.$refs.screenForm.resetFields();
       this.currentPage = 1;
-      this.getList();
+      this.getListfun();
     },
     // 更改每页数量
     handleSizeChange(val) {
       this.pageSize = val;
       this.currentPage = 1;
-      this.getList();
+      this.getListfun();
     },
     // 更改当前页
     handleCurrentChange(val) {
       this.currentPage = val;
-      this.getList();
+      this.getListfun();
     },
 
     // 去开通账号
@@ -208,7 +201,7 @@ export default {
     changeStatus(id, type) {
       type = type ? true : false
       changeAccountStatus({adminUserId: id, status: type}).then(res => {
-        this.getList();
+        this.getListfun();
         this.$successMsg();
       })
     },