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