Browse Source

账号分页管理

cynthia-qin 1 month ago
parent
commit
5782f63dc2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/views/KMPlatform/Permission/AccountManage.vue

+ 6 - 0
src/views/KMPlatform/Permission/AccountManage.vue

@@ -22,6 +22,7 @@
       :page-sizes="[10, 20, 30, 40, 100]"
       :page-size="page.pageSize"
        :total="total"
+       @current-change="handleCurrentChange"
       layout="total, prev, pager, next, jumper"></el-pagination>
   </div>
     <el-dialog v-model="dialogFormVisible" title="编辑账号" width="500">
@@ -84,6 +85,11 @@ const init = () => {
       })
 }
 init()
+const handleCurrentChange = (val) => {
+  page.pageNo = val
+  tableData.value = []
+  init()
+}
 const getRolesList = () => {
   proxy.$http.get('/open-platform/user/roles')
     .then((res) => {