|
|
|
@ -332,7 +332,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
Topval:"发布设置均可修改",
|
|
|
|
|
Botvalleft:"点击修改",
|
|
|
|
|
Botval:"此设置将对所有分班生效",
|
|
|
|
|
starttime:moment(new Date()).format('YYYY-MM-DD 00:00'),
|
|
|
|
|
starttime:moment(moment(new Date())).format("YYYY-MM-DD HH:mm") ,
|
|
|
|
|
starttimes:this.props.getNowFormatDates(1),
|
|
|
|
|
typs:"start",
|
|
|
|
|
endtime:endtime,
|
|
|
|
@ -544,6 +544,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
|
|
|
|
|
|
if(result.data.status===0){
|
|
|
|
|
this.searchValue()
|
|
|
|
|
this.setState({
|
|
|
|
|
Modalstype:true,
|
|
|
|
|
Modalstopval:result.data.message,
|
|
|
|
@ -747,7 +748,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
operation.map((tag,key) => {
|
|
|
|
|
return(
|
|
|
|
|
<div key={key}>
|
|
|
|
|
<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >{tag.status===0?"":"查看"}</a>
|
|
|
|
|
{tag.status===0?"--":<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >查看</a>}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
):""
|
|
|
|
@ -881,10 +882,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
operation.map((tag,key) => {
|
|
|
|
|
return(
|
|
|
|
|
<div key={key}>
|
|
|
|
|
<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
|
{tag.status===0?"":"查看"}
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
{tag.status===0?"--":<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
|
查看
|
|
|
|
|
</a>}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
):""
|
|
|
|
@ -1013,7 +1013,8 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
<Tooltip placement="bottom" title={tag.name==="分配"?"指定该作品的交叉评阅人":tag.name==="调分"?<pre>调整学生最终成绩<br/>
|
|
|
|
|
其它历史评分将全部失效</pre>:""}>
|
|
|
|
|
{tag.name==="评阅"?tag.status===0?"--":<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
|
{tag.name}</a>
|
|
|
|
|
{tag.name}
|
|
|
|
|
</a>
|
|
|
|
|
:
|
|
|
|
|
<a style={{color:tag.name==="调分"?"#000":'#4CACFF'}}
|
|
|
|
|
onClick={tag.name==="调分"?()=>this.showModulationtype(tag.id):tag.name==="分配"?()=>this.showAllocationModal(tag.id):""}
|
|
|
|
@ -1030,9 +1031,9 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
operation.map((tag,key) => {
|
|
|
|
|
return(
|
|
|
|
|
<div key={key}>
|
|
|
|
|
<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
|
{tag.status===0?"":"查看"}
|
|
|
|
|
</a>
|
|
|
|
|
{tag.status===0?"--": <a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
|
查看
|
|
|
|
|
</a>}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
):""
|
|
|
|
@ -1146,7 +1147,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
<Tooltip placement="bottom" title={tag.name==="分配"?"指定该作品的交叉评阅人":tag.name==="调分"?<pre>调整学生最终成绩<br/>
|
|
|
|
|
其它历史评分将全部失效</pre>:""}>
|
|
|
|
|
{tag.name==="评阅"?tag.status===0?"--":<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
|
{tag.name}
|
|
|
|
|
{tag.name}
|
|
|
|
|
</a>
|
|
|
|
|
:
|
|
|
|
|
<a style={{color:tag.name==="调分"?"#000":'#4CACFF'}}
|
|
|
|
@ -1164,8 +1165,8 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
operation.map((tag,key) => {
|
|
|
|
|
return(
|
|
|
|
|
<div key={key}>
|
|
|
|
|
<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
|
{tag.status===0?"":"查看"}</a>
|
|
|
|
|
{tag.status===0?"--":<a style={{color:'#4CACFF'}} href={"/courses/"+courseId+"/graduation_tasks/"+tag.id+"/appraise"} >
|
|
|
|
|
查看</a>}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
):""
|
|
|
|
@ -1257,6 +1258,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
visible={visibles}
|
|
|
|
|
Cancel={this.Cancel}
|
|
|
|
|
taskid={taskslistdata&&taskslistdata.task_id}
|
|
|
|
|
funlist={this.searchValue()}
|
|
|
|
|
/>:""}
|
|
|
|
|
|
|
|
|
|
{taskslistdata&&taskslistdata?
|
|
|
|
@ -1289,7 +1291,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
<Link className="active" to={"/courses/"+courseId+"/graduation_tasks/"+category_id+"/"+task_Id+"/list"}>任务列表</Link>
|
|
|
|
|
<Link to={"/courses/"+courseId+"/graduation_tasks/"+category_id+"/"+task_Id+"/questions"}>任务问答</Link>
|
|
|
|
|
<Link style={{paddingLeft:'38px'}}
|
|
|
|
|
to={"/courses/"+courseId+"/graduation_tasks/"+category_id+"/"+task_Id+"/setting"}>设置</Link>
|
|
|
|
|
to={"/courses/"+courseId+"/graduation_tasks/"+category_id+"/"+task_Id+"/setting?tab=3"}>设置</Link>
|
|
|
|
|
|
|
|
|
|
{/*<a className={"fr color-blue font-16"} href={"/courses/"+courseId+"/graduation_tasks/"+task_Id+"/edit"}>编辑任务</a>*/}
|
|
|
|
|
{/*<a className={"fr color-blue font-16"} onClick={this.end}>立即截止</a>*/}
|
|
|
|
@ -1323,7 +1325,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
{this.props.isAdmin()? <li className="li_line drop_down fr color-blue font-16 mr20 mt20" style={{"paddingLeft":"0px"}}>
|
|
|
|
|
导出<i className="iconfont icon-xiajiantou font-12 ml2"></i>
|
|
|
|
|
<ul className="drop_down_menu" style={{"right":"-34px","left":"unset","height":"auto"}}>
|
|
|
|
|
<li><a href={"/api/graduation_tasks/"+task_Id+"/tasks_list.xls"} calssName="color-dark">导出成绩</a></li>
|
|
|
|
|
<li><a href={"/api/graduation_tasks/"+task_Id+"/tasks_list.xlsx"} calssName="color-dark">导出成绩</a></li>
|
|
|
|
|
<li><a href={"/api/graduation_tasks/"+task_Id+"/tasks_list.zip"} calssName="color-dark">导出作品附件</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>:""}
|
|
|
|
@ -1358,7 +1360,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
<a id="graduation_comment_no_limit" alue={null} className={teacher_comment===null?"pl10 pr10 check_on":"pl10 pr10 "} onClick={this.funteachercomment}>不限</a>
|
|
|
|
|
</span>
|
|
|
|
|
<CheckboxGroup value={teacher_comment} onChange={(e)=>this.funteachercomment(e,taskslistdata.search_assistants&&taskslistdata.search_assistants.teacher_comment.length)} style={{ paddingTop: '4px'}}>
|
|
|
|
|
{taskslistdata.search_assistants&&taskslistdata.search_assistants.teacher_comment.map((item,key)=>{
|
|
|
|
|
{taskslistdata.search_assistants && taskslistdata.search_assistants.teacher_comment && taskslistdata.search_assistants.teacher_comment.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<span key={key}>
|
|
|
|
|
<Checkbox value={item.id} onClick={this.funteachercomment} className="fl ">{item.name}
|
|
|
|
@ -1500,7 +1502,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
pagination={false}
|
|
|
|
|
loading={loadingstate}
|
|
|
|
|
onChange={this.TablePagination}
|
|
|
|
|
|
|
|
|
|
className="edu-txt-center"
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -1552,12 +1554,13 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
to={"/courses/"+courseId+"/graduation_tasks/"+category_id+"/"+task_Id+"/setting"}>设置</Link>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{taskslistdata.work_status===undefined?"":taskslistdata.work_status.map((item,key)=>{
|
|
|
|
|
{taskslistdata.work_status===undefined||taskslistdata.work_status===null||taskslistdata.work_status.length===0?"":taskslistdata.work_status.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<span key={key}>
|
|
|
|
|
{item==="提交作品"?<a className={"fr color-blue font-16"} href={"/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+category_id+"/"+task_Id+"/works/new"}>提交作品</a>:""}
|
|
|
|
|
{item==="修改作品"?<a className={"fr color-blue font-16"} href={"/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+category_id+"/"+task_Id+"/works/edit"}>修改作品</a>:""}
|
|
|
|
|
{item==="查看作品"?<a className={"fr color-blue font-16"} href={"/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+category_id+"/"+task_Id+"/works/edit"}>查看作品</a> :""}
|
|
|
|
|
{item==="提交作品"?<a className={"fr color-blue font-16"} href={"/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+category_id+"/"+task_Id+"/works/new"}>提交作品</a>:""}
|
|
|
|
|
{item==="补交作品"?<a className={"fr color-blue font-16"} href={"/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+category_id+"/"+task_Id+"/works/new"}>补交作品</a>:""}
|
|
|
|
|
{item==="修改作品"?<a className={"fr color-blue font-16"} href={"/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+category_id+"/"+taskslistdata.work_id+"/works/edit"}>修改作品</a>:""}
|
|
|
|
|
{item==="查看作品"?<a className={"fr color-blue font-16"} href={"/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+category_id+"/"+taskslistdata.work_id+"/works/edit"}>查看作品</a> :""}
|
|
|
|
|
{item==="创建项目"?<a className={"fr color-blue font-16"} href={'/projects/new'}>创建项目</a>:""}
|
|
|
|
|
{item==="关联项目"?<a className={"fr color-blue font-16"} onClick={this.AssociationItems}>关联项目</a>:""}
|
|
|
|
|
{item==="取消关联"?<a className={"fr color-blue font-16"} onClick={this.cannelAssociation}>取消关联</a>:""}
|
|
|
|
@ -1741,6 +1744,7 @@ class GraduationTaskssettinglist extends Component{
|
|
|
|
|
pagination={false}
|
|
|
|
|
loading={loadingstate}
|
|
|
|
|
onChange={this.TablePagination}
|
|
|
|
|
className="edu-txt-center"
|
|
|
|
|
/>}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|