|
|
|
@ -344,8 +344,9 @@
|
|
|
|
|
<!-- <div class="cl"></div>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<% end %>
|
|
|
|
|
<div id='result'></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id='result'></div>
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="clearfix mt30">
|
|
|
|
|
<a href="javascript:void(0)" class="defalutSubmitbtn fl mr20" onclick="submit_edit_shixun(<%= @shixun.id %>);">保存</a>
|
|
|
|
@ -358,10 +359,9 @@
|
|
|
|
|
|
|
|
|
|
<script id="t:edit-setting-list" type="text/html">
|
|
|
|
|
|
|
|
|
|
<!if(list.length>1) { !>
|
|
|
|
|
<!if(list.length>0) { !>
|
|
|
|
|
<!for(var i=0;i<list.length;i++){!>
|
|
|
|
|
<div class="edu-back-white padding40-20 mb20">
|
|
|
|
|
<p class="color-grey-6 font-16 mb30">服务配置</p>
|
|
|
|
|
|
|
|
|
|
<p class="color-grey-6 font-16 mt30" id="shixun_scenario_type_name">
|
|
|
|
|
<!=listname[i]!>
|
|
|
|
|
</p>
|
|
|
|
@ -369,7 +369,7 @@
|
|
|
|
|
<div class="clearfix mb5">
|
|
|
|
|
<label class="panel-form-label fl">CPU(核):</label>
|
|
|
|
|
<div class="pr fl with80 status_con">
|
|
|
|
|
<input type="text" name="cpu_limit[]" value="<%= config.cpu_limit %>" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
<input type="text" name="cpu_limit[]" value="1" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -377,7 +377,7 @@
|
|
|
|
|
<div class="clearfix mb5">
|
|
|
|
|
<label class="panel-form-label fl">最低CPU(核):</label>
|
|
|
|
|
<div class="pr fl with80 status_con">
|
|
|
|
|
<input type="text" name="lower_cpu_limit[]" value="<%= config.lower_cpu_limit %>" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
<input type="text" name="lower_cpu_limit[]" value="0.1" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -385,7 +385,7 @@
|
|
|
|
|
<div class="clearfix mb5">
|
|
|
|
|
<label class="panel-form-label fl">内存限制(M):</label>
|
|
|
|
|
<div class="pr fl with80 status_con">
|
|
|
|
|
<input type="text" name="memory_limit[]" value="<%= config.memory_limit %>"class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
<input type="text" name="memory_limit[]" value="1024" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -393,13 +393,13 @@
|
|
|
|
|
<div class="clearfix mb5">
|
|
|
|
|
<label class="panel-form-label fl">内存要求(M):</label>
|
|
|
|
|
<div class="pr fl with20 status_con">
|
|
|
|
|
<input type="text" name="request_limit[]" value="<%= config.request_limit %>" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
<input type="text" name="request_limit[]" value="10" class="panel-box-sizing task-form-100 task-height-40"
|
|
|
|
|
placeholder="请输入类别名称"/>
|
|
|
|
|
</div>
|
|
|
|
|
<label class="panel-form-label fl" style="width: 48%">温馨提示:纯编程类型实训建议使用默认值,对于大数据等建议使用最大内存的30%</label>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!}!>
|
|
|
|
|
<!}else{!><!}!>
|
|
|
|
|
|
|
|
|
@ -511,6 +511,7 @@
|
|
|
|
|
$(this).find(".down-select").hide();
|
|
|
|
|
});
|
|
|
|
|
$("[select-more] .down-select p input").bind("click", function (){
|
|
|
|
|
|
|
|
|
|
var bt=baidu.template;
|
|
|
|
|
bt.LEFT_DELIMITER='<!';
|
|
|
|
|
bt.RIGHT_DELIMITER='!>';
|
|
|
|
@ -530,6 +531,7 @@
|
|
|
|
|
"listname":arrs,
|
|
|
|
|
"list":idarr
|
|
|
|
|
};
|
|
|
|
|
debugger
|
|
|
|
|
var htmlidarr=bt('t:edit-setting-list',data);
|
|
|
|
|
document.getElementById('result').innerHTML=htmlidarr;
|
|
|
|
|
$("input[name='small_type']").val(idarr);
|
|
|
|
|