dengzhiguo 7 years ago
parent
commit
979974a23b
1 changed files with 6 additions and 3 deletions
  1. 6 3
      js/component/manageCenter/set/business/businessProject.jsx

+ 6 - 3
js/component/manageCenter/set/business/businessProject.jsx

@@ -416,6 +416,9 @@ const BusinessProject=Form.create()(React.createClass({
 		        let dis='';
 		        if(this.state.ProvinceCity==undefined||this.state.ProvinceCity.length==0){
 		       		message.warning('请选择项目有效范围');
+		       		this.setState({
+		                loading: false
+		            });
 		    		return false;
 		       	}else{
 		       		switch(parseInt(this.state.ProvinceCity.length)){
@@ -444,9 +447,9 @@ const BusinessProject=Form.create()(React.createClass({
 		            	memberPrice:this.state.editMemberPrice,//项目ID
 		            	status:this.state.editStatus,//项目状态 
 		            	country:isCountry,//是否全国
-		            	province:pro,//省
-		            	city:city,//市
-		            	district:dis,//区
+		            	province:pro?pro:'',//省
+		            	city:city?city:'',//市
+		            	district:dis?dis:'',//区
 		            	minLogo:theorgCodeUrl,
 		            	maxLogo:thecompanyLogoUrl,
 		            	introduce:this.state.editIntroduce,//项目介绍