flat: 修改

This commit is contained in:
史典卓
2025-08-20 13:38:47 +08:00
parent 58c36c01a0
commit 07b2aa5f80
12 changed files with 184 additions and 35 deletions

View File

@@ -112,7 +112,7 @@ const searchParams = ref({});
const pageSize = ref(10);
const { list, loading, refresh, loadMore } = usePagination(
(params) => $api.createRequest('/app/job/littleVideo', params),
(params) => $api.createRequest('/app/job/littleVideo', params, 'GET', true),
dataToImg, // 转换函数
{
pageSize: pageSize,
@@ -122,6 +122,9 @@ const { list, loading, refresh, loadMore } = usePagination(
onBeforeRequest: () => {
loadmoreRef.value?.change('loading');
},
onAfterRequest: () => {
loadmoreRef.value?.change('more');
},
}
);
@@ -244,7 +247,7 @@ function getJobList(type = 'add') {
jobTitle: searchValue.value,
};
$api.createRequest('/app/job/list', params).then((resData) => {
$api.createRequest('/app/job/list', params, 'GET', true).then((resData) => {
const { rows, total } = resData;
if (type === 'add') {
const str = pageState.pageSize * (pageState.page - 1);