|
|
|
@ -124,7 +124,7 @@ class Exercisestatisticalresult extends Component {
|
|
|
|
|
}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
<div className={"educontent mb20" } >
|
|
|
|
|
<div className={"educontent mb30" } >
|
|
|
|
|
|
|
|
|
|
{data&&data.course_groups.length===0?"":<div className="stud-class-set">
|
|
|
|
|
<div className="clearfix edu-back-white">
|
|
|
|
@ -154,7 +154,7 @@ class Exercisestatisticalresult extends Component {
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
|
|
<div className="stud-class-set">
|
|
|
|
|
<div className="clearfix edu-back-white poll_list">
|
|
|
|
|
<div className="clearfix edu-back-white exerciseTable ">
|
|
|
|
|
<Exercisestatisticalresulttabel
|
|
|
|
|
data={data}
|
|
|
|
|
/>
|
|
|
|
@ -198,16 +198,73 @@ class Exercisestatisticalresult extends Component {
|
|
|
|
|
.padtop24{
|
|
|
|
|
padding-top: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.exerciseTable .shixunreporttitle{
|
|
|
|
|
padding:0px!important;
|
|
|
|
|
}
|
|
|
|
|
.exerciseTable .ant-table-thead > tr > th,.exerciseTable .ant-table-tbody > tr > td{
|
|
|
|
|
padding:16px 20px!important;
|
|
|
|
|
}
|
|
|
|
|
.exerciseTable .editormd-html-preview{
|
|
|
|
|
width:100%!important;
|
|
|
|
|
}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
{/* 从子组件将样式提出来,不然会循环多次 */}
|
|
|
|
|
<style>{`
|
|
|
|
|
// .ant-table-thead > tr > th{
|
|
|
|
|
// text-align: center;
|
|
|
|
|
// }
|
|
|
|
|
.tasknamebox{
|
|
|
|
|
width: 50px;
|
|
|
|
|
height: 24px;
|
|
|
|
|
border: 1px solid rgba(221,23,23,1);
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
color: rgba(221,23,23,1);
|
|
|
|
|
display: inline-block;
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{data&&data.commit_results.map((item,key)=>{
|
|
|
|
|
.tasknameboxs{
|
|
|
|
|
color: #666666 !important;
|
|
|
|
|
background:rgba(237,237,237,1) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-table-tbody > tr > td{
|
|
|
|
|
font-size:14px;
|
|
|
|
|
}
|
|
|
|
|
.task-hide{
|
|
|
|
|
max-width: 345px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
// .ant-table-tbody > tr{
|
|
|
|
|
// height:64px;
|
|
|
|
|
// text-align: center;
|
|
|
|
|
// }
|
|
|
|
|
.ant-progress-success-bg, .ant-progress-bg{
|
|
|
|
|
background-color: #29BD8B !important;
|
|
|
|
|
}
|
|
|
|
|
.ant-table-thead > tr > th:nth-child(1){
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
.ant-table-tbody > tr > td:nth-child(1){
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
.Exermubu .ant-table-tbody > tr:nth-last-child(1) > td{
|
|
|
|
|
border:1px solid transparent;
|
|
|
|
|
}
|
|
|
|
|
.Exermubu .editormd-html-preview, .Exermubu .editormd-preview-container {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
{data&&data.commit_results.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className="stud-class-set mb20" key={key}>
|
|
|
|
|
<div className="stud-class-set mb20 exerciseTable" key={key}>
|
|
|
|
|
<div className="clearfix edu-back-white poll_list" style={{padding: '20px'}}>
|
|
|
|
|
<div className="font-16 shixunreporttitle fl" >
|
|
|
|
|
<div className="font-16 shixunreporttitle fl" style={{width:"1050px"}}>
|
|
|
|
|
<span className="CACFF">{item.ques_position+"."}{item.ques_type===0?"单选":item.ques_type===1?"多选":item.ques_type===2?"判断":item.ques_type===3?"填空":item.ques_type===4?"主观":item.ques_type===5?"实训":""}题</span>
|
|
|
|
|
<div>
|
|
|
|
|
{/*Q{item.ques_position}:*/}
|
|
|
|
@ -224,14 +281,15 @@ class Exercisestatisticalresult extends Component {
|
|
|
|
|
|
|
|
|
|
item.ques_details.map((ite,k)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className={"mt20"}>
|
|
|
|
|
<div className="clearfix edu-back-white poll_list" style={{padding: '0px 20px'}}>
|
|
|
|
|
<div className="font-16 shixunreporttitle fl padding20">
|
|
|
|
|
<div>
|
|
|
|
|
<div className="clearfix edu-back-white poll_list mb10" style={{padding: '0px 20px'}}>
|
|
|
|
|
<div className="font-16 shixunreporttitle fl pt20 pb20">
|
|
|
|
|
<span>{ite.challenge_position}:{ite.challenge_name}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="fr shixunreporttitles padtop24">正确率<span style={{color:'#FF6800'}}>{ite.challenge_percent}%</span></div>
|
|
|
|
|
<div className="fr shixunreporttitles">正确率<span style={{color:'#FF6800'}}> {ite.challenge_percent}%</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<Exercisetablesmubu
|
|
|
|
|
tableNum={`${key}${k}`}
|
|
|
|
|
data={ite.challenge_details}
|
|
|
|
|
type={item.ques_type}
|
|
|
|
|
effictive_counts={item.effictive_counts}
|
|
|
|
@ -252,24 +310,20 @@ class Exercisestatisticalresult extends Component {
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="mb40 edu-txt-center padding20-30"
|
|
|
|
|
style={
|
|
|
|
|
{
|
|
|
|
|
display: data&&data===undefined?1:data&&data.questions_count.length< 10 ? 'none' : 'block'
|
|
|
|
|
}
|
|
|
|
|
}>
|
|
|
|
|
|
|
|
|
|
data && data.questions_count > 10 &&
|
|
|
|
|
<div className="mb40 edu-txt-center padding20-30">
|
|
|
|
|
<Pagination
|
|
|
|
|
showQuickJumper
|
|
|
|
|
defaultCurrent={1}
|
|
|
|
|
pageSize={limit}
|
|
|
|
|
total={data&&data.questions_count}
|
|
|
|
|
total={ data && data.questions_count }
|
|
|
|
|
current={page}
|
|
|
|
|
onChange={this.PaginationCourse}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|