Skip to content

Commit 98a95e6

Browse files
author
preschooler
committed
🎈 perf:优化权限选择框
1 parent 323e619 commit 98a95e6

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

src/views/system/role/RoleAssignMenuForm.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<el-tag>{{ formData.code }}</el-tag>
99
</el-form-item>
1010
<el-form-item label="菜单权限">
11-
<el-card class="cardHeight">
11+
<el-card class="w-full h-400px !overflow-y-scroll" shadow="never">
1212
<template #header>
1313
全选/全不选:
1414
<el-switch
@@ -151,10 +151,3 @@ const handleCheckedTreeExpand = () => {
151151
}
152152
}
153153
</script>
154-
<style lang="scss" scoped>
155-
.cardHeight {
156-
width: 100%;
157-
max-height: 400px;
158-
overflow-y: scroll;
159-
}
160-
</style>

src/views/system/role/RoleDataPermissionForm.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<Dialog v-model="dialogVisible" title="菜单权限" width="800">
2+
<Dialog v-model="dialogVisible" title="数据权限" width="800">
33
<el-form ref="formRef" v-loading="formLoading" :model="formData" label-width="80px">
44
<el-form-item label="角色名称">
55
<el-tag>{{ formData.name }}</el-tag>
@@ -21,9 +21,9 @@
2121
<el-form-item
2222
v-if="formData.dataScope === SystemDataScopeEnum.DEPT_CUSTOM"
2323
label="权限范围"
24-
style="display: flex"
24+
label-width="80px"
2525
>
26-
<el-card class="card" shadow="never">
26+
<el-card class="w-full h-400px !overflow-y-scroll" shadow="never">
2727
<template #header>
2828
全选/全不选:
2929
<el-switch

src/views/system/tenantPackage/TenantPackageForm.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<el-input v-model="formData.name" placeholder="请输入套餐名" />
1212
</el-form-item>
1313
<el-form-item label="菜单权限">
14-
<el-card class="cardHeight">
14+
<el-card class="w-full h-400px !overflow-y-scroll" shadow="never">
1515
<template #header>
1616
全选/全不选:
1717
<el-switch
@@ -185,10 +185,3 @@ const handleCheckedTreeExpand = () => {
185185
}
186186
}
187187
</script>
188-
<style lang="scss" scoped>
189-
.cardHeight {
190-
width: 100%;
191-
max-height: 400px;
192-
overflow-y: scroll;
193-
}
194-
</style>

0 commit comments

Comments
 (0)