|
|
|
@ -203,7 +203,9 @@ class CaseNew extends Component{
|
|
|
|
|
author_name:values.userName,
|
|
|
|
|
author_school_name:values.userUnit,
|
|
|
|
|
content:values.description,
|
|
|
|
|
attachment_ids:this.state.filesID,
|
|
|
|
|
attachment_ids:this.state.contentFileList.map(item=>{
|
|
|
|
|
return (item.response ? item.response.id : item.id )
|
|
|
|
|
}),
|
|
|
|
|
tag_ids:this.state.casesTags,
|
|
|
|
|
cover_id:this.state.coverID,
|
|
|
|
|
publish:type == 'save' ? false : true
|
|
|
|
@ -436,7 +438,7 @@ class CaseNew extends Component{
|
|
|
|
|
<Form.Item>
|
|
|
|
|
<div className="clearfix mt30 mb30">
|
|
|
|
|
{
|
|
|
|
|
(!caseID || (CaseDetail && CaseDetail.status == "pending" || CaseDetail.status == "refused")) ? <Button type="primary" onClick={()=>this.handleSubmit("submit")} className="defalutSubmitbtn fl mr20">申请发布</Button> : ""
|
|
|
|
|
(!caseID || (CaseDetail && CaseDetail.status == "pending" || CaseDetail && CaseDetail.status == "refused")) ? <Button type="primary" onClick={()=>this.handleSubmit("submit")} className="defalutSubmitbtn fl mr20">申请发布</Button> : ""
|
|
|
|
|
}
|
|
|
|
|
<a className="defalutCancelbtn fl" onClick={()=>this.handleSubmit("save")}>保存</ a>
|
|
|
|
|
</div>
|
|
|
|
|