commit
1694ae7f48
@ -0,0 +1,9 @@
|
|||||||
|
class AddMessageCountForBoards < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
boards = Board.where(:parent_id => 0)
|
||||||
|
Board.reset_column_information
|
||||||
|
boards.find_each do |board|
|
||||||
|
Board.reset_counters board.id, :messages
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,18 @@
|
|||||||
|
class ChangeExericse1936Scores < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
#1936的试卷成绩有问题。
|
||||||
|
# #https://www.educoder.net/courses/2935/exercises/1936/users/pizfnr5ts
|
||||||
|
ex_special = Exercise.find_by_id(1936)
|
||||||
|
ex_special_users = ex_special&.exercise_users&.exercise_user_committed&.where("end_at is not null and end_at > ?",Time.now - 2.months)
|
||||||
|
if ex_special.present? && ex_special_users.exists?
|
||||||
|
ex_special_users.each do |ex_user|
|
||||||
|
calculate_score = calculate_student_score(ex_special,ex_user.user)[:total_score]
|
||||||
|
subjective_score = ex_user.subjective_score
|
||||||
|
total_score_subjective_score = subjective_score < 0.0 ? 0.0 : subjective_score
|
||||||
|
total_score = calculate_score + total_score_subjective_score
|
||||||
|
ex_user.update_attributes(score:total_score,objective_score:calculate_score)
|
||||||
|
puts ex_user.id
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -1,72 +1,80 @@
|
|||||||
.studentList_operation_ul{
|
.studentList_operation_ul{
|
||||||
color: #999;
|
color: #999;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
float: right;
|
float: right;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
.studentList_operation_ul li{
|
.studentList_operation_ul li{
|
||||||
float: left;
|
float: left;
|
||||||
padding:0px 20px;
|
padding:0px 20px;
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
flex: 0 0 26px;
|
flex: 0 0 26px;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
}
|
}
|
||||||
.studentList_operation_ul li.li_line:after{
|
.studentList_operation_ul li.li_line:after{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: '';
|
content: '';
|
||||||
width: 1px;
|
width: 1px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
background-color: #EDEDED;
|
background-color: #EDEDED;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
top:6px;
|
top:6px;
|
||||||
}
|
}
|
||||||
.studentList_operation_ul li:last-child{
|
.studentList_operation_ul li:last-child{
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
}
|
}
|
||||||
.studentList_operation_ul li:last-child:after{
|
.studentList_operation_ul li:last-child:after{
|
||||||
width: 0px;
|
width: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 基础的下拉列表、列如排序等 */
|
/* 基础的下拉列表、列如排序等 */
|
||||||
.drop_down_normal li{
|
.drop_down_normal li{
|
||||||
padding: 0px 20px;
|
padding: 0px 20px;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
line-height: 34px;
|
line-height: 34px;
|
||||||
min-width: 96px;
|
min-width: 96px;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stu_table table{
|
.stu_table table{
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
.stu_table .classesName{
|
.stu_table .classesName{
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 428px;
|
max-width: 428px;
|
||||||
}
|
}
|
||||||
.stu_table .ant-table-thead > tr > th{
|
.stu_table .ant-table-thead > tr > th{
|
||||||
padding:21px 16px;
|
padding:21px 16px;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
.stu_table .ant-table-tbody tr:last-child td{
|
.stu_table .ant-table-tbody tr:last-child td{
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
.stu_table table .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td{
|
.stu_table table .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td{
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stu_head{
|
.stu_head{
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
}
|
}
|
||||||
.ant-modal-body{
|
.ant-modal-body{
|
||||||
padding:30px 40px;
|
padding:30px 40px;
|
||||||
}
|
}
|
||||||
.color-dark-21{
|
.color-dark-21{
|
||||||
color: #212121;
|
color: #212121;
|
||||||
}
|
}
|
||||||
.tabletd {
|
.tabletd {
|
||||||
background-color:#E6F7FF;
|
background-color:#E6F7FF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.yslminheigth{
|
||||||
|
min-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yslminheigths{
|
||||||
|
min-height: 21px;
|
||||||
|
}
|
Loading…
Reference in new issue