perf(system): optimize large data rendering in stocktake, fix N+1 in warehouse, and add upload size limits
This commit is contained in:
@ -235,7 +235,7 @@
|
||||
<div class="table-container">
|
||||
<el-table
|
||||
:data="filteredListData"
|
||||
height="100%"
|
||||
height="600"
|
||||
stripe
|
||||
border
|
||||
row-key="uniqueKey"
|
||||
@ -660,7 +660,7 @@ const resumeSession = async () => {
|
||||
const res: any = await request({
|
||||
url: '/v1/inbound/stock/draft/list',
|
||||
method: 'get',
|
||||
params: { page: 1, limit: 10000 } // 获取足够多的数据
|
||||
params: { page: 1, limit: 500 } // ★ 限制单次加载数量,防止内存溢出
|
||||
})
|
||||
|
||||
const drafts = res && res.items ? res.items : []
|
||||
@ -983,7 +983,7 @@ const fetchInventoryList = async (silent = false) => {
|
||||
method: 'get',
|
||||
params: {
|
||||
page: 1,
|
||||
limit: 10000, // 获取全部已盘点记录
|
||||
limit: 500, // ★ 限制单次加载数量,防止内存溢出
|
||||
keyword: listKeyword.value
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user