|
@@ -181,11 +181,15 @@ const DemandDetailForm = Form.create()(
|
|
|
}).done(
|
|
|
function(data) {
|
|
|
if (!data.error.length) {
|
|
|
- message.success('保存成功!');
|
|
|
this.setState({
|
|
|
loading: false,
|
|
|
editvisible: false
|
|
|
});
|
|
|
+ if(index){
|
|
|
+ this.submission();
|
|
|
+ }else{
|
|
|
+ message.success('保存成功!');
|
|
|
+ }
|
|
|
} else {
|
|
|
message.warning(data.error[0].message);
|
|
|
}
|
|
@@ -264,8 +268,7 @@ const DemandDetailForm = Form.create()(
|
|
|
}.bind(this)
|
|
|
);
|
|
|
},
|
|
|
- submission(e, index) {
|
|
|
- this.handleSubmit(e, index);
|
|
|
+ submission(e) {
|
|
|
$.ajax({
|
|
|
method: 'get',
|
|
|
dataType: 'json',
|
|
@@ -279,6 +282,7 @@ const DemandDetailForm = Form.create()(
|
|
|
}).done(
|
|
|
function(data) {
|
|
|
if (!data.error.length) {
|
|
|
+ message.success('提交成功,请耐心等待审核结果.')
|
|
|
this.setState({
|
|
|
loading: false
|
|
|
});
|
|
@@ -358,7 +362,11 @@ const DemandDetailForm = Form.create()(
|
|
|
return;
|
|
|
}
|
|
|
if(this.state.advertisement&&(this.state.advertisement).length>30){
|
|
|
- message.warning('项目营销说明字数不得超过30个字。');
|
|
|
+ message.warning('项目营销说明字数不得超过30个字.');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(this.state.introduce&&(this.state.introduce.length)>10000){
|
|
|
+ message.warning('业务项目服务内容不大于10000字符')
|
|
|
return;
|
|
|
}
|
|
|
this.setState({
|
|
@@ -445,7 +453,7 @@ const DemandDetailForm = Form.create()(
|
|
|
let plainOptions= this.props.tagList||[];
|
|
|
return (
|
|
|
<div className="patent-desc">
|
|
|
- <Form layout="horizontal" onSubmit={(e)=>{this.handleSubmit(e)}} id="demand-form">
|
|
|
+ <Form layout="horizontal" onSubmit={(e)=>{this.handleSubmit(e,0)}} id="demand-form">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
<div className="clearfix" style={{ paddingLeft: '86px' }}>
|
|
|
<FormItem
|
|
@@ -748,7 +756,7 @@ const DemandDetailForm = Form.create()(
|
|
|
className="set-submit"
|
|
|
type="ghost"
|
|
|
onClick={(e) => {
|
|
|
- this.submission(e,1)
|
|
|
+ this.handleSubmit(e,1)
|
|
|
}}
|
|
|
>
|
|
|
提交审核
|