|
|
@ -431,7 +431,9 @@ class CoursesBanner extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{coursedata.switch_to_student === true ?
|
|
|
|
{coursedata.switch_to_student === true ?
|
|
|
|
<Tooltip placement="bottom" title={"切换至学生可进行提交作品、答题等操作"}>
|
|
|
|
<Tooltip placement="bottom" title={
|
|
|
|
|
|
|
|
<pre>由教师/助教身份切换至学生<br/>可进行提交作品、答题等操作</pre>
|
|
|
|
|
|
|
|
}>
|
|
|
|
<a className="fr user_default_btn user_blue_btn mr20 font-18"
|
|
|
|
<a className="fr user_default_btn user_blue_btn mr20 font-18"
|
|
|
|
onClick={()=>this.switchidentity(1)}
|
|
|
|
onClick={()=>this.switchidentity(1)}
|
|
|
|
> 切换为学生 </a>
|
|
|
|
> 切换为学生 </a>
|
|
|
@ -439,7 +441,9 @@ class CoursesBanner extends Component {
|
|
|
|
:""}
|
|
|
|
:""}
|
|
|
|
|
|
|
|
|
|
|
|
{coursedata.switch_to_teacher === true ?
|
|
|
|
{coursedata.switch_to_teacher === true ?
|
|
|
|
<Tooltip placement="bottom" title={"由学生身份切换至教师"}>
|
|
|
|
<Tooltip placement="bottom" title={
|
|
|
|
|
|
|
|
<pre>由学生身份切换至教师<br/>拥有添加成员、发布作业等管理权限</pre>
|
|
|
|
|
|
|
|
}>
|
|
|
|
<a className="fr user_default_btn user_blue_btn mr20 font-18"
|
|
|
|
<a className="fr user_default_btn user_blue_btn mr20 font-18"
|
|
|
|
onClick={()=>this.switchidentity(2)}
|
|
|
|
onClick={()=>this.switchidentity(2)}
|
|
|
|
> 切换为老师 </a>
|
|
|
|
> 切换为老师 </a>
|
|
|
@ -447,7 +451,9 @@ class CoursesBanner extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{coursedata.switch_to_assistant === true ?
|
|
|
|
{coursedata.switch_to_assistant === true ?
|
|
|
|
<Tooltip placement="bottom" title={"由学生身份切换至助教"}>
|
|
|
|
<Tooltip placement="bottom" title={
|
|
|
|
|
|
|
|
<pre>由学生身份切换至助教<br/>拥有添加成员、发布作业等管理权限</pre>
|
|
|
|
|
|
|
|
}>
|
|
|
|
<a className="fr user_default_btn user_blue_btn mr20 font-18"
|
|
|
|
<a className="fr user_default_btn user_blue_btn mr20 font-18"
|
|
|
|
onClick={()=>this.switchidentity(3)}
|
|
|
|
onClick={()=>this.switchidentity(3)}
|
|
|
|
> 切换为助教 </a>
|
|
|
|
> 切换为助教 </a>
|
|
|
@ -486,7 +492,9 @@ class CoursesBanner extends Component {
|
|
|
|
<Link to={"/courses/"+this.props.match.params.coursesId+"/students"}>
|
|
|
|
<Link to={"/courses/"+this.props.match.params.coursesId+"/students"}>
|
|
|
|
<span className="color-grey-c fl font-16">学生</span>
|
|
|
|
<span className="color-grey-c fl font-16">学生</span>
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
className={coursedata.credit===null?"color-white fl font-16":"color-white fl font-16 bannerurli"}>{coursedata.student_count}</span>
|
|
|
|
className={coursedata.credit===null?"color-white fl font-16 bannerurlis":"color-white fl font-16 bannerurli"}>
|
|
|
|
|
|
|
|
{coursedata.student_count}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
@ -550,10 +558,13 @@ class CoursesBanner extends Component {
|
|
|
|
{coursedata.code_halt === true? "已停用" : coursedata.invite_code}
|
|
|
|
{coursedata.code_halt === true? "已停用" : coursedata.invite_code}
|
|
|
|
{coursedata.code_halt === true ? "" :
|
|
|
|
{coursedata.code_halt === true ? "" :
|
|
|
|
<Tooltip placement="bottom" title={
|
|
|
|
<Tooltip placement="bottom" title={
|
|
|
|
<pre>
|
|
|
|
coursedata.code_halt === true? <pre>
|
|
|
|
成员可以通过邀请码主动加入课堂<br/>
|
|
|
|
邀请码已停用<br/>
|
|
|
|
点击立刻复制邀请码
|
|
|
|
成员不能主动加入课堂
|
|
|
|
</pre>
|
|
|
|
</pre>:<pre>
|
|
|
|
|
|
|
|
成员可以通过邀请码主动加入课堂<br/>
|
|
|
|
|
|
|
|
点击立刻复制邀请码
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
}>
|
|
|
|
}>
|
|
|
|
<i className="iconfont icon-fuzhi color-white font-14 ml10"
|
|
|
|
<i className="iconfont icon-fuzhi color-white font-14 ml10"
|
|
|
|
onClick={() => {
|
|
|
|
onClick={() => {
|
|
|
|