添加分页
This commit is contained in:
@ -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;
|
||||
});
|
||||
},
|
||||
// 跳转页面
|
||||
|
Reference in New Issue
Block a user