|
|
|
@ -79,11 +79,11 @@ class New extends Component{
|
|
|
|
|
const url = `/projects/${projectsId}/issues.json`;
|
|
|
|
|
axios.post(url,{
|
|
|
|
|
...values,
|
|
|
|
|
attachment_ids:fileList,
|
|
|
|
|
author_id:current_user.user_id
|
|
|
|
|
attachment_ids:fileList
|
|
|
|
|
}).then(result=>{
|
|
|
|
|
if(result){
|
|
|
|
|
|
|
|
|
|
this.props.showNotification("工单创建成功!");
|
|
|
|
|
this.props.history.push(`/projects/${projectsId}/orders`);
|
|
|
|
|
}
|
|
|
|
|
}).catch(error=>{
|
|
|
|
|
console.log(error);
|
|
|
|
|