联调
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
<!-- 分页 -->
|
||||
<Pagination
|
||||
v-model:limit="pageSize"
|
||||
v-model:page="currentPage"
|
||||
v-model:page="pageNo"
|
||||
:total="tableObject.total"
|
||||
@pagination="getList"
|
||||
/>
|
||||
@@ -61,7 +61,7 @@ const emit = defineEmits(['update:tableObject', 'getList', 'getCheckedColumns'])
|
||||
const route = useRoute()
|
||||
const { id: userId } = useUserStore().user //取用户ID
|
||||
|
||||
const currentPage = ref(props.tableObject?.currentPage || 1)
|
||||
const pageNo = ref(props.tableObject?.pageNo || 1)
|
||||
|
||||
const pageSize = ref(props.tableObject?.pageSize || 20)
|
||||
|
||||
@@ -74,7 +74,7 @@ const checkedColumns = ref([])
|
||||
|
||||
// 调用获取数据的接口,分页时需要使用
|
||||
function getList({ page, limit }) {
|
||||
emit('update:tableObject', { ...props.tableObject, currentPage: page, pageSize: limit })
|
||||
emit('update:tableObject', { ...props.tableObject, pageNo: page, pageSize: limit })
|
||||
nextTick(() => {
|
||||
emit('getList')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user