|
@@ -307,6 +307,10 @@ export default defineComponent({
|
|
formState.totalRecruit = 0;
|
|
formState.totalRecruit = 0;
|
|
const result: any = await getList(searchParams);
|
|
const result: any = await getList(searchParams);
|
|
dataList.value = result.list;
|
|
dataList.value = result.list;
|
|
|
|
+ if (result.nextPage <= 1) {
|
|
|
|
+ // 设置分页最大页码
|
|
|
|
+ searchParams.pageIndex = 1;
|
|
|
|
+ }
|
|
const postCountResult:any = await getRecruitCount(searchParams);
|
|
const postCountResult:any = await getRecruitCount(searchParams);
|
|
formState.totalRecruit = postCountResult;
|
|
formState.totalRecruit = postCountResult;
|
|
formState.total = result.total;
|
|
formState.total = result.total;
|