From 1693a3422d2874750956fa275ec418a6c693deba Mon Sep 17 00:00:00 2001 From: lihui Date: Tue, 14 Oct 2025 11:56:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=88=87=E6=8D=A2=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/permissions/rolePermission.vue | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/views/permissions/rolePermission.vue b/src/views/permissions/rolePermission.vue index c66f59f..99034ea 100644 --- a/src/views/permissions/rolePermission.vue +++ b/src/views/permissions/rolePermission.vue @@ -23,13 +23,9 @@ const admin = ref({ const role = ref({ name: '' }) -const getObj = ref({ - pageNum: 1, - pageSize: 10 -}) const getRoleObj = ref({ pageNum: 1, - pageSize: 10 + pageSize: 20 }) const permissionAddVisible = ref(false) const addRole = ref({ @@ -47,9 +43,9 @@ const getRoleList = async function (val) { } try { if (typeof val === 'number') { - getObj.value.pageNum = val + getRoleObj.value.pageNum = val } - console.log('搜索参数', getObj.value, role.value) + console.log('搜索参数', getRoleObj.value, role.value) const result = await request({ url: '/role/selectBy', data: { @@ -93,7 +89,7 @@ const trimJwCode = () => { } const searchRole = function () { trimJwCode(); - getObj.value.pageNum = 1 + getRoleObj.value.pageNum = 1 getRoleList() } // 重置 @@ -637,7 +633,7 @@ onMounted(async function () {
-