This commit is contained in:
李远 2026-03-20 10:55:53 +08:00
parent e4b4f5ddb9
commit 37c2262f80
1 changed files with 6 additions and 5 deletions

View File

@ -25,8 +25,8 @@
</RoleTable> </RoleTable>
</div> </div>
<!-- 角色新增/编辑弹窗 --> <!-- 角色新增/编辑弹窗 -->
<RoleDialog :visible="dialogVisible" :title="dialogTitle" :type="dialogType" :width="dialogWidth" @confirm="handleSubmit" <RoleDialog :visible="dialogVisible" :title="dialogTitle" :type="dialogType" @confirm="handleSubmit"
@cancel="handleCancel" @close="handleClose"> @cancel="handleCancel" @close="handleClose" :fullscreen="fullScreen">
<RoleForm :form-data="roleForm" :form-rules="roleFormRules" :form-items="roleFormItemOptions" ref="roleFormRef" <RoleForm :form-data="roleForm" :form-rules="roleFormRules" :form-items="roleFormItemOptions" ref="roleFormRef"
:options-map="roleFormOptionsMap" :dialog-type="dialogType"> :options-map="roleFormOptionsMap" :dialog-type="dialogType">
<template #permissions="{ formData }"> <template #permissions="{ formData }">
@ -79,7 +79,7 @@ const roleTree = ref<any[]>([])
const dialogVisible = ref(false) const dialogVisible = ref(false)
const dialogTitle = ref('') const dialogTitle = ref('')
const dialogType = ref('add') const dialogType = ref('add')
const dialogWidth = ref('600px') const fullScreen = ref(false)
// //
const roleForm = ref({ const roleForm = ref({
@ -167,10 +167,11 @@ const handleDeleteRole = async (row: any) => {
const handleDialogType = (type: string) => { const handleDialogType = (type: string) => {
if (type === 'permissions') { if (type === 'permissions') {
roleFormItemOptions.value = permissionsFormItem as any; roleFormItemOptions.value = permissionsFormItem as any;
dialogWidth.value = '900px' fullScreen.value = true
console.log('权限弹窗', fullScreen.value)
} else { } else {
roleFormItemOptions.value = roleFormItem as any; roleFormItemOptions.value = roleFormItem as any;
dialogWidth.value = '600px' fullScreen.value = false
} }
} }