From 1be2be64e28a2879cc0f64e3143879cdd4836529 Mon Sep 17 00:00:00 2001 From: lihui Date: Thu, 14 Aug 2025 16:50:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(permissions):=20=E9=87=8D=E5=A4=8D=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/permissions/rolePermission.vue | 19 +++++++------------ src/views/permissions/userPermission.vue | 27 +++++---------------------- 2 files changed, 12 insertions(+), 34 deletions(-) diff --git a/src/views/permissions/rolePermission.vue b/src/views/permissions/rolePermission.vue index b2204ed..c39ffc3 100644 --- a/src/views/permissions/rolePermission.vue +++ b/src/views/permissions/rolePermission.vue @@ -191,20 +191,11 @@ const getStore = async function () { const openPermissionAddVisible = function () { permissionAddVisible.value = true - Ref.value.resetFields(); - getRoles() getLists() } const closePermissionAddVisible = function () { - addRole.value = { - roleName: '', - parentId: null, - checkedKeys: [], - grade: '', - market: '' - } permissionAddVisible.value = false Ref.value.resetFields(); getRoleList() @@ -214,7 +205,10 @@ const closePermissionAddVisible = function () { const permissionAddInit = function () { openPermissionAddVisible() } - +const handleDialogClose = function(){ + closePermissionAddVisible() + console.log('hhh'); +} // 表单验证ref const Ref = ref(null) @@ -392,6 +386,7 @@ const filterGoldenBeanMenus = (tree) => { }; + const treeRef = ref(null) // 处理编辑角色权限时的勾选事件 const handleEditRolePermissionCheck = (checkedNodes, checkedInfo) => { @@ -759,7 +754,7 @@ onMounted(async function () { - +