|
|
|
@ -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个字符',
|
|
|
|
|
}],
|
|
|
|
|