1. html页面
:pagination="{ ...pagination, current }"
@change="handlePageChange"
2.列表数据
/**抖音下单默认旅行社列表 */
getAgents () {
getAgentsData({ page: this.current }).then(res => {
this.travelAgencyList=res.data.list
this.travelAgency=res.data
})
},
3.分页切换
/**分页 */
handlePageChange ({ current }) {
this.current=current
this.getAgents()
},
代码示例:
<template><a-modal destroyOnClose v-model="visibility" :title="`抖音下单默认旅行社`" :footer="null" width="1006px&