|
@ -191,20 +191,11 @@ const getStore = async function () { |
|
|
const openPermissionAddVisible = function () { |
|
|
const openPermissionAddVisible = function () { |
|
|
|
|
|
|
|
|
permissionAddVisible.value = true |
|
|
permissionAddVisible.value = true |
|
|
Ref.value.resetFields(); |
|
|
|
|
|
|
|
|
|
|
|
getRoles() |
|
|
getRoles() |
|
|
getLists() |
|
|
getLists() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const closePermissionAddVisible = function () { |
|
|
const closePermissionAddVisible = function () { |
|
|
addRole.value = { |
|
|
|
|
|
roleName: '', |
|
|
|
|
|
parentId: null, |
|
|
|
|
|
checkedKeys: [], |
|
|
|
|
|
grade: '', |
|
|
|
|
|
market: '' |
|
|
|
|
|
} |
|
|
|
|
|
permissionAddVisible.value = false |
|
|
permissionAddVisible.value = false |
|
|
Ref.value.resetFields(); |
|
|
Ref.value.resetFields(); |
|
|
getRoleList() |
|
|
getRoleList() |
|
@ -214,7 +205,10 @@ const closePermissionAddVisible = function () { |
|
|
const permissionAddInit = function () { |
|
|
const permissionAddInit = function () { |
|
|
openPermissionAddVisible() |
|
|
openPermissionAddVisible() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const handleDialogClose = function(){ |
|
|
|
|
|
closePermissionAddVisible() |
|
|
|
|
|
console.log('hhh'); |
|
|
|
|
|
} |
|
|
// 表单验证ref |
|
|
// 表单验证ref |
|
|
const Ref = ref(null) |
|
|
const Ref = ref(null) |
|
|
|
|
|
|
|
@ -392,6 +386,7 @@ const filterGoldenBeanMenus = (tree) => { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const treeRef = ref(null) |
|
|
const treeRef = ref(null) |
|
|
// 处理编辑角色权限时的勾选事件 |
|
|
// 处理编辑角色权限时的勾选事件 |
|
|
const handleEditRolePermissionCheck = (checkedNodes, checkedInfo) => { |
|
|
const handleEditRolePermissionCheck = (checkedNodes, checkedInfo) => { |
|
@ -759,7 +754,7 @@ onMounted(async function () { |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 新增角色 --> |
|
|
<!-- 新增角色 --> |
|
|
<el-dialog v-model="permissionAddVisible" title="新增角色" width="800px" :close-on-click-modal="false"> |
|
|
|
|
|
|
|
|
<el-dialog v-model="permissionAddVisible" title="新增角色" width="800px" :close-on-click-modal="false" @close="handleDialogClose "> |
|
|
<template #footer> |
|
|
<template #footer> |
|
|
<el-form ref="Ref" :rules="Rolerules" :model="addRole" label-width="auto" |
|
|
<el-form ref="Ref" :rules="Rolerules" :model="addRole" label-width="auto" |
|
|
style="max-width: 600px; align-items: center"> |
|
|
style="max-width: 600px; align-items: center"> |
|
|