liting2017 6 years ago
parent
commit
c41a8e6a3f

+ 6 - 0
js/component/manageCenter/customer/NEW/intentionCustomer/intentionCustomer.jsx

@@ -431,6 +431,12 @@ const IntentionCustomer = Form.create()(React.createClass({
 			if(!this.state.searchMore){
 				this.state.searchMore=true
 			}
+			this.state.nameSearch = '';
+			this.state.addressSearch = [];
+			this.state.provinceSearch = undefined;
+			this.state.citySearch = undefined;
+			this.state.releaseDate[0] = undefined;
+			this.state.releaseDate[1] = undefined;
 			this.loadData(null,nextProps.ApiUrl);
 		};
 	},

+ 3 - 0
js/component/manageCenter/customer/NEW/publicCustomer/publicCustomer.jsx

@@ -162,6 +162,9 @@ const QueryCustomer = React.createClass({
 	},
 	componentWillReceiveProps(nextProps) {
 		if(nextProps.ApiUrl!=this.props.ApiUrl) {
+			this.state.nameSearch='';
+			this.state.provinceSearch=undefined;
+			this.state.addressSearch=[];
 			this.loadData(null,nextProps.ApiUrl);
 		};
 	},

+ 3 - 0
js/component/manageCenter/customer/NEW/query/queryCutomer.jsx

@@ -135,6 +135,9 @@ const QueryCustomer = React.createClass({
 	},
 	componentWillReceiveProps(nextProps) {
 		if(nextProps.ApiUrl!=this.props.ApiUrl) {
+			this.state.nameSearch='';
+			this.state.provinceSearch=undefined;
+			this.state.addressSearch=[];
 			this.loadData(null,nextProps.ApiUrl);
 		};
 	},

+ 6 - 0
js/component/manageCenter/customer/NEW/signCustomer/signCustomer.jsx

@@ -289,6 +289,12 @@ const IntentionCustomer = Form.create()(React.createClass({
 			if(!this.state.searchMore){
 				this.state.searchMore=true
 			}
+			this.state.nameSearch = '';
+			this.state.addressSearch = [];
+			this.state.provinceSearch = undefined;
+			this.state.citySearch = undefined;
+			this.state.releaseDate[0] = undefined;
+			this.state.releaseDate[1] = undefined;
 			this.loadData(null,nextProps.ApiUrl);
 		};
 	},