From 8170af3d314dc3a43de883d76afc89845ad41c38 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Mon, 7 Aug 2023 17:33:03 +0800 Subject: [PATCH] 2023-8-7 --- src/views/system/user.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/system/user.vue b/src/views/system/user.vue index 5aad1ff..61ccaa8 100644 --- a/src/views/system/user.vue +++ b/src/views/system/user.vue @@ -127,11 +127,11 @@ username: "", password: "", department_id: "", - }, - paginations: { - page: 1, - page_size: 15, - total: 0 + }, + paginations: { + page: 1, + page_size: 15, + total: 0 }, rules: { name: [{ @@ -160,10 +160,10 @@ tableData: [] } }, - methods: { - handleCurrentChange(page) { - this.paginations.page = page; - this.load(); + methods: { + handleCurrentChange(page) { + this.paginations.page = page; + this.load(); }, initLoad() { var that = this; @@ -190,6 +190,7 @@ ...this.searchFields }).then(response => { var data = response.data; + that.paginations.total = response.total var _rolelist = []; for (var m of data) { _rolelist = that.roleList;