修复了发票列表界面的错误
parent
d1ece70355
commit
d14b265066
|
@ -258,21 +258,22 @@ class InvoiceListView extends React.Component<any, any> {
|
|||
invoiceNo: null,
|
||||
invoiceCode: null,
|
||||
invoiceSearchOption: new InvoiceSearchOption(),
|
||||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
totalNum: 2,
|
||||
PaginationKey: -2
|
||||
totalNum : 200,
|
||||
PaginationKey : -200
|
||||
}
|
||||
}
|
||||
|
||||
pageNum:Number = 1;
|
||||
pageSize:Number = 20;
|
||||
componentDidMount(){
|
||||
this.searchInvoiceContent()
|
||||
}
|
||||
|
||||
onChange = (pageCurrentNum: Number, pageCurrentSize: Number) => {
|
||||
console.log(pageCurrentNum, pageCurrentSize)
|
||||
this.setState({pageNum: pageCurrentNum, pageSize: pageCurrentSize})
|
||||
console.log(this.state.pageNum, this.state.pageSize)
|
||||
// this.setState({pageNum: pageCurrentNum, pageSize: pageCurrentSize})
|
||||
this.pageNum = pageCurrentNum;
|
||||
this.pageSize = pageCurrentSize
|
||||
console.log(this.pageNum, this.pageSize)
|
||||
this.searchInvoiceContent()
|
||||
}
|
||||
|
||||
|
@ -289,8 +290,9 @@ class InvoiceListView extends React.Component<any, any> {
|
|||
params[key] = null
|
||||
}
|
||||
})
|
||||
params['pageNum'] = this.state.pageNum-1
|
||||
params['pageSize'] = this.state.pageSize
|
||||
// @ts-ignore
|
||||
params['pageNum'] = this.pageNum-1
|
||||
params['pageSize'] = this.pageSize
|
||||
axiosInstance({
|
||||
url: 'common/invoice',
|
||||
method: 'get',
|
||||
|
|
Loading…
Reference in New Issue