|
|
|
@ -33,6 +33,7 @@ import '../css/Courses.css'
|
|
|
|
|
import './style.css'
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import 'moment/locale/zh-cn';
|
|
|
|
|
import Startshixuntask from "../coursesPublic/Startshixuntask";
|
|
|
|
|
|
|
|
|
|
const Search = Input.Search;
|
|
|
|
|
const CheckboxGroup = Checkbox.Group;
|
|
|
|
@ -629,7 +630,7 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
<div className="edu-back-white">
|
|
|
|
|
<div className="stud-class-set bor-bottom-greyE ">
|
|
|
|
|
<div className=" clearfix edu-back-white poll_list">
|
|
|
|
|
<a onClick={(e)=>this.ChangeTab(0)}>作品列表</a>:
|
|
|
|
|
<a onClick={(e)=>this.ChangeTab(0)}>作品列表</a>
|
|
|
|
|
<a onClick={(e)=>this.ChangeTab(1)}>作业问答</a>
|
|
|
|
|
{this.props.isAdmin()?<a className="active" onClick={(e)=>this.ChangeTab(2)}>代码查重</a>:""}
|
|
|
|
|
<a onClick={(e)=>this.ChangeTab(3)}>设置</a>
|
|
|
|
@ -669,6 +670,16 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
{this.props.isAdmin()?
|
|
|
|
|
data&&data.publish_immediately===true?
|
|
|
|
|
<a className="fr color-blue font-16" onClick={this.homeworkstart}>立即发布</a> : "": ""}
|
|
|
|
|
{
|
|
|
|
|
jobsettingsdata&& jobsettingsdata.data === undefined ? ""
|
|
|
|
|
: jobsettingsdata&& jobsettingsdata.data.commit_des === null || jobsettingsdata&& jobsettingsdata.data.commit_des === undefined ? "" :
|
|
|
|
|
<a className="fr color-blue font-16"
|
|
|
|
|
href={`/courses/${this.state.props.match.params.coursesId}/${this.state.shixuntypes}/${ jobsettingsdata&& jobsettingsdata.data === undefined ? "" : jobsettingsdata&& jobsettingsdata.data.id}/commitsummary/${this.state.props.match.params.homeworkid}`}>{ jobsettingsdata&& jobsettingsdata.data.commit_des}</a>
|
|
|
|
|
}
|
|
|
|
|
{ jobsettingsdata&&jobsettingsdata.data === undefined ? "" : <Startshixuntask
|
|
|
|
|
{...this.props}
|
|
|
|
|
data={ jobsettingsdata&& jobsettingsdata.data}
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<style>
|
|
|
|
|