Commit be92072c by xinla

滚动优化

1 parent a8c710b2
......@@ -44,6 +44,9 @@ export default {
type: Boolean,
default: true,
},
scrollElement: {
type: Object,
},
},
computed: {
currentPage: {
......@@ -89,13 +92,13 @@ export default {
<style scoped>
.pagination-container {
position: sticky;
bottom: -20px;
margin-bottom: -20px;
bottom: 0;
z-index: 9;
text-align: right;
background: #fff;
border-top: 1px solid #f8f8f8;
margin-bottom: -20px;
padding: 15px 5px 20px;
text-align: right;
border-top: 1px solid #f8f8f8;
}
.pagination-container.hidden {
display: none;
......
......@@ -124,14 +124,6 @@ export default {
@focus="showSelectTag = true"
placeholder="请选择客群标签" />
<el-button icon="el-icon-search" circle @click="getList(1)"></el-button>
<el-pagination
class="fr"
@current-change="getList"
:current-page="query.pageNum"
:page-size="query.pageSize"
layout="prev, pager, next"
:total="total"></el-pagination>
</el-form-item>
</el-form>
<el-table :data="list" v-loading="loading">
......@@ -160,6 +152,12 @@ export default {
<el-table-column label="活码客群数" align="center" prop="chatGroupNum"></el-table-column>
<el-table-column prop="chatGroupMemberTotalNum" label="群总人数" align="center"></el-table-column>
</el-table>
<pagination
:total="total"
:page.sync="query.pageNum"
:limit.sync="query.pageSize"
layout="total,prev, pager, next, jumper"
@pagination="getList()" />
</div>
<div slot="footer">
<el-button @click="Pvisible = false">取 消</el-button>
......
......@@ -211,6 +211,7 @@ export default {
:total="total"
:page.sync="query.pageNum"
:limit.sync="query.pageSize"
layout="total,prev, pager, next, jumper"
@pagination="getList()" />
</div>
</el-col>
......
......@@ -87,7 +87,7 @@ export default {
padding: 0 15px 0 20px;
}
.container {
position: relative;
position: initial !important; // 用以解决加载遮罩层随内容滚动问题
height: 100%;
overflow-y: auto;
overflow-x: hidden;
......
......@@ -577,9 +577,4 @@
width: 5px;
}
// 让加载遮罩层不随内容滚动
.el-loading-mask {
// position: sticky;
// height: 100%;
}
// }
......@@ -337,6 +337,11 @@ div:focus {
display: flex;
flex-direction: column;
flex: none;
.g-card {
.pagination-container {
bottom: -20px;
}
}
}
}
}
......@@ -344,3 +349,12 @@ div:focus {
.card-group-index + .g-card {
margin-top: 0;
}
.page.container > .g-card {
overflow: initial;
}
.el-dialog__body {
.pagination-container {
padding-bottom: 0 !important;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!