Commit be92072c by xinla

滚动优化

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