|
|
@ -422,6 +422,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
if (this.state.jobsettingsdata.data.unified_setting === true) {
|
|
|
|
if (this.state.jobsettingsdata.data.unified_setting === true) {
|
|
|
|
if (this.state.unifiedsetting === true) {
|
|
|
|
if (this.state.unifiedsetting === true) {
|
|
|
|
|
|
|
|
//统一设置
|
|
|
|
if (this.state.releasetime === undefined || this.state.releasetime === null || this.state.releasetime === "") {
|
|
|
|
if (this.state.releasetime === undefined || this.state.releasetime === null || this.state.releasetime === "") {
|
|
|
|
// this.props.showNotification(`请选择发布时间`);
|
|
|
|
// this.props.showNotification(`请选择发布时间`);
|
|
|
|
|
|
|
|
|
|
|
@ -544,13 +545,28 @@ class Trainingjobsetting extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} 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;
|
|
|
|
let rulesdata = this.state.rulesdata;
|
|
|
|
if (
|
|
|
|
if (rulesdata.length === 0) {
|
|
|
|
rulesdata.length === 0) {
|
|
|
|
|
|
|
|
this.props.showNotification(`分班发布设置不能为空`);
|
|
|
|
this.props.showNotification(`分班发布设置不能为空`);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2396,7 +2412,7 @@ class Trainingjobsetting extends Component {
|
|
|
|
modalSave={modalSave}
|
|
|
|
modalSave={modalSave}
|
|
|
|
></Modals>
|
|
|
|
></Modals>
|
|
|
|
|
|
|
|
|
|
|
|
<div className={"educontent"}>
|
|
|
|
<div className={"educontent"} id={"publishtimeid"}>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
!flagPageEdit && this.props.isAdmin() === true ?
|
|
|
|
!flagPageEdit && this.props.isAdmin() === true ?
|
|
|
|
""
|
|
|
|
""
|
|
|
@ -2536,6 +2552,9 @@ class Trainingjobsetting extends Component {
|
|
|
|
<PollDetailTabForthRules
|
|
|
|
<PollDetailTabForthRules
|
|
|
|
{...this.props}
|
|
|
|
{...this.props}
|
|
|
|
{...this.state}
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
ref={dom => {
|
|
|
|
|
|
|
|
this.$pollDetailTabForthRules = dom;
|
|
|
|
|
|
|
|
}}
|
|
|
|
teacherdatapage={this.props.teacherdatapage}
|
|
|
|
teacherdatapage={this.props.teacherdatapage}
|
|
|
|
rules={rules}
|
|
|
|
rules={rules}
|
|
|
|
moduleName={"作业"}
|
|
|
|
moduleName={"作业"}
|
|
|
|