@ -140,8 +140,8 @@ class GraduationTopicsController < ApplicationController
update_graduation_topic_status
# 拒绝后将该学生移动到未分班中
student_member = @course.course_members.where(:user_id => student_graduation_topic.user_id).first
# student_member = @course.course_members.where(:user_id => student_graduation_topic.user_id).first
student_member.update_attributes(:course_group_id => 0) if student_member.present?
# student_member.update_attributes(:course_group_id => 0) if student_member.present?
student_graduation_topic.tidings.update_all(:status => 1)
Tiding.create(:user_id => student_graduation_topic.user_id, :trigger_user_id => current_user.id,
@ -194,7 +194,7 @@ class HacksController < ApplicationController
end
def hack_params
params.require(:hack).permit(:name, :description, :difficult, :category, :open_or_not, :time_limit, :score, :sub_discipline_id)
params.require(:hack).permit(:name, :description, :difficult, :open_or_not, :time_limit, :score, :sub_discipline_id)
def item_params
@ -133,16 +133,18 @@ class Testpaperlibrary extends Component {
callback = (key) => {
this.setState({
defaultActiveKey: key,
difficulty:null
difficulty:null,
keywords:null,
page:1,
})
var data={
page:this.state.page,
discipline_id:this.state.discipline_id,
sub_discipline_id:this.state.sub_discipline_id,
tag_discipline_id:this.state.tag_discipline_id,
public: key,
difficulty: this.state.difficulty,
keywords: 1,
keywords: null,
per_page:10,
}
this.getdata(data);
@ -382,6 +382,7 @@ class Challengesjupyter extends Component {
setTimeout(()=>{
jupyter_url :response.data.url,
jupyter_port:response.data.port,
booljupyterurls:true,
},500);
@ -204,7 +204,7 @@ export const saveJupyterTpi = () => {
payload: false
});
}, 500)
}, 800)