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 () {