perf: 开启列表图片懒加载并优化分页大小

This commit is contained in:
DXC
2026-03-10 09:29:49 +08:00
parent 529b2a218a
commit 6fc6851e57
3 changed files with 6 additions and 3 deletions

View File

@ -184,6 +184,7 @@
:preview-src-list="getImagesOnly(scope.row[col.prop]).map(u => getImageUrl(u))"
preview-teleported
fit="cover"
lazy
>
<template #error>
<div class="image-slot"><el-icon><Picture /></el-icon></div>
@ -580,7 +581,7 @@ const dialogStatus = ref<'create' | 'update'>('create')
const tableData = ref([])
const total = ref(0)
const formRef = ref()
const queryParams = reactive({ page: 1, pageSize: 100, keyword: '', sku: '', category: '', material_type: '', statuses: ['在库', '借库'], company: '', orderByColumn: '', isAsc: '', advancedFilters: [] })
const queryParams = reactive({ page: 1, pageSize: 50, keyword: '', sku: '', category: '', material_type: '', statuses: ['在库', '借库'], company: '', orderByColumn: '', isAsc: '', advancedFilters: [] })
const categoryOptions = ref<string[]>([])
const typeOptions = ref<string[]>([])
const companyOptions = ref<string[]>([]) // [新增]