|
|
@ -297,7 +297,9 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
render(){
|
|
|
|
render(){
|
|
|
|
let {tab,visible,Commonheadofthetestpaper,exercise_status,assistant_auth}=this.state;
|
|
|
|
let {tab,visible,Commonheadofthetestpaper,exercise_status,assistant_auth}=this.state;
|
|
|
|
const isAdmin =this.props.isAdmin();
|
|
|
|
const isAdmin =this.props.isAdmin();
|
|
|
|
const isStudent = this.props.isStudent();
|
|
|
|
const isAssistant=this.props.isAssistant();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isStudent = this.props.isStudent();
|
|
|
|
// TODO
|
|
|
|
// TODO
|
|
|
|
|
|
|
|
|
|
|
|
//console.log(Commonheadofthetestpaper.exercise_status);
|
|
|
|
//console.log(Commonheadofthetestpaper.exercise_status);
|
|
|
@ -361,7 +363,26 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
<div className="stud-class-set bor-bottom-greyE ">
|
|
|
|
<div className="stud-class-set bor-bottom-greyE ">
|
|
|
|
<div className=" clearfix edu-back-white pl30 pr30">
|
|
|
|
<div className=" clearfix edu-back-white pl30 pr30">
|
|
|
|
<div className="fl task_menu_ul">
|
|
|
|
<div className="fl task_menu_ul">
|
|
|
|
{this.props.isAdmin()===true?
|
|
|
|
{isAssistant===true?
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
assistant_auth===true?
|
|
|
|
|
|
|
|
<Menu mode="horizontal" selectedKeys={tab} onClick={this.changeTab}>
|
|
|
|
|
|
|
|
<Menu.Item key="0" className={"exercisesafonts"}>答题列表</Menu.Item>
|
|
|
|
|
|
|
|
<Menu.Item key="1" className={"exercisesafonts"}>统计结果</Menu.Item>
|
|
|
|
|
|
|
|
<Menu.Item key="2" className={"exercisesafonts"}>试卷预览</Menu.Item>
|
|
|
|
|
|
|
|
<Menu.Item key="3" className={"exercisesafonts"}>设置</Menu.Item>
|
|
|
|
|
|
|
|
</Menu>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
<Menu mode="horizontal" selectedKeys={tab} onClick={this.changeTab}>
|
|
|
|
|
|
|
|
<Menu.Item key="0" className={"exercisesafonts"}>答题列表</Menu.Item>
|
|
|
|
|
|
|
|
{Commonheadofthetestpaper&&Commonheadofthetestpaper.show_statistic===true?
|
|
|
|
|
|
|
|
Commonheadofthetestpaper && Commonheadofthetestpaper.exercise_status===3?
|
|
|
|
|
|
|
|
<Menu.Item key="1" className={"exercisesafonts"}>统计结果</Menu.Item>:"":""}
|
|
|
|
|
|
|
|
<Menu.Item key="3" className={"exercisesafonts"}>设置</Menu.Item>
|
|
|
|
|
|
|
|
</Menu>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
this.props.isAdmin()===true?
|
|
|
|
<Menu mode="horizontal" selectedKeys={tab} onClick={this.changeTab}>
|
|
|
|
<Menu mode="horizontal" selectedKeys={tab} onClick={this.changeTab}>
|
|
|
|
<Menu.Item key="0" className={"exercisesafonts"}>答题列表</Menu.Item>
|
|
|
|
<Menu.Item key="0" className={"exercisesafonts"}>答题列表</Menu.Item>
|
|
|
|
<Menu.Item key="1" className={"exercisesafonts"}>统计结果</Menu.Item>
|
|
|
|
<Menu.Item key="1" className={"exercisesafonts"}>统计结果</Menu.Item>
|
|
|
@ -445,7 +466,23 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
getsetdata={this.getsetdata}
|
|
|
|
getsetdata={this.getsetdata}
|
|
|
|
></ImmediatelyPublish>
|
|
|
|
></ImmediatelyPublish>
|
|
|
|
:"":""}
|
|
|
|
:"":""}
|
|
|
|
{isAdmin === true? <Link className="fr color-blue font-16 mt20 mr20" to={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/edit`}>编辑试卷</Link>:""}
|
|
|
|
{/*const isAdminOrTeacher*/}
|
|
|
|
|
|
|
|
{/*assistant_auth===true*/}
|
|
|
|
|
|
|
|
{/**/}
|
|
|
|
|
|
|
|
{isAdmin === true?
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
isAssistant===true?
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
assistant_auth===true?
|
|
|
|
|
|
|
|
<Link className="fr color-blue font-16 mt20 mr20" to={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/edit`}>编辑试卷</Link>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
""
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
<Link className="fr color-blue font-16 mt20 mr20" to={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/edit`}>编辑试卷</Link>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
:""}
|
|
|
|
|
|
|
|
|
|
|
|
{isAdmin === false && this.props.current_user !== undefined?
|
|
|
|
{isAdmin === false && this.props.current_user !== undefined?
|
|
|
|
Commonheadofthetestpaper&&Commonheadofthetestpaper.user_permission.current_status===2?
|
|
|
|
Commonheadofthetestpaper&&Commonheadofthetestpaper.user_permission.current_status===2?
|
|
|
|