|
@@ -135,7 +135,8 @@ const DemandList = React.createClass({
|
|
|
let thisdata = data.data.list[i];
|
|
|
let thisdataDet=data.data.list[i].demandFollowDetail;
|
|
|
let followUp='';
|
|
|
- for(let j=0;j<thisdataDet.length;j++){
|
|
|
+ let a=thisdataDet?thisdataDet.length:0;
|
|
|
+ for(let j=0;j<a;j++){
|
|
|
followUp+=(j+1)+'. '+thisdataDet[j].createTimeFormattedDate+' '+thisdataDet[j].remarks+' \n';
|
|
|
}
|
|
|
theArr.push({
|
|
@@ -1196,7 +1197,7 @@ const DemandList = React.createClass({
|
|
|
<Button className="ContactsList" type="primary" onClick={this.addmate1} style={{float:'left',marginBottom:'10px',marginRight:'20px'}} disabled={!matehasSelected}>添加跟进情况</Button>
|
|
|
<Button className="ContactsList" type="primary" onClick={this.lookmate} style={{float:'left',marginBottom:'10px',marginRight:'20px'}} disabled={!matehasSelected}>查看跟进情况</Button>
|
|
|
<Button className="ContactsList" onClick={this.delect} style={{float:'left',marginBottom:'10px',marginRight:'20px'}} disabled={!matehasSelected}>删除</Button>
|
|
|
- <Button type="primary" onClick={this.tabExel}>导出到表格</Button>
|
|
|
+ <Button type="primary" onClick={this.tabExel} style={{'display':'none'}}>导出到表格</Button>
|
|
|
</div>
|
|
|
<div className="clearfix" >
|
|
|
<Spin spinning={this.state.loading}>
|