|
|
|
@ -471,45 +471,45 @@ $(document).on('turbolinks:load', function(){
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <div id="small_panel_'+count+'" class="small_panel">\n' +
|
|
|
|
|
' <div class="row d-flex small_panel_item" attr_line="sub_new_new" count="1">\n' +
|
|
|
|
|
' <span class="col-1 mt-2 subName">第1阶段</span>\n' +
|
|
|
|
|
' <span class="mt-2 subName mr10">第1阶段</span>\n' +
|
|
|
|
|
' <div class="flex-1">\n' +
|
|
|
|
|
' <div class="row">\n' +
|
|
|
|
|
' <span class="mt-2 ml20">有效时间:</span>\n' +
|
|
|
|
|
' <div class="col-2 no_padding input_middle">\n' +
|
|
|
|
|
' <div class="row col-6"><span class="mt-2 ml20">有效时间:</span>\n' +
|
|
|
|
|
' <div class="col-4 no_padding">\n' +
|
|
|
|
|
' <input type="text" name="stage[][start_time]" id="stage__start_time" value="" autocomplete="off" class="section-start-time form-control" placeholder="有效开始时间">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <span class="mt-2">~</span>\n' +
|
|
|
|
|
' <div class="col-2 no_padding input_middle">\n' +
|
|
|
|
|
' <div class="col-4 no_padding ">\n' +
|
|
|
|
|
' <input type="text" name="stage[][end_time]" id="stage__end_time" value="" autocomplete="off" class="section-end-time form-control" placeholder="有效结束时间">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <span class="col-2 text-right mt-2 no_padding">总任务数:</span>\n' +
|
|
|
|
|
' <div class="col-1 no_padding input_small">\n' +
|
|
|
|
|
' </div></div>\n' +
|
|
|
|
|
' <div class="row col-3"><span class="col-4 text-right mt-2 no_padding">总任务数:</span>\n' +
|
|
|
|
|
' <div class="col-6 no_padding ">\n' +
|
|
|
|
|
' <input type="number" class="form-control" onchange="change_total(this)" value="3" name="stage[][entry]">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <span class="col-1 text-right mt-2 no_padding">成绩来源:</span>\n' +
|
|
|
|
|
' <div class="col-2 no_padding input_middle">\n' +
|
|
|
|
|
' </div></div>\n' +
|
|
|
|
|
' <div class="row col-4"><span class="col-3 text-right mt-2 no_padding">成绩来源:</span>\n' +
|
|
|
|
|
' <div class="col-7 no_padding ">\n' +
|
|
|
|
|
' <select class="form-control" name="stage[][score_source]">\n' +
|
|
|
|
|
' <option value="0">经验值</option>\n' +
|
|
|
|
|
' <option value="1">预测准确率</option>\n' +
|
|
|
|
|
' </select>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div></div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <div class="row mt-2" id="task_Input_sub_new_new">\n' +
|
|
|
|
|
' <div class="col-4 row task_Input_div">\n' +
|
|
|
|
|
' <span class="col-3 text-center mt-3">任务1</span>\n' +
|
|
|
|
|
' <div class="col-8">\n' +
|
|
|
|
|
' <span class="col-4 text-right mt-3 no_padding mr10">任务1</span>\n' +
|
|
|
|
|
' <div class="col-6 no_padding">\n' +
|
|
|
|
|
' <input type="text" class="form-control mt-2" name="stage[][identifiers][]" placeholder="请填写实训ID">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <div class="col-4 row task_Input_div">\n' +
|
|
|
|
|
' <span class="col-3 text-center mt-3">任务2</span>\n' +
|
|
|
|
|
' <div class="col-8">\n' +
|
|
|
|
|
' <span class="col-4 text-right mt-3 no_padding mr10">任务2</span>\n' +
|
|
|
|
|
' <div class="col-6 no_padding">\n' +
|
|
|
|
|
' <input type="text" class="form-control mt-2" name="stage[][identifiers][]" placeholder="请填写实训ID">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <div class="col-4 row task_Input_div">\n' +
|
|
|
|
|
' <span class="col-3 text-center mt-3">任务3</span>\n' +
|
|
|
|
|
' <div class="col-8">\n' +
|
|
|
|
|
' <span class="col-4 text-right mt-3 no_padding mr10">任务3</span>\n' +
|
|
|
|
|
' <div class="col-6 no_padding">\n' +
|
|
|
|
|
' <input type="text" class="form-control mt-2" name="stage[][identifiers][]" placeholder="请填写实训ID">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
@ -547,45 +547,45 @@ $(document).on('turbolinks:load', function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var html='<div class="row d-flex small_panel_item" attr_line="sub_'+index+'_'+count+'" count="'+count+'">\n' +
|
|
|
|
|
' <span class="col-1 mt-2 subName">第'+showCount+'阶段</span>\n' +
|
|
|
|
|
' <span class="mr10 mt-2 subName">第'+showCount+'阶段</span>\n' +
|
|
|
|
|
' <div class="flex-1">\n' +
|
|
|
|
|
' <div class="row">\n' +
|
|
|
|
|
' <span class="mt-2 ml20">有效时间:</span>\n' +
|
|
|
|
|
' <div class="col-2 no_padding input_middle">\n' +
|
|
|
|
|
' <div class="row col-6"><span class="mt-2 ml20 mr10">有效时间:</span>\n' +
|
|
|
|
|
' <div class="col-4 no_padding ">\n' +
|
|
|
|
|
' <input type="text" name="stage[][start_time]" id="stage__start_time" value="" autocomplete="off" class="section-start-time form-control" placeholder="有效开始时间">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <span class="mt-2">~</span>\n' +
|
|
|
|
|
' <div class="col-2 no_padding input_middle">\n' +
|
|
|
|
|
' <div class="col-4 no_padding ">\n' +
|
|
|
|
|
' <input type="text" name="stage[][end_time]" id="stage__end_time" value="" autocomplete="off" class="section-end-time form-control" placeholder="有效结束时间">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <span class="col-2 text-right mt-2 no_padding">总任务数:</span>\n' +
|
|
|
|
|
' <div class="col-1 no_padding input_small">\n' +
|
|
|
|
|
' </div></div>\n' +
|
|
|
|
|
' <div class="row col-3"><span class="col-4 text-right mt-2 no_padding mr10">总任务数:</span>\n' +
|
|
|
|
|
' <div class="col-6 no_padding ">\n' +
|
|
|
|
|
' <input type="number" class="form-control" onchange="change_total(this)" value="3" name="stage[][entry]">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <span class="col-1 text-right mt-2 no_padding">成绩来源:</span>\n' +
|
|
|
|
|
' <div class="col-2 no_padding input_middle">\n' +
|
|
|
|
|
' </div></div>\n' +
|
|
|
|
|
' <div class="row col-4"><span class="col-3 mr10 text-right mt-2 no_padding">成绩来源:</span>\n' +
|
|
|
|
|
' <div class="col-7 no_padding ">\n' +
|
|
|
|
|
' <select class="form-control" name="stage[][score_source]">\n' +
|
|
|
|
|
' <option value="0">经验值</option>\n' +
|
|
|
|
|
' <option value="1">预测准确率</option>\n' +
|
|
|
|
|
' </select>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div></div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <div class="row mt-2" id="task_Input_sub_'+index+'_'+count+'">\n'+
|
|
|
|
|
' <div class="col-4 row task_Input_div">\n' +
|
|
|
|
|
' <span class="col-3 text-center mt-3">任务1</span>\n' +
|
|
|
|
|
' <div class="col-8">\n' +
|
|
|
|
|
' <span class="col-4 text-right mt-3 no_padding mr10">任务1</span>\n' +
|
|
|
|
|
' <div class="col-6 no_padding">\n' +
|
|
|
|
|
' <input type="text" class="form-control mt-2" name="stage[][identifiers][]" placeholder="请填写实训ID">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <div class="col-4 row task_Input_div">\n' +
|
|
|
|
|
' <span class="col-3 text-center mt-3">任务2</span>\n' +
|
|
|
|
|
' <div class="col-8">\n' +
|
|
|
|
|
' <span class="col-4 text-right mt-3 no_padding mr10">任务2</span>\n' +
|
|
|
|
|
' <div class="col-6 no_padding">\n' +
|
|
|
|
|
' <input type="text" class="form-control mt-2" name="stage[][identifiers][]" placeholder="请填写实训ID">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <div class="col-4 row task_Input_div">\n' +
|
|
|
|
|
' <span class="col-3 text-center mt-3">任务3</span>\n' +
|
|
|
|
|
' <div class="col-8">\n' +
|
|
|
|
|
' <span class="col-4 text-right mt-3 no_padding mr10">任务3</span>\n' +
|
|
|
|
|
' <div class="col-6 no_padding">\n' +
|
|
|
|
|
' <input type="text" class="form-control mt-2" name="stage[][identifiers][]" placeholder="请填写实训ID">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
@ -633,8 +633,8 @@ function change_total(item) {
|
|
|
|
|
var html = "";
|
|
|
|
|
if(count > divCount){
|
|
|
|
|
for(var i=0;i < count-divCount ;i++){
|
|
|
|
|
html+='<div class="col-4 row task_Input_div"><span class="col-3 text-center mt-3">任务'+(divCount+i+1)+'</span>\n' +
|
|
|
|
|
'<div class="col-8">\n' +
|
|
|
|
|
html+='<div class="col-4 row task_Input_div"><span class="col-4 text-right mt-3 no_padding mr10">任务'+(divCount+i+1)+'</span>\n' +
|
|
|
|
|
'<div class="col-6 no_padding">\n' +
|
|
|
|
|
'<input type="text" class="form-control mt-2" name="stage[][identifiers][]" placeholder="请填写实训ID">\n' +
|
|
|
|
|
'</div>\n' +
|
|
|
|
|
'</div>';
|
|
|
|
@ -688,45 +688,45 @@ function addNewTab(competition_id) {
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <div id="small_panel_'+count+'" class="small_panel">\n' +
|
|
|
|
|
' <div class="row d-flex small_panel_item" attr_line="sub_new_new" count="1">\n' +
|
|
|
|
|
' <span class="col-1 mt-2 subName">第1阶段</span>\n' +
|
|
|
|
|
' <span class="mt-2 subName mr10">第1阶段</span>\n' +
|
|
|
|
|
' <div class="flex-1">\n' +
|
|
|
|
|
' <div class="row">\n' +
|
|
|
|
|
' <span class="mt-2 ml20">有效时间:</span>\n' +
|
|
|
|
|
' <div class="col-2 no_padding input_middle">\n' +
|
|
|
|
|
' <div class="row col-6"><span class="mt-2 ml20 mr10">有效时间:</span>\n' +
|
|
|
|
|
' <div class="col-4 no_padding ">\n' +
|
|
|
|
|
' <input type="text" name="stage[][start_time]" id="stage__start_time" value="" autocomplete="off" class="section-start-time form-control" placeholder="有效开始时间">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <span class="mt-2">~</span>\n' +
|
|
|
|
|
' <div class="col-2 no_padding input_middle">\n' +
|
|
|
|
|
' <div class="col-4 no_padding input_middle">\n' +
|
|
|
|
|
' <input type="text" name="stage[][end_time]" id="stage__end_time" value="" autocomplete="off" class="section-end-time form-control" placeholder="有效结束时间">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <span class="col-2 text-right mt-2 no_padding">总任务数:</span>\n' +
|
|
|
|
|
' <div class="col-1 no_padding input_small">\n' +
|
|
|
|
|
' </div></div>\n' +
|
|
|
|
|
' <div class="row col-3"><span class="col-4 text-right mt-2 no_padding mr10">总任务数:</span>\n' +
|
|
|
|
|
' <div class="col-6 no_padding ">\n' +
|
|
|
|
|
' <input type="number" class="form-control" onchange="change_total(this)" value="3" name="stage[][entry]">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <span class="col-1 text-right mt-2 no_padding">成绩来源:</span>\n' +
|
|
|
|
|
' <div class="col-2 no_padding input_middle">\n' +
|
|
|
|
|
' </div></div>\n' +
|
|
|
|
|
' <div class="row col-4"><span class="col-3 text-right mt-2 no_padding mr10">成绩来源:</span>\n' +
|
|
|
|
|
' <div class="col-7 no_padding ">\n' +
|
|
|
|
|
' <select class="form-control" name="stage[][score_source]">\n' +
|
|
|
|
|
' <option value="0">经验值</option>\n' +
|
|
|
|
|
' <option value="1">预测准确率</option>\n' +
|
|
|
|
|
' </select>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div></div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <div class="row mt-2" id="task_Input_sub_new_new">\n' +
|
|
|
|
|
' <div class="col-4 row task_Input_div">\n' +
|
|
|
|
|
' <span class="col-3 text-center mt-3">任务1</span>\n' +
|
|
|
|
|
' <div class="col-8">\n' +
|
|
|
|
|
' <span class="col-3 text-right mt-3 no_padding mr10">任务1</span>\n' +
|
|
|
|
|
' <div class="col-8 no_padding">\n' +
|
|
|
|
|
' <input type="text" class="form-control mt-2" name="stage[][identifiers][]" placeholder="请填写实训ID">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <div class="col-4 row task_Input_div">\n' +
|
|
|
|
|
' <span class="col-3 text-center mt-3">任务2</span>\n' +
|
|
|
|
|
' <div class="col-8">\n' +
|
|
|
|
|
' <span class="col-3 text-right mt-3 no_padding mr10">任务2</span>\n' +
|
|
|
|
|
' <div class="col-8 no_padding">\n' +
|
|
|
|
|
' <input type="text" class="form-control mt-2" name="stage[][identifiers][]" placeholder="请填写实训ID">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' <div class="col-4 row task_Input_div">\n' +
|
|
|
|
|
' <span class="col-3 text-center mt-3">任务3</span>\n' +
|
|
|
|
|
' <div class="col-8">\n' +
|
|
|
|
|
' <span class="col-3 text-right no_padding mr10 mt-3">任务3</span>\n' +
|
|
|
|
|
' <div class="col-8 no_padding">\n' +
|
|
|
|
|
' <input type="text" class="form-control mt-2" name="stage[][identifiers][]" placeholder="请填写实训ID">\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|
' </div>\n' +
|
|
|
|
|