From 6672ee50f538e333bb2a67b36a26ad76bf663908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Wed, 8 Jan 2020 18:00:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shixunHomework/Trainingjobsetting.js | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js index 15c46987d..b0c20198d 100644 --- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js +++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js @@ -422,6 +422,7 @@ class Trainingjobsetting extends Component { if (this.state.jobsettingsdata.data.unified_setting === true) { if (this.state.unifiedsetting === true) { + //统一设置 if (this.state.releasetime === undefined || this.state.releasetime === null || this.state.releasetime === "") { // this.props.showNotification(`请选择发布时间`); @@ -544,13 +545,28 @@ class Trainingjobsetting extends Component { } } else { + //分班设置 + // console.log("分班设置"); + // console.log(this.$pollDetailTabForthRules); + + const result=this.$pollDetailTabForthRules.notUnifiedSettingCheck(this.state.rules); + this.setState({ + rules: result.rules + }) + + if(result.validate==false){ + + + this.scrollToAnchor("publishtimeid"); + + this.props.showNotification(`分班发布设置不能为空`); + return false; + } let rulesdata = this.state.rulesdata; - if ( - rulesdata.length === 0) { + if (rulesdata.length === 0) { this.props.showNotification(`分班发布设置不能为空`); return; } - // } } @@ -2396,7 +2412,7 @@ class Trainingjobsetting extends Component { modalSave={modalSave} > -