This commit is contained in:
xixi 2024-08-26 09:10:30 +08:00
parent 4a8a53c1c2
commit 897ed5c58d
2 changed files with 7 additions and 7 deletions

View File

@ -63,7 +63,7 @@ export default function RefunModal(props: any) {
config: {
params: {
page: 1,
rows: 10,
rows: 20,
applyStatus: type
}
},

View File

@ -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) => <div className='ellipsis-text' title={text}>{text}</div>,
render: (text) => <div className='ellipsis-text' title={text}>{text?text:'—'}</div>,
},
{
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);