diff --git a/public/react/src/modules/courses/busyWork/PublishRightnow.js b/public/react/src/modules/courses/busyWork/PublishRightnow.js index b4576f58d..da2054124 100644 --- a/public/react/src/modules/courses/busyWork/PublishRightnow.js +++ b/public/react/src/modules/courses/busyWork/PublishRightnow.js @@ -52,9 +52,9 @@ class PublishRightnow extends Component{ modalname: isPublish ? "立即发布" : "立即截止", modaltype:1, visible:true, - Topval: isPublish ? "本操作只对“未发布”的对象生效" : "本操作只对“提交中”的对象生效", - Botvalleft: isPublish ? "暂不发布" : "暂不截止", - Botval: isPublish ? "则通过后续手动设置,定时发布" : "则将根据已设置的截止时间,定时截止", + Topval: isPublish ? "学生将立即收到作业" : "学生将不能再提交作品", + // Botvalleft: isPublish ? "暂不发布" : "暂不截止", + Botval: this.props.fromListPage ? (isPublish ? "本操作只对“未发布”的分班有效" : "本操作只对“提交中”的分班有效") : '', starttime: isPublish ? `发布时间:${startMoment.format(dateFormat)}` : '', starttimes:isPublish ? `${startMoment.format(dateFormat)}` : '', endtime: isPublish ? `截止时间:${startMoment.add(1, 'months').add(1, 'hours').minutes(0).format(dateFormat)}` : '', diff --git a/public/react/src/modules/courses/busyWork/common.js b/public/react/src/modules/courses/busyWork/common.js index 70e059f17..61bd7fcee 100644 --- a/public/react/src/modules/courses/busyWork/common.js +++ b/public/react/src/modules/courses/busyWork/common.js @@ -69,7 +69,7 @@ export function RouteHOC(options = {}) { } toNewPage = (courseId) => { const secondName = this.getModuleName() - this.props.history.push(`/courses/${courseId.coursesId}/${secondName}/${courseId.categroy_id}/new`) + this.props.history.push(`/courses/${courseId.coursesId}/${secondName}/${courseId.category_id}/new`) } toListPage = (_courseId, _workId) => { const secondName = this.getModuleName() diff --git a/public/react/src/modules/courses/busyWork/commonWork.js b/public/react/src/modules/courses/busyWork/commonWork.js index b0b80d147..18c668efe 100644 --- a/public/react/src/modules/courses/busyWork/commonWork.js +++ b/public/react/src/modules/courses/busyWork/commonWork.js @@ -75,7 +75,6 @@ class commonWork extends Component{ } componentDidUpdate(prevProps, prevState) { - debugger; if (prevProps.match.path != this.props.match.path) { this.componentDidMount() } @@ -198,6 +197,7 @@ class commonWork extends Component{ this.clearSelection() let {search,order}=this.state; this.getList(1,search,order); + this.props.updataleftNavfun() } console.log(response) }).catch((error) => { @@ -395,11 +395,11 @@ class commonWork extends Component{
  • + isPublish={true} doWhenSuccess={this.doWhenSuccess} fromListPage={true}>
  • + isPublish={false} doWhenSuccess={this.doWhenSuccess} fromListPage={true}>
  • { !!course_public &&
  • 设为公开
  • }