毕设资源上传

dev_hss
杨树明 5 years ago
parent 03d14cd4be
commit 64404e5beb

@ -115,6 +115,9 @@ class NewGtaskForms extends Component{
let {data}=this.props; let {data}=this.props;
let task_type=data.task_type let task_type=data.task_type
let topicId=this.props.topicId let topicId=this.props.topicId
let attachment_ids = contentFileList.map(item => {
return item.response ? item.response.id : item.id
})
this.props.form.validateFields((err, values) => { this.props.form.validateFields((err, values) => {
const mdContnet = this.contentMdRef.current.getValue().trim(); const mdContnet = this.contentMdRef.current.getValue().trim();
@ -132,7 +135,7 @@ class NewGtaskForms extends Component{
max_num:task_type===1?undefined:max_num, max_num:task_type===1?undefined:max_num,
base_on_project: task_type===1?task_type:base_on_project===true?1:0 base_on_project: task_type===1?task_type:base_on_project===true?1:0
}, },
attachment_ids:contentFileList attachment_ids:attachment_ids
} }
).then((response) => { ).then((response) => {
if(response.data.status===0){ if(response.data.status===0){

Loading…
Cancel
Save