From 64404e5beb3de36642ce6168b4c3d5426f22d4e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 7 Sep 2019 17:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=95=E8=AE=BE=E8=B5=84=E6=BA=90=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/user/usersInfo/banks/NewGtaskForm.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/user/usersInfo/banks/NewGtaskForm.js b/public/react/src/modules/user/usersInfo/banks/NewGtaskForm.js index 8b4cc8dbb..8c0f6474c 100644 --- a/public/react/src/modules/user/usersInfo/banks/NewGtaskForm.js +++ b/public/react/src/modules/user/usersInfo/banks/NewGtaskForm.js @@ -115,6 +115,9 @@ class NewGtaskForms extends Component{ let {data}=this.props; let task_type=data.task_type 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) => { const mdContnet = this.contentMdRef.current.getValue().trim(); @@ -132,7 +135,7 @@ class NewGtaskForms extends Component{ max_num:task_type===1?undefined:max_num, base_on_project: task_type===1?task_type:base_on_project===true?1:0 }, - attachment_ids:contentFileList + attachment_ids:attachment_ids } ).then((response) => { if(response.data.status===0){