Skip to content

Commit 8b666f9

Browse files
committed
fix(User Management): Batch Operation Scroll to the page turner and the user needs to operate
1 parent d6576a9 commit 8b666f9

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ const handleCurrentChange = (val: number) => {
231231
</el-button>
232232
</div>
233233
</div>
234-
<div class="table-content">
234+
<div class="table-content" :class="multipleSelectionAll.length && 'show-pagenation_height'">
235235
<div class="preview-or-schema">
236236
<el-table
237237
ref="multipleTableRef"
@@ -396,6 +396,10 @@ const handleCurrentChange = (val: number) => {
396396
max-height: calc(100% - 104px);
397397
overflow-y: auto;
398398
399+
&.show-pagenation_height {
400+
max-height: calc(100% - 165px);
401+
}
402+
399403
.preview-or-schema {
400404
.user-status-container {
401405
display: flex;

frontend/src/views/system/user/User.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@
3838
</el-button>
3939
</div>
4040
</div>
41-
<div class="sqlbot-table" :class="state.filterTexts.length && 'is-filter'">
41+
<div
42+
class="sqlbot-table"
43+
:class="[
44+
state.filterTexts.length && 'is-filter',
45+
multipleSelectionAll.length && 'show-pagenation_height',
46+
]"
47+
>
4248
<filter-text
4349
:total="state.pageInfo.total"
4450
:filter-texts="state.filterTexts"
@@ -854,6 +860,10 @@ onMounted(() => {
854860
max-height: calc(100vh - 150px);
855861
overflow-y: auto;
856862
863+
&.show-pagenation_height {
864+
max-height: calc(100vh - 215px);
865+
}
866+
857867
:deep(.ed-popper.is-dark) {
858868
max-width: 400px;
859869
}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ const handleCurrentChange = (val: number) => {
395395
</el-input>
396396
</div>
397397
</div>
398-
<div class="table-content">
398+
<div class="table-content" :class="multipleSelectionAll.length && 'show-pagenation_height'">
399399
<div class="preview-or-schema">
400400
<el-table
401401
ref="multipleTableRef"
@@ -731,6 +731,10 @@ const handleCurrentChange = (val: number) => {
731731
height: calc(100% - 168px);
732732
overflow-y: auto;
733733
734+
&.show-pagenation_height {
735+
height: calc(100% - 220px);
736+
}
737+
734738
.preview-or-schema {
735739
:deep(.user-source) {
736740
cursor: pointer;

0 commit comments

Comments
 (0)