diff --git a/public/react/src/modules/courses/shixunHomework/Homeworddescription.js b/public/react/src/modules/courses/shixunHomework/Homeworddescription.js index d7fc20693..ad5e252fe 100644 --- a/public/react/src/modules/courses/shixunHomework/Homeworddescription.js +++ b/public/react/src/modules/courses/shixunHomework/Homeworddescription.js @@ -57,10 +57,10 @@ class Homeworddescription extends Component { } //确认操作 onSaveExercise=()=>{ - if(this.state.description === "" || this.state.description===undefined || this.state.description === null){ - this.props.showNotification("请输入作业说明"); - return - } + // if(this.state.description === "" || this.state.description===undefined || this.state.description === null){ + // this.props.showNotification("请输入作业说明"); + // return + // } this.props.ReleaseNotes(this.state.description); } //获取输入框 @@ -72,6 +72,7 @@ class Homeworddescription extends Component { }) } render() { + const {getFieldDecorator} = this.props.form; return (
- - {/**/} - +
+ + + {getFieldDecorator('content', { + rules: [{ + max: 5000, message: '最大限制为5000个字符', + }], + })( + + )} + +
+ {/**/} + {/*
*/} + {/* this.bianji(false)}>取消*/} + {/* */} + {/*
*/} + {/*
*/} + {/* */} + {/* */} + {/*
*/} + {/*
*/} +
diff --git a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js index c495222f6..63e612bb7 100644 --- a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js +++ b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js @@ -503,8 +503,10 @@ class Workquestionandanswer extends Component { :
- {jobsettingsdata === undefined ? 暂无~ : jobsettingsdata === null ? 暂无~ : jobsettingsdata === "null" ? 暂无~ : - jobsettingsdata.data.explanation === undefined ? 暂无~ : jobsettingsdata.data.explanation === null ? 暂无~ : + {jobsettingsdata === undefined || jobsettingsdata === null || jobsettingsdata === "null" ? + 暂无~ : + jobsettingsdata.data.explanation === undefined || jobsettingsdata.data.explanation === null || jobsettingsdata.data.explanation === undefined || jobsettingsdata.data.explanation === "" ? + 暂无~ :
}