feat:样品分析

This commit is contained in:
houjunxiang
2025-11-15 18:09:04 +08:00
parent d3f6ad4bf6
commit 00e21aebd3
60 changed files with 299 additions and 200 deletions

View File

@@ -7,9 +7,7 @@ export function useListData({ searchParams, api, needInitListData = false, proce
const loadingData = ref(true)
const pageParams = reactive({
pageNo: 1,
pageSize: 10,
order: 'desc',
column: 'createTime'
pageSize: 5
})
const total = ref(0)
const loadStatus = ref('loadmore')
@@ -21,12 +19,12 @@ export function useListData({ searchParams, api, needInitListData = false, proce
...unref(searchParams),
...pageParams
}
let { records, total: pageTotal } = await api(params)
let { list, total: pageTotal } = await api(params)
total.value = pageTotal
if (processData) {
records = processData(records)
list = processData(list)
}
return records
return list
}
// 页面底部触底加载更多