From b23f4abade9c5eeb973a0c37a930a20113d6037e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Tue, 25 Jun 2019 14:14:18 +0800 Subject: [PATCH] =?UTF-8?q?=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/graduation/tasks/GraduationTasksedit.js | 8 ++++---- .../courses/graduation/tasks/GraduationTasksnew.js | 12 +++++++----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js index 7404f69d6..c8cb7f832 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js @@ -304,7 +304,7 @@ class GraduationTasksedit extends Component{ {description===undefined?"":
{/*内容*/} -
+
{getFieldDecorator('tasktype', { @@ -323,13 +323,13 @@ class GraduationTasksedit extends Component{ {getFieldDecorator('name', { rules: [{ required: true, message: "请输入标题" }], - })()} + })()}
-
+
{getFieldDecorator('description', { rules: [{ diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js index fec4248df..be85e5087 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js @@ -294,7 +294,7 @@ class GraduationTasksnew extends Component { } {/*内容*/} -
+
{getFieldDecorator('tasktype', { @@ -309,12 +309,14 @@ class GraduationTasksnew extends Component { (选择确认后,无法修改) - + {getFieldDecorator('name', { - rules: [{ required: true, message: "请输入标题" }], - })()} + rules: [{required: true, message: "不能为空"}], + })()} - +