|
@@ -174,18 +174,23 @@ const FollowDetail = React.createClass({
|
|
|
};
|
|
|
thedata = {};
|
|
|
};
|
|
|
- for(let i = 0; i < data.data.userBusinessList.length; i++) {
|
|
|
- let thisdata = data.data.userBusinessList[i];
|
|
|
- listArr.push({
|
|
|
- id: thisdata.businessId,
|
|
|
- businessName:thisdata.businessProjectId,
|
|
|
- businessVarietiesName:thisdata.businessVarietiesName,
|
|
|
- businessProjectName:thisdata.businessProjectName,
|
|
|
- followSituation: thisdata.followSituation==null?undefined : String(thisdata.followSituation),
|
|
|
- customerStatus: thisdata.customerStatus==null?undefined : String(thisdata.customerStatus),
|
|
|
- remarks: thisdata.remarks
|
|
|
- });
|
|
|
- };
|
|
|
+ if(data.data.userBusinessList[0]!=null) {
|
|
|
+ for(let i = 0; i < data.data.userBusinessList.length; i++) {
|
|
|
+ let thisdata = data.data.userBusinessList[i];
|
|
|
+ if(thisdata!=null){
|
|
|
+ listArr.push({
|
|
|
+ key:i,
|
|
|
+ businessName:thisdata.businessProjectId,
|
|
|
+ businessVarietiesName:thisdata.businessVarietiesName,
|
|
|
+ businessProjectName:thisdata.businessProjectName,
|
|
|
+ followSituation: thisdata.followSituation==null?undefined : String(thisdata.followSituation),
|
|
|
+ customerStatus: thisdata.customerStatus==null?undefined : String(thisdata.customerStatus),
|
|
|
+ remarks: thisdata.remarks
|
|
|
+ });
|
|
|
+ }
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
this.setState({
|
|
|
contacts: thedata.contacts,
|
|
|
uid: thedata.uid,
|
|
@@ -385,7 +390,6 @@ const FollowDetail = React.createClass({
|
|
|
<div className="clearfix" >
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<Table
|
|
|
- rowKey={record => record.id}
|
|
|
pagination={false}
|
|
|
columns={this.state.intentionList}
|
|
|
dataSource={this.state.data}
|