mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-27 01:05:07 +08:00
修复角色管理数据权限回显问题
This commit is contained in:
@ -91,6 +91,7 @@ const open = async (row: RoleApi.RoleVO) => {
|
||||
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
||||
|
||||
/** 提交表单 */
|
||||
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
|
||||
const submitForm = async () => {
|
||||
// 校验表单
|
||||
if (!formRef) return
|
||||
@ -109,6 +110,8 @@ const submitForm = async () => {
|
||||
await PermissionApi.assignRoleMenu(data)
|
||||
message.success(t('common.updateSuccess'))
|
||||
dialogVisible.value = false
|
||||
// 发送操作成功的事件
|
||||
emit('success')
|
||||
} finally {
|
||||
formLoading.value = false
|
||||
}
|
||||
|
Reference in New Issue
Block a user