|
@@ -21,6 +21,16 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ <el-row class="page">
|
|
|
+ <el-pagination
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="currentPage"
|
|
|
+ layout="total, prev, pager, next, jumper"
|
|
|
+ :total="total"
|
|
|
+ >
|
|
|
+ </el-pagination>
|
|
|
+ </el-row>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -31,9 +41,12 @@ export default {
|
|
|
name: 'otheruserList',
|
|
|
props: {
|
|
|
debtTable: null,
|
|
|
+ total: null,
|
|
|
},
|
|
|
components: {},
|
|
|
- data: () => ({}),
|
|
|
+ data: () => ({
|
|
|
+ currentPage: 1,
|
|
|
+ }),
|
|
|
created() {},
|
|
|
computed: {},
|
|
|
methods: {
|
|
@@ -43,8 +56,19 @@ export default {
|
|
|
clickRest(id) {
|
|
|
this.$emit('clickRest', id);
|
|
|
},
|
|
|
+ handleSizeChange(val) {
|
|
|
+ console.log(`每页 ${val} 条`);
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ console.log(`当前页: ${val}`);
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="less" scoped></style>
|
|
|
+<style lang="less" scoped>
|
|
|
+.page {
|
|
|
+ text-align: center;
|
|
|
+ padding: 15px 0;
|
|
|
+}
|
|
|
+</style>
|