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