diff --git a/src/components/RefunModal/RefunModal.tsx b/src/components/RefunModal/RefunModal.tsx index aeadd88..8da8469 100644 --- a/src/components/RefunModal/RefunModal.tsx +++ b/src/components/RefunModal/RefunModal.tsx @@ -63,7 +63,7 @@ export default function RefunModal(props: any) { config: { params: { page: 1, - rows: 10, + rows: 20, applyStatus: type } }, diff --git a/src/route/Refun/Refun.tsx b/src/route/Refun/Refun.tsx index ee12348..01ffafd 100644 --- a/src/route/Refun/Refun.tsx +++ b/src/route/Refun/Refun.tsx @@ -46,7 +46,7 @@ export default function Refun() { dataIndex: 'index', align: 'center', width: 80, - render: (_text, _record, index) => (page - 1) * 10 + index + 1, // 显示序号,从1开始 + render: (_text, _record, index) => (page - 1) * 20 + index + 1, // 显示序号,从1开始 }, { title: '系统名称', @@ -289,7 +289,7 @@ export default function Refun() { key: 'reviewReason', align: 'center', // width: 150, - render: (text) =>
{text}
, + render: (text) =>
{text?text:'—'}
, }, { title: '退款凭证', @@ -339,7 +339,7 @@ export default function Refun() { config: { params: { page: page, - rows: 10, + rows: 20, applyStatus: type } }, @@ -383,7 +383,7 @@ export default function Refun() { config: { params: { page: page, - rows: 10, + rows: 20, applyStatus: type } }, @@ -392,7 +392,7 @@ export default function Refun() { // setData(data.data.rows) // setTotal(data.data.total) - if (data.data.rows.length == 0) { + if (data.data.rows.length == 0 && page > 1 ) { getData(page - 1) } else { dispath({ @@ -442,7 +442,7 @@ export default function Refun() { // pagination={false} // 不显示分页 pagination={ { - pageSize: 10, + pageSize: 20, total: total, onChange: (currentPage) => { setPage(currentPage);