This commit is contained in:
qsh
2024-06-05 17:08:27 +08:00
parent a557255b4a
commit 94943df4f9
30 changed files with 1069 additions and 846 deletions

View File

@@ -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')
})