From efb31b8222c48eeddce8c0f72e66fec0372ab8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 28 Jun 2019 14:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/graduation/tasks/GraduationTasksnew.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js index 9707f6017..560658e9e 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js @@ -55,7 +55,7 @@ class GraduationTasksnew extends Component { for (var list of fileList) { listid.push(list.response.id) } - if (GraduationTasksnewtype === true) { + // if (GraduationTasksnewtype === true) { this.props.form.validateFields((err, values) => { if (!err) { if (values.tasktype === undefined) { @@ -87,18 +87,20 @@ class GraduationTasksnew extends Component { attachment_ids: listid, } ).then((response) => { - if (response.status === 200) { - GraduationTasksnewtype = false; + // if (response.status === 200) { + // GraduationTasksnewtype = false; // this.goback(); + if(response!==undefined){ this.props.history.push("/courses/" + this.props.match.params.coursesId + "/graduation_tasks/" + this.props.match.params.category_id + "/" + response.data.task_id + "/setting"); } + // } }).catch((error) => { console.log(error) }) } }); - } + // } } @@ -392,7 +394,7 @@ class GraduationTasksnew extends Component { > {getFieldDecorator('description', { rules: [{ - required: true, message: '请输入帖子内容', + required: true, message: '请输入内容', }, { max: 5000, message: '最大限制为5000个字符', }],