添加分页

This commit is contained in:
熊丽君
2021-08-12 11:50:38 +08:00
parent e75d93de68
commit f7a1b652fe
5 changed files with 50 additions and 6 deletions

View File

@ -84,6 +84,13 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
</template>
<script>
@ -96,8 +103,9 @@ export default {
return {
queryParams: {
pageNum: 1,
pageSize: 100
pageSize: 10
},
total: 0,
unscrambleList: [],
// 归口选项
attributeOptions: [
@ -128,6 +136,7 @@ export default {
getList() {
getScienceResultList(this.queryParams).then(({ data }) => {
this.unscrambleList = data.list;
this.total = data.total;
});
},
// 跳转页面