|
@@ -173,7 +173,8 @@ const DemandList = React.createClass({
|
|
|
rowItem = this.state.mateselectedRows[idx];
|
|
|
};
|
|
|
this.setState({
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
+ mateselectedRowKeys: [],
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -542,8 +543,7 @@ const DemandList = React.createClass({
|
|
|
};
|
|
|
},
|
|
|
tableRowClick(record, index) {
|
|
|
-
|
|
|
- this.state.RowData = record;
|
|
|
+ this.state.RowData = record;
|
|
|
if(index!=undefined){
|
|
|
this.setState({
|
|
|
showDesc: true
|
|
@@ -644,6 +644,7 @@ const DemandList = React.createClass({
|
|
|
id:demandId,
|
|
|
},
|
|
|
success: function (data) {
|
|
|
+ console.log(data.data);
|
|
|
this.setState({
|
|
|
mademandId:data.data.id,//录入人
|
|
|
adminName: data.data.techBrokerId,//录入人
|
|
@@ -669,7 +670,7 @@ const DemandList = React.createClass({
|
|
|
this.matereset();
|
|
|
this.mateTop();
|
|
|
},
|
|
|
- //新增一条匹配记录
|
|
|
+ //修改一条匹配记录
|
|
|
addmateSubmits(e){
|
|
|
e.preventDefault();
|
|
|
this.setState({
|
|
@@ -679,9 +680,9 @@ const DemandList = React.createClass({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url:globalConfig.context + '/api/admin/demand/addDemandFollow',
|
|
|
+ url:globalConfig.context + '/api/admin/demand/updateDemandFollow',
|
|
|
data:{
|
|
|
- id:this.state.mademandId,//需求ID
|
|
|
+ id:this.state.mademandIds,//需求ID
|
|
|
contactMobile:this.state.mateContactMobile,//成果方联系方式
|
|
|
contacts:this.state.mateContacts,//成果联系人
|
|
|
organization:this.state.mateOrganization,//匹配机构
|
|
@@ -702,7 +703,7 @@ const DemandList = React.createClass({
|
|
|
}.bind(this));
|
|
|
|
|
|
},
|
|
|
- //修改一条匹配记录
|
|
|
+ //新增一条匹配记录
|
|
|
addmateSubmit(e){
|
|
|
e.preventDefault();
|
|
|
this.setState({
|
|
@@ -770,6 +771,7 @@ const DemandList = React.createClass({
|
|
|
},
|
|
|
//点开详情
|
|
|
mateTableRowClick(record, index){
|
|
|
+ console.log(record);
|
|
|
this.mateTop();
|
|
|
this.setState({
|
|
|
addmatevisibles: true,
|
|
@@ -778,6 +780,7 @@ const DemandList = React.createClass({
|
|
|
mateContacts:record.contacts,//成果联系人
|
|
|
mateContactMobile:record.contactMobile,//联系人电话
|
|
|
mateRemark:record.remark,//备注
|
|
|
+ mademandIds:record.id,//该条匹配跟进的ID
|
|
|
});
|
|
|
},
|
|
|
addmateNos(){
|
|
@@ -1126,7 +1129,7 @@ const DemandList = React.createClass({
|
|
|
label="匹配来源:"
|
|
|
>
|
|
|
<Input placeholder="匹配来源" value={this.state.mateSources} style={{width:'94%'}}
|
|
|
- onChange={(e)=>{this.setState({mateSources:e.target.value})}} required="required"/>
|
|
|
+ onChange={(e)=>{this.setState({mateSources:e.target.value})}} />
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix" style={{paddingLeft:'60px'}}>
|
|
@@ -1231,7 +1234,7 @@ const DemandList = React.createClass({
|
|
|
label="匹配来源:"
|
|
|
>
|
|
|
<Input placeholder="匹配来源" value={this.state.mateSources} style={{width:'94%'}}
|
|
|
- onChange={(e)=>{this.setState({mateSources:e.target.value})}} required="required"/>
|
|
|
+ onChange={(e)=>{this.setState({mateSources:e.target.value})}} />
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix" style={{paddingLeft:'60px'}}>
|