diff --git a/app/controllers/ec_course_evaluations_controller.rb b/app/controllers/ec_course_evaluations_controller.rb index f2a54e6f..52da9c86 100644 --- a/app/controllers/ec_course_evaluations_controller.rb +++ b/app/controllers/ec_course_evaluations_controller.rb @@ -169,7 +169,8 @@ class EcCourseEvaluationsController < ApplicationController else score_count = @ce.evluation_count * length 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 render :json => {status: 0, message: "平均成绩只能有一行数据"} else diff --git a/public/react/public/css/css_min_all.css b/public/react/public/css/css_min_all.css index a011c4d4..cc900282 100644 --- a/public/react/public/css/css_min_all.css +++ b/public/react/public/css/css_min_all.css @@ -4,7 +4,9 @@ html{height:100%;} .newContainer{ min-height:100%; height: auto !important; height: 100%; /*IE6不识别min-height*/position: relative;} .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;} -.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;} table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:14px;line-height:1.9; background:#f5f5f5; color:#333;} diff --git a/public/react/public/css/edu-common.css b/public/react/public/css/edu-common.css index cd21d94c..a53b2975 100644 --- a/public/react/public/css/edu-common.css +++ b/public/react/public/css/edu-common.css @@ -4,7 +4,9 @@ html{height:100%;} .newContainer{ min-height:100%; height: auto !important; height: 100%; /*IE6不识别min-height*/position: relative;} .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;} -.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;} table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:14px;line-height:1.9; background:#f5f5f5; color:#333;} diff --git a/public/react/src/modules/ec/css/ecCourseEvaluations.css b/public/react/src/modules/ec/css/ecCourseEvaluations.css index 5b2a1764..11ee74bb 100644 --- a/public/react/src/modules/ec/css/ecCourseEvaluations.css +++ b/public/react/src/modules/ec/css/ecCourseEvaluations.css @@ -554,4 +554,8 @@ a.TrainingLecturer:hover{ .ant-input{ border-color: #d9d9d9 !important; - } \ No newline at end of file + } + +.mt60{ + margin-top:60px; +} \ No newline at end of file diff --git a/public/react/src/modules/ec/css/ecCourseSupports.css b/public/react/src/modules/ec/css/ecCourseSupports.css index f29970bc..3f1dc000 100644 --- a/public/react/src/modules/ec/css/ecCourseSupports.css +++ b/public/react/src/modules/ec/css/ecCourseSupports.css @@ -345,4 +345,8 @@ input{ .ant-select-selection{ -webkit-box-shadow: 0 0 0 2px transparent !important; box-shadow: 0 0 0 2px transparent !important; - } \ No newline at end of file + } + +.mt60{ + margin-top:60px; +} \ No newline at end of file diff --git a/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js b/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js index 1d53d11d..c3e45ce9 100644 --- a/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js +++ b/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js @@ -859,7 +859,7 @@ class ecCourseEvaluations extends Component { >确定 -