|  | @@ -228,10 +228,10 @@ const BusinessProject=Form.create()(React.createClass({
 | 
												
													
														
															|  |              url: globalConfig.context + '/api/admin/jtBusiness/category/list',
 |  |              url: globalConfig.context + '/api/admin/jtBusiness/category/list',
 | 
												
													
														
															|  |              data: {
 |  |              data: {
 | 
												
													
														
															|  |                  pageNo:  1,
 |  |                  pageNo:  1,
 | 
												
													
														
															|  | -                pageSize: 99999,
 |  | 
 | 
												
													
														
															|  | 
 |  | +				pageSize: 99999,
 | 
												
													
														
															|  |              },
 |  |              },
 | 
												
													
														
															|  |              success: function (data) {
 |  |              success: function (data) {
 | 
												
													
														
															|  | -                let theArr = [];
 |  | 
 | 
												
													
														
															|  | 
 |  | +                let theArr = [],firstData=[];
 | 
												
													
														
															|  |                  if (!data.data || !data.data.list) {
 |  |                  if (!data.data || !data.data.list) {
 | 
												
													
														
															|  |                      if (data.error && data.error.length) {
 |  |                      if (data.error && data.error.length) {
 | 
												
													
														
															|  |                          message.warning(data.error[0].message);
 |  |                          message.warning(data.error[0].message);
 | 
												
											
												
													
														
															|  | @@ -245,10 +245,19 @@ const BusinessProject=Form.create()(React.createClass({
 | 
												
													
														
															|  |  							name: thisdata.name,
 |  |  							name: thisdata.name,
 | 
												
													
														
															|  |  							superName:thisdata.superName//上级品类
 |  |  							superName:thisdata.superName//上级品类
 | 
												
													
														
															|  |  						});
 |  |  						});
 | 
												
													
														
															|  | 
 |  | +						if(thisdata.layer=='2'){
 | 
												
													
														
															|  | 
 |  | +							firstData.push({
 | 
												
													
														
															|  | 
 |  | +								key: i,
 | 
												
													
														
															|  | 
 |  | +								id:thisdata.id,
 | 
												
													
														
															|  | 
 |  | +								name: thisdata.name,
 | 
												
													
														
															|  | 
 |  | +								superName:thisdata.superName//上级品类
 | 
												
													
														
															|  | 
 |  | +							})
 | 
												
													
														
															|  | 
 |  | +						}
 | 
												
													
														
															|  |                      };
 |  |                      };
 | 
												
													
														
															|  |                  };
 |  |                  };
 | 
												
													
														
															|  |                  this.setState({
 |  |                  this.setState({
 | 
												
													
														
															|  | -                    categoryList: theArr,
 |  | 
 | 
												
													
														
															|  | 
 |  | +					categoryList: theArr,
 | 
												
													
														
															|  | 
 |  | +					firstData:firstData
 | 
												
													
														
															|  |  				});
 |  |  				});
 | 
												
													
														
															|  |  				this.loadData();
 |  |  				this.loadData();
 | 
												
													
														
															|  |              }.bind(this),
 |  |              }.bind(this),
 | 
												
											
												
													
														
															|  | @@ -303,7 +312,6 @@ const BusinessProject=Form.create()(React.createClass({
 | 
												
													
														
															|  |              });
 |  |              });
 | 
												
													
														
															|  |              maxPictureUrl = picArr.join(",");
 |  |              maxPictureUrl = picArr.join(",");
 | 
												
													
														
															|  |  		};
 |  |  		};
 | 
												
													
														
															|  | -
 |  | 
 | 
												
													
														
															|  |          $.ajax({
 |  |          $.ajax({
 | 
												
													
														
															|  |              method: "post",
 |  |              method: "post",
 | 
												
													
														
															|  |              dataType: "json",
 |  |              dataType: "json",
 | 
												
											
												
													
														
															|  | @@ -322,8 +330,8 @@ const BusinessProject=Form.create()(React.createClass({
 | 
												
													
														
															|  |  				city:this.state.ProvinceCity?this.state.ProvinceCity[1]:'',
 |  |  				city:this.state.ProvinceCity?this.state.ProvinceCity[1]:'',
 | 
												
													
														
															|  |  				introduce:this.state.introduce,
 |  |  				introduce:this.state.introduce,
 | 
												
													
														
															|  |  				value:this.state.value,
 |  |  				value:this.state.value,
 | 
												
													
														
															|  | -				minImgUrl:minPictureUrl,
 |  | 
 | 
												
													
														
															|  | -				maxImgUrl:maxPictureUrl,
 |  | 
 | 
												
													
														
															|  | 
 |  | +				minImgUrl:minPictureUrl.length?minPictureUrl:'',
 | 
												
													
														
															|  | 
 |  | +				maxImgUrl:maxPictureUrl.length?maxPictureUrl:'',
 | 
												
													
														
															|  |  				applyConditions:this.state.applyConditions,
 |  |  				applyConditions:this.state.applyConditions,
 | 
												
													
														
															|  |              }
 |  |              }
 | 
												
													
														
															|  |          }).done(function (data) {
 |  |          }).done(function (data) {
 | 
												
											
												
													
														
															|  | @@ -537,6 +545,7 @@ const BusinessProject=Form.create()(React.createClass({
 | 
												
													
														
															|  |          const hasSelected = this.state.selectedRowKeys.length > 0;
 |  |          const hasSelected = this.state.selectedRowKeys.length > 0;
 | 
												
													
														
															|  |  		const { RangePicker } = DatePicker;
 |  |  		const { RangePicker } = DatePicker;
 | 
												
													
														
															|  |  		const categoryList = this.state.categoryList ||[];
 |  |  		const categoryList = this.state.categoryList ||[];
 | 
												
													
														
															|  | 
 |  | +		const firstData = this.state.firstData || [];
 | 
												
													
														
															|  |          return (
 |  |          return (
 | 
												
													
														
															|  |              <div className="user-content" >
 |  |              <div className="user-content" >
 | 
												
													
														
															|  |                  <div className="content-title">
 |  |                  <div className="content-title">
 | 
												
											
												
													
														
															|  | @@ -550,7 +559,7 @@ const BusinessProject=Form.create()(React.createClass({
 | 
												
													
														
															|  |                              value={this.state.cid}
 |  |                              value={this.state.cid}
 | 
												
													
														
															|  |                              onChange={(e) => { this.setState({ cid: e }) }} notFoundContent="未获取到上级品类列表">
 |  |                              onChange={(e) => { this.setState({ cid: e }) }} notFoundContent="未获取到上级品类列表">
 | 
												
													
														
															|  |                            	 {
 |  |                            	 {
 | 
												
													
														
															|  | -								categoryList.map(function (item) {
 |  | 
 | 
												
													
														
															|  | 
 |  | +								firstData.map(function (item) {
 | 
												
													
														
															|  |  										return <Select.Option key={item.id} >{item.name}</Select.Option>
 |  |  										return <Select.Option key={item.id} >{item.name}</Select.Option>
 | 
												
													
														
															|  |  								})
 |  |  								})
 | 
												
													
														
															|  |  							}
 |  |  							}
 | 
												
											
												
													
														
															|  | @@ -602,7 +611,7 @@ const BusinessProject=Form.create()(React.createClass({
 | 
												
													
														
															|  |  			                                <Select placeholder="请选择业务品类" value={this.state.addCid} onChange={(e)=>{this.setState({addCid:e})}}
 |  |  			                                <Select placeholder="请选择业务品类" value={this.state.addCid} onChange={(e)=>{this.setState({addCid:e})}}
 | 
												
													
														
															|  |  				                                notFoundContent="未获取到业务品类列表" style={{width:'94%'}} required="required">
 |  |  				                                notFoundContent="未获取到业务品类列表" style={{width:'94%'}} required="required">
 | 
												
													
														
															|  |  				                                {
 |  |  				                                {
 | 
												
													
														
															|  | -													categoryList.map(function (item) {
 |  | 
 | 
												
													
														
															|  | 
 |  | +													firstData.map(function (item) {
 | 
												
													
														
															|  |  															return <Select.Option key={item.id} >{item.name}</Select.Option>
 |  |  															return <Select.Option key={item.id} >{item.name}</Select.Option>
 | 
												
													
														
															|  |  													})
 |  |  													})
 | 
												
													
														
															|  |  												}
 |  |  												}
 |