|
|
|
@ -110,7 +110,7 @@ class NewGtaskForms extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleSubmit = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let {contentFileList,min_num,max_num,base_on_project}=this.state;
|
|
|
|
|
let {data}=this.props;
|
|
|
|
|
let task_type=data.task_type
|
|
|
|
@ -130,7 +130,7 @@ class NewGtaskForms extends Component{
|
|
|
|
|
description: values.description,
|
|
|
|
|
min_num:task_type===1?undefined:min_num,
|
|
|
|
|
max_num:task_type===1?undefined:max_num,
|
|
|
|
|
base_on_project: task_type===1?undefined:base_on_project===true?1:0
|
|
|
|
|
base_on_project: task_type===1?task_type:base_on_project===true?1:0
|
|
|
|
|
},
|
|
|
|
|
attachment_ids:contentFileList
|
|
|
|
|
}
|
|
|
|
|