perf(system): optimize large data rendering in stocktake, fix N+1 in warehouse, and add upload size limits

This commit is contained in:
DXC
2026-04-02 18:51:13 +08:00
parent a52ced0375
commit dbcb7d0d92
2 changed files with 16 additions and 3 deletions

View File

@ -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
}
})