Skip to content

Commit 99657da

Browse files
committed
fix: bug fix
1 parent 221d21b commit 99657da

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

frontend/src/views/system/permission/SelectPermission.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,13 @@ defineExpose({
216216
.flex {
217217
display: flex;
218218
}
219+
.ed-checkbox {
220+
margin-right: 0 !important;
221+
}
219222
220223
.border-r {
221224
border-right: 1px solid #dee0e3;
225+
width: 50%;
222226
}
223227
}
224228
</style>

frontend/src/views/system/permission/index.vue

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,8 @@ const next = () => {
417417
}
418418
})
419419
}
420-
const savePermission = () => {
420+
421+
const save = () => {
421422
const { id, name, permissions, users } = cloneDeep(currentPermission)
422423
423424
const permissionsObj = permissions.map((ele: any) => {
@@ -459,6 +460,18 @@ const savePermission = () => {
459460
handleSearch()
460461
})
461462
}
463+
const savePermission = () => {
464+
if (!isCreate.value && activeStep.value === 0) {
465+
termFormRef.value.validate((res: any) => {
466+
if (res) {
467+
save()
468+
}
469+
})
470+
return
471+
}
472+
473+
save()
474+
}
462475
463476
const columnRules = {
464477
name: [
@@ -809,6 +822,8 @@ const columnRules = {
809822

810823
<style lang="less" scoped>
811824
.permission {
825+
height: 100%;
826+
width: 100%;
812827
.ed-empty {
813828
padding-top: 200px;
814829
padding-bottom: 0;

0 commit comments

Comments
 (0)