Compare commits

...

2 Commits

Author SHA1 Message Date
d24ece1724 refactor: 调整分页组件样式和布局 2025-09-05 21:47:20 +08:00
0e8fb5c838 refactor: 添加国外页面查询字段isDomestic 2025-09-05 21:43:22 +08:00
2 changed files with 9 additions and 3 deletions

View File

@ -35,13 +35,19 @@
import { page } from '~/api/upnew/index'
import type { pageRes, pageReq } from '~/api/upnew/types'
const query = reactive<pageReq>({
const query = reactive<
pageReq & {
isDomestic: number
}
>({
pageNo: 1,
pageSize: 10,
projectType: '-1',
editions: '-1',
source: -1,
type: 1,
/**是否是国内: 1是 0否 */
isDomestic: 1,
})
// const result = reactive<pageRes>({
// list: [],

View File

@ -37,11 +37,11 @@
<!-- <div class="text-16px text-[#999999] font-normal">暂无数据</div> -->
<el-empty v-if="!pageRes.list.length" :image="emptyImg"></el-empty>
</div>
<div class="mt-[20px]">
<div class="mt-[20px] text-right">
<el-pagination
v-model:current-page="pageReq.pageNum"
:page-size="pageReq.pageSize"
layout="total, sizes, prev, pager, next"
layout="total, prev, pager, next"
:total="pageRes?.total"
:page-sizes="[10, 20, 30]"
class="justify-center!"