|
|
|
@ -35,7 +35,12 @@ class GraduationTasksquestions extends Component{
|
|
|
|
|
let tab = this.props.tab;
|
|
|
|
|
this.props.setTab && this.props.setTab(tab);
|
|
|
|
|
|
|
|
|
|
this.getdatas()
|
|
|
|
|
this.getdatas();
|
|
|
|
|
try{
|
|
|
|
|
this.props.triggerRef(this)
|
|
|
|
|
}catch(e){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
getdatas=()=>{
|
|
|
|
|
const task_Id = this.props.match.params.task_Id;
|
|
|
|
@ -204,6 +209,8 @@ class GraduationTasksquestions extends Component{
|
|
|
|
|
|
|
|
|
|
/// 确认是否下载
|
|
|
|
|
confirmysl(url){
|
|
|
|
|
debugger;
|
|
|
|
|
console.log(2);
|
|
|
|
|
axios.get(url + '?export=true').then((response) => {
|
|
|
|
|
if(response === undefined){
|
|
|
|
|
return
|
|
|
|
@ -299,82 +306,6 @@ class GraduationTasksquestions extends Component{
|
|
|
|
|
/>
|
|
|
|
|
{questionslist&&questionslist?<div className="newMain clearfix">
|
|
|
|
|
<div className={"educontent mb20"}>
|
|
|
|
|
|
|
|
|
|
{/* <p className="clearfix mt10">
|
|
|
|
|
<a onClick={this.goback} className="color-grey-9 fl">{questionslist.course_name}</a>
|
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
|
<Link to={"/courses/"+courseId+"/graduation_tasks/"+questionslist.graduation_id} className="color-grey-9 fl">{questionslist.graduation_name}</Link>
|
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
|
<span className="color-grey-6">任务详情</span>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div className="clearfix mt20 mb20 lineh-25 linbox">
|
|
|
|
|
<p className=" fl color-black summaryname">
|
|
|
|
|
<Link to={"/courses/"+courseId+"/graduation_tasks/"+category_id} className="color-grey-3">{questionslist.task_name}</Link>
|
|
|
|
|
</p>
|
|
|
|
|
<CoursesListType
|
|
|
|
|
typelist={questionslist.task_status}
|
|
|
|
|
/>
|
|
|
|
|
<a className="color-grey-3 fr font-16 ml30 mr20" onClick={this.goback}>返回</a>
|
|
|
|
|
</div> */}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* <div className="stud-class-set bor-bottom-greyE">
|
|
|
|
|
<div className="mt10 clearfix edu-back-white poll_list pl20"> */}
|
|
|
|
|
|
|
|
|
|
{/* <Link to={"/courses/"+courseId+"/graduation_tasks/"+category_id+"/"+task_Id+"/list"}>任务列表</Link>
|
|
|
|
|
<Link className="active" 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?tab=3"}>设置</Link> */}
|
|
|
|
|
|
|
|
|
|
{/*<a className={"fr color-blue font-16"}>导出成绩</a>*/}
|
|
|
|
|
{/*{this.props.isAdmin()?<a href={"/api/graduation_tasks/"+task_Id+"/tasks_list.xls"} className={"fr color-blue font-16"}>导出成绩</a>:""}*/}
|
|
|
|
|
{/*{this.props.isAdmin()?<a href={"/api/graduation_tasks/"+task_Id+"/tasks_list.zip"} className={"fr color-blue font-16"}>导出作品附件</a>:""}*/}
|
|
|
|
|
|
|
|
|
|
{/* <style>
|
|
|
|
|
{ `
|
|
|
|
|
.drop_down_menu{
|
|
|
|
|
height: 118px;
|
|
|
|
|
left:0px;
|
|
|
|
|
width: 121px;
|
|
|
|
|
}
|
|
|
|
|
.drop_down_menu li {
|
|
|
|
|
overflow: visible;
|
|
|
|
|
width: 121px;
|
|
|
|
|
}
|
|
|
|
|
.drop_down_menu li a{
|
|
|
|
|
padding: 0px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
.mt19{
|
|
|
|
|
margin-top:19px;
|
|
|
|
|
}
|
|
|
|
|
.drop_down_menu, .drop_down_normal{
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
padding-bottom: 8px;
|
|
|
|
|
}
|
|
|
|
|
.drop_down_menu li .color-dark{
|
|
|
|
|
color: #666 !important;
|
|
|
|
|
}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
{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 onClick={()=>this.confirmysl("/graduation_tasks/"+task_Id+"/tasks_list.xlsx")} className="color-dark">导出成绩</a></li>
|
|
|
|
|
<li><a onClick={()=>this.confirmysl("/graduation_tasks/"+task_Id+"/tasks_list.zip")} className="color-dark">导出作品附件</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>:""} */}
|
|
|
|
|
|
|
|
|
|
{/*<a className={"fr color-blue font-16"}>项目在线质量检测</a>*/}
|
|
|
|
|
{/* {this.props.isAdmin()?questionslist.status===1? <a className={"fr color-blue font-16 mr20"} onClick={() => { this.end()} }>立即截止</a>:"":""}
|
|
|
|
|
{this.props.isAdmin()?questionslist.status===0? <a className={"fr color-blue font-16 mr20"} onClick={() => { this.publish()} }>立即发布</a>:"":""}
|
|
|
|
|
{this.props.isAdmin()?<a className={"fr color-blue font-16"} href={"/courses/"+courseId+"/graduation_tasks/"+task_Id+"/edit"}>编辑任务</a>:""}
|
|
|
|
|
</div>
|
|
|
|
|
</div> */}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="justify break_full_word new_li markdown-body edu-back-white"
|
|
|
|
|
id="challenge_editorMd_description">
|
|
|
|
|
<p id="ReactMarkdown">
|
|
|
|
@ -390,22 +321,6 @@ class GraduationTasksquestions extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
{/*{questionslist&&questionslist.attachments.map((item,key)=>{*/}
|
|
|
|
|
{/*return(*/}
|
|
|
|
|
{/*<div className="color-grey mt5">*/}
|
|
|
|
|
{/*<a className="color-grey">*/}
|
|
|
|
|
{/*<i className="font-14 color-green iconfont icon-fujian mr8" aria-hidden="true"></i>*/}
|
|
|
|
|
{/*</a>*/}
|
|
|
|
|
{/*<a href={item.url}*/}
|
|
|
|
|
{/*className="mr12" length="58">*/}
|
|
|
|
|
{/*{item.title}*/}
|
|
|
|
|
{/*</a>*/}
|
|
|
|
|
{/*<span className="color-grey mt2 color-grey-6 font-12">{item.filesize}</span>*/}
|
|
|
|
|
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
{/*)*/}
|
|
|
|
|
|
|
|
|
|
{/*})}*/}
|
|
|
|
|
<AttachmentList {...this.props} {...this.state} attachments={questionslist&&questionslist.attachments}></AttachmentList>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|