fix 修复分页未生效的问题

This commit is contained in:
timerzz 2024-05-16 12:32:57 +08:00
parent eb76595bb9
commit 5c3773e235

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="h-full m-4 bg-white rounded-2 shadow-lg p-8 flex flex-col justify-between space-y-4"> <div class="h-full m-4 bg-white rounded-2 shadow-lg p-8 flex flex-col justify-between space-y-4 overscroll-auto">
<div class="flex justify-between"> <div class="flex justify-between">
<div class="flex items-center space-x-16"> <div class="flex items-center space-x-16">
<div>当前汇率<span class="text-xl">{{spiderCfg.exchangeRate}}</span></div> <div>当前汇率<span class="text-xl">{{spiderCfg.exchangeRate}}</span></div>
@ -10,7 +10,7 @@
<a-button type="primary" :disabled="loading" @click="search">搜索</a-button> <a-button type="primary" :disabled="loading" @click="search">搜索</a-button>
</div> </div>
</div> </div>
<div class="h-full border-0 border-t-1 border-solid border-gray-300 pt-4"> <div class="h-full border-0 border-t-1 border-solid border-gray-300 pt-4 overscroll-auto ">
<a-spin :spinning="loading" :indicator="indicator"> <a-spin :spinning="loading" :indicator="indicator">
<a-table :dataSource="data.list" :columns="columns" :custom-row="customRow" :pagination="false" @change="tableChange" rowKey="pid" @expand="expand"> <a-table :dataSource="data.list" :columns="columns" :custom-row="customRow" :pagination="false" @change="tableChange" rowKey="pid" @expand="expand">
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
@ -86,7 +86,7 @@
</a-table> </a-table>
</a-spin> </a-spin>
</div> </div>
<a-pagination :disabled="loading" class="text-right" v-model:current="query.page" :total="data.total" show-less-items @change="list"/> <a-pagination :disabled="loading" class="text-right" v-model:current="query.page" v-model:page-size="query.size" :total="data.total" show-less-items @change="list"/>
</div> </div>
<a-modal v-model:open="editData.editModal" @ok="doUpdate"> <a-modal v-model:open="editData.editModal" @ok="doUpdate">
<template #title> <template #title>