Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/pgfqe6ch8 into dev_aliyun

dev_aliyun
hjm 6 years ago
commit b5fc687e01

@ -169,7 +169,8 @@ class EcCourseEvaluationsController < ApplicationController
else else
score_count = @ce.evluation_count * length score_count = @ce.evluation_count * length
EcStudentAchievement.where(:ec_course_evaluation_subitem_id => subitems.pluck(:id)).destroy_all EcStudentAchievement.where(:ec_course_evaluation_subitem_id => subitems.pluck(:id)).destroy_all
score_type = worksheet.cell(2, score_count+1) && worksheet.cell(2, score_count+2) ? 1 : 2 score_type = worksheet.cell(1, 1) && worksheet.cell(1, 1).try(:strip) == "学号" ? 1 : 2
if score_type == 2 && rows > 3 if score_type == 2 && rows > 3
render :json => {status: 0, message: "平均成绩只能有一行数据"} render :json => {status: 0, message: "平均成绩只能有一行数据"}
else else

@ -361,8 +361,8 @@ class EcCoursesController < ApplicationController
respond_to do |format| respond_to do |format|
format.json{ format.json{
courses_data = [] courses_data = []
courses.each do |c| courses.includes(:teacher).each do |c|
courses_data << {id: c.id, name: c.name, created_at: (c.created_at).strftime('%Y-%m-%d'), end_time: c.end_date.present? ? c.end_date.strftime('%Y-%m-%d') : ''} courses_data << {id: c.id, name: c.name, creator_name: c.teacher.show_real_name, created_at: (c.created_at).strftime('%Y-%m-%d'), end_time: c.end_date.present? ? c.end_date.strftime('%Y-%m-%d') : ''}
end end
render :json => {courses: courses_data} render :json => {courses: courses_data}
} }

@ -109,7 +109,7 @@
</li> </li>
</ul> </ul>
<p class="break_word font-18 challenge_describe"> <p class="break_word font-18 challenge_describe">
标注说明:每个小组选择一种编程语言的题目,针对标注任务中指定的标注模块,要求对代码模块、模块中的代码文件, 以及文件中的函数必须进行标注,关键代码块、代码行及关键变量等由参赛者自由选择进行标注。 正式赛第一阶段的比赛在标注阶段就开放查看所有人的标注,请大家根据个人理解,写出自己的风格。我们将综合考虑标注的原创性、准确性、 完整性和多样性等不同的维度对标注质量进行评分。<%= challenge_description_extra[i] %> 标注说明:每个小组选择一个项目,针对标注任务中指定的标注模块,要求对代码模块、模块中的代码文件, 以及文件中的函数必须进行标注,关键代码块、代码行及关键变量等由参赛者自由选择进行标注。请大家根据个人理解,写出自己的风格。我们将综合考虑标注的原创性、准确性、 完整性和多样性等不同的维度对标注质量进行评分。<%= challenge_description_extra[i] %>
</p> </p>
<ul class="mt30 clearfix"> <ul class="mt30 clearfix">

