yxk-20260804

改善提案-分页调整、打开序号列
三个菜单首次打开均默认每页显示 12 条。
分页器可切换为 24、36 条每页。
切换菜单、查询、重置条件后分页请求仍正常。
This commit is contained in:
ye1023
2026-08-04 11:12:24 +08:00
parent efeaecbdfd
commit 86212ff445
2 changed files with 8 additions and 2 deletions
@@ -10,14 +10,14 @@ export const columns: BasicColumn[] = [
title: '提案编号',
align:"center",
dataIndex: 'proposalNo',
width:150
width:200
},
{
title: '提案名称',
align:"center",
dataIndex: 'proposalName',
width:250
width:280
},
{
title: '提案类别',
@@ -131,11 +131,17 @@
api: list,
columns,
canResize:false,
showIndexColumn: true,
useSearchForm: false,
actionColumn: {
width: 120,
fixed:'right'
},
pagination: {
current: 1,
pageSize: 12,
pageSizeOptions: ['12', '24', '36'],
},
beforeFetch: async (params) => {
return Object.assign(params, queryParam, {proposalScope: proposalScope.value});
},