diff --git a/src/models/Staff.ts b/src/models/Staff.ts index 035a8e7..af7dbf5 100644 --- a/src/models/Staff.ts +++ b/src/models/Staff.ts @@ -72,9 +72,7 @@ export class InvoiceSearchOption{ this.pageNum=0 this.pageSize=20 } - private nullOrValue(){ - } toString(){ let res="pageNum="+this.pageNum+"&pageSize="+this.pageSize res+=(this.invoiceNo===null||this.invoiceNo===""?"":("&invoiceNo="+this.invoiceNo)); diff --git a/src/pages/Invoice/mine/InvoiceListView.tsx b/src/pages/Invoice/mine/InvoiceListView.tsx index 2a00e6a..85e13f1 100644 --- a/src/pages/Invoice/mine/InvoiceListView.tsx +++ b/src/pages/Invoice/mine/InvoiceListView.tsx @@ -20,6 +20,7 @@ class InvoiceSearch extends React.Component { searchContent:'请在此输入', invoiceSearchOption:new InvoiceSearchOption() } + this.onSearch('') } onSearch=(value: string)=>{ if(this.state.activatedOption === "发票代码") {