Browse Source

用户管理分页bug修改

zhangxiaojun 5 months ago
parent
commit
674ef2a7eb
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/userManagement/index.vue

+ 6 - 2
src/views/userManagement/index.vue

@@ -19,7 +19,7 @@
               <el-input v-model="search.managerName" style="width: 250px" placeholder="业务经理/风控经理" clearable />
             </div>
             <div class="leftBtn">
-              <el-button type="primary" @click="fetchData">查询</el-button>
+              <el-button type="primary" @click="searchData">查询</el-button>
             </div>
             <div class="leftBtn">
               <el-button v-power="'batch_change_projectManager'" type="primary" @click="batchHandoverPM">批量移交业务经理</el-button>
@@ -137,7 +137,7 @@ export default {
       this.loading = true
       const params = {
         ...this.search,
-        page: 1,
+        page: this.page,
         rows: this.size
       }
       getUserList(params).then(({ rows, records }) => {
@@ -151,6 +151,10 @@ export default {
         this.loading = false
       })
     },
+    searchData() {
+      this.page = 1
+      this.fetchData()
+    },
 
     handlerOperate(type, row) {
       if (type === 'receive') { // 认领