@ -4,7 +4,9 @@ html{height:100%;}
.newContainer{ min-height:100%; height: auto !important; height: 100%; /*IE6不识别min-height*/position: relative;} .newContainer{ min-height:100%; height: auto !important; height: 100%; /*IE6不识别min-height*/position: relative;}
.newMain{ margin: 0 auto; padding-bottom: 155px; min-width:1200px } .newMain{ margin: 0 auto; padding-bottom: 155px; min-width:1200px }
.newFooter{ position: absolute; bottom: 0; width: 100%; height: 155px;background: #323232; clear:both; min-width: 1200px;z-index:99999;left: 0px;} .newFooter{ position: absolute; bottom: 0; width: 100%; height: 155px;background: #323232; clear:both; min-width: 1200px;z-index:99999;left: 0px;}
.newHeader{background: #171616;width:100%; height: 50px; min-width: 1200px;position: fixed;top: 0px;left: 0px;z-index:99998} .newHeader{background: #171616;width:100%; height: 50px; min-width: 1200px;
/*position: fixed;*/
top: 0px;left: 0px;z-index:99998}
/* 重置样式 */ /* 重置样式 */
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,span{ margin:0; padding:0;} body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,span{ margin:0; padding:0;}
table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:14px;line-height:1.9; background:#f5f5f5; color:#333;} table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:14px;line-height:1.9; background:#f5f5f5; color:#333;}

@ -4,7 +4,9 @@ html{height:100%;}
.newContainer{ min-height:100%; height: auto !important; height: 100%; /*IE6不识别min-height*/position: relative;} .newContainer{ min-height:100%; height: auto !important; height: 100%; /*IE6不识别min-height*/position: relative;}
.newMain{ margin: 0 auto; padding-bottom: 155px; min-width:1200px } .newMain{ margin: 0 auto; padding-bottom: 155px; min-width:1200px }
.newFooter{ position: absolute; bottom: 0; width: 100%; height: 155px;background: #323232; clear:both; min-width: 1200px;z-index:99999;left: 0px;} .newFooter{ position: absolute; bottom: 0; width: 100%; height: 155px;background: #323232; clear:both; min-width: 1200px;z-index:99999;left: 0px;}
.newHeader{background: #171616;width:100%; height: 50px; min-width: 1200px;position: fixed;top: 0px;left: 0px;z-index:99998} .newHeader{background: #171616;width:100%; height: 50px; min-width: 1200px;
/*position: fixed;*/
top: 0px;left: 0px;z-index:99998}
/* 重置样式 */ /* 重置样式 */
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,span{ margin:0; padding:0;} body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,span{ margin:0; padding:0;}
table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:14px;line-height:1.9; background:#f5f5f5; color:#333;} table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:14px;line-height:1.9; background:#f5f5f5; color:#333;}

@ -554,4 +554,8 @@ a.TrainingLecturer:hover{
.ant-input{ .ant-input{
border-color: #d9d9d9 !important; border-color: #d9d9d9 !important;
} }
.mt60{
margin-top:60px;
}

@ -345,4 +345,8 @@ input{
.ant-select-selection{ .ant-select-selection{
-webkit-box-shadow: 0 0 0 2px transparent !important; -webkit-box-shadow: 0 0 0 2px transparent !important;
box-shadow: 0 0 0 2px transparent !important; box-shadow: 0 0 0 2px transparent !important;
} }
.mt60{
margin-top:60px;
}

@ -827,8 +827,9 @@ class ecCourseEvaluations extends Component {
<div className="clearfix mt20"> <div className="clearfix mt20">
<ul style={{width:'100%'}}> <ul style={{width:'100%'}}>
<li className="column-1 fl ml60">课堂名称</li> <li className="column-1 fl ml60">课堂名称</li>
<li className="column-1 fl ml120">创建时间</li> <li className="column-1 fl ml120">创建者</li>
<li className="column-1 fl ml120">结束时间</li> <li className="column-1 fl ml60">创建时间</li>
<li className="column-1 fl ml60">结束时间</li>
</ul> </ul>
</div> </div>
@ -840,8 +841,9 @@ class ecCourseEvaluations extends Component {
<Radio className="fl" id={item.id} checked={checkevalue===item.id?true:false} onChange={this.onChangechecked}></Radio> <Radio className="fl" id={item.id} checked={checkevalue===item.id?true:false} onChange={this.onChangechecked}></Radio>
<li className="column-1 fl ml5 assclasslistmidname">{item.name}</li> <li className="column-1 fl ml5 assclasslistmidname">{item.name}</li>
</li> </li>
<li className="column-1 fl ml18">{item.created_at}</li> <li className="column-1 fl ml18 assclasslistmidname" style={{width: '60px'}} >{item.creator_name}</li>
<li className="column-1 fl ml90">{item.end_time}</li> <li className="column-1 fl ml30">{item.created_at}</li>
<li className="column-1 fl ml40">{item.end_time}</li>
</ul> </ul>
) )
})} })}
@ -856,7 +858,7 @@ class ecCourseEvaluations extends Component {
>确定</a> >确定</a>
</div> </div>
</Modal> </Modal>
<div className="educontent mb40"> <div className="educontent mb40 mt60">
<EcTitleCourseEvaluations <EcTitleCourseEvaluations
{...this.props} {...this.props}

@ -663,7 +663,7 @@ class EcCourseEvaluationsbottom extends Component {
} = this.state; } = this.state;
return ( return (
<div className="newMain clearfix"> <div className="newMain clearfix">
<div className="educontent mb50"> <div className="educontent mb50 mt60">
<Modal <Modal
title={titlemessages} title={titlemessages}
// visible={modeldelet===true&&listid===list.id?true:false} // visible={modeldelet===true&&listid===list.id?true:false}

@ -243,7 +243,7 @@ class EcCourseSupportSetting extends Component {
return ( return (
<div className="newMain clearfix courseSupport"> <div className="newMain clearfix courseSupport">
<div className="educontent mb50"> <div className="educontent mb50 mt60">
<EcTitleCourseEvaluations <EcTitleCourseEvaluations
{...this.props} {...this.props}
schooldata={schooldata} schooldata={schooldata}

@ -470,7 +470,7 @@ class ecCourseSupports extends Component {
</Modal> </Modal>
<div className="educontent mb290"> <div className="educontent mb290 mt60">
<EcTitleCourseEvaluations <EcTitleCourseEvaluations
{...this.props} {...this.props}

@ -19,4 +19,8 @@
.additecGrade{ .additecGrade{
margin-top: 2px; margin-top: 2px;
display: inline-block; display: inline-block;
}
.mt60{
margin-top:60px;
} }

@ -37,4 +37,8 @@
color:#afafaf; color:#afafaf;
background:#fff; background:#fff;
line-height:24px; line-height:24px;
}
.mt60{
margin-top:60px;
} }

@ -67,4 +67,8 @@
.graduatesRequirement .ant-table-thead > tr:hover:not(.ant-table-expanded-row) > td, .graduatesRequirement .ant-table-thead > tr:hover:not(.ant-table-expanded-row) > td,
.graduatesRequirement .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td { .graduatesRequirement .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td {
background: transparent !important; background: transparent !important;
}
.mt60{
margin-top:60px;
} }

@ -1,6 +1,8 @@
/*--------------------------首页*/ /*--------------------------首页*/
/*头部导航条样式---2018-03-19--by-cs*/ /*头部导航条样式---2018-03-19--by-cs*/
.newHeader{background: #24292D;width:100%; height: 60px; min-width: 1200px;position: fixed;top: 0px;left: 0px;z-index:1000;-moz-box-shadow: 0px 0px 12px rgba(0,0,0,0.1); /* 老的 Firefox */box-shadow: 0px 0px 12px rgba(0,0,0,0.1);} .newHeader{background: #24292D;width:100%; height: 60px; min-width: 1200px;
/*position: fixed;*/
top: 0px;left: 0px;z-index:1000;-moz-box-shadow: 0px 0px 12px rgba(0,0,0,0.1); /* 老的 Firefox */box-shadow: 0px 0px 12px rgba(0,0,0,0.1);}
.newHeader .logoimg{ .newHeader .logoimg{
margin-top: 16px; margin-top: 16px;
float: left; float: left;
@ -610,7 +612,9 @@ p .activity-item:first-child{border-top: 1px solid #eee;}
#competition-content img,#competition-db-content img,#ccfPage img{vertical-align: bottom;} #competition-content img,#competition-db-content img,#ccfPage img{vertical-align: bottom;}
#hnpage1{background: url('/images/educoder/competition/logo_1.jpg') no-repeat top center;min-height: 820px;} #hnpage1{background: url('/images/educoder/competition/logo_1.jpg') no-repeat top center;min-height: 820px;}
#competition-header{background:#24292D;height: 60px;width: 100%;padding-right: 40px;box-sizing: border-box;position: fixed;top: 0px;left: 0px;width: 100%;z-index: 1000;} #competition-header{background:#24292D;height: 60px;width: 100%;padding-right: 40px;box-sizing: border-box;
/*position: fixed;*/
top: 0px;left: 0px;width: 100%;z-index: 1000;}
#competition-header .logoimg{ #competition-header .logoimg{
margin-top: 5px; margin-top: 5px;
float: left; float: left;

@ -192,7 +192,9 @@ input::-ms-clear{display:none;}
.newContainer{ min-height:100%; height: auto !important; height: 100%; /*IE6不识别min-height*/position: relative;} .newContainer{ min-height:100%; height: auto !important; height: 100%; /*IE6不识别min-height*/position: relative;}
.educontent{width: 1200px;margin:0px auto;box-sizing: border-box}/*中间部分宽度固定为1200*/ .educontent{width: 1200px;margin:0px auto;box-sizing: border-box}/*中间部分宽度固定为1200*/
.educontents{margin:0px auto;box-sizing: border-box}/*中间部分宽度固定为1200*/ .educontents{margin:0px auto;box-sizing: border-box}/*中间部分宽度固定为1200*/
.newMain{ margin: 0 auto; padding-bottom: 235px; min-width:1200px;padding-top: 60px}/*padding-bottom根据底部的高度而定*/ .newMain{ margin: 0 auto; padding-bottom: 235px; min-width:1200px;
/*padding-top: 60px*/
}/*padding-bottom根据底部的高度而定*/
.newMain{ padding-bottom: 110px !important; } .newMain{ padding-bottom: 110px !important; }
/*高度*/ /*高度*/
@ -925,7 +927,7 @@ html>body #ajax-indicator { position: fixed; }
margin: 0 auto; margin: 0 auto;
padding-bottom: 235px; padding-bottom: 235px;
min-width: 1200px; min-width: 1200px;
padding-top: 60px; /*padding-top: 60px;*/
} }
/* css3 radio */ /* css3 radio */

Loading…
Cancel
Save