...
|
...
|
@@ -145,6 +145,17 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group" id = "uploadCDN_div" style="display: none">
|
|
|
<label class="col-sm-1 control-label"><strong>上传CDN:</strong></label>
|
|
|
<div class="col-sm-8">
|
|
|
<select id="uploadCDN" name="uploadCDN" class="form-control" style="width: 300px;height:40px">
|
|
|
<option value="0">否</option>
|
|
|
<option value="1">是</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label"><strong>敏感接口:</strong></label>
|
|
|
<div class="col-sm-8">
|
...
|
...
|
@@ -276,6 +287,8 @@ |
|
|
$(".deploy_type_div_class").hide();
|
|
|
$("#"+val+"_deploy_type_div").show();
|
|
|
if(val=="image"){
|
|
|
$("#uploadCDN_div").show();//显示 上传CDN区域
|
|
|
|
|
|
$("#imagesList").select2("val", "");
|
|
|
$('#imagesList').select2().empty();
|
|
|
//加载项目的镜像
|
...
|
...
|
@@ -309,6 +322,10 @@ |
|
|
}
|
|
|
|
|
|
|
|
|
}else{
|
|
|
$("#uploadCDN").val(0);
|
|
|
$("#uploadCDN_div").hide();//隐藏当前区域
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -353,6 +370,9 @@ |
|
|
}
|
|
|
|
|
|
function changePlatform() {
|
|
|
$("#projectDeployType").prop("disabled", true);//下拉不可用
|
|
|
$('#projectDeployType').val("git").trigger('change');//触发 type改变事件
|
|
|
|
|
|
//把已选的环境变量去掉
|
|
|
$('input:checkbox[name=environment]').removeAttr("checked");
|
|
|
$("#environmentDiv_common").empty();
|
...
|
...
|
@@ -725,7 +745,8 @@ |
|
|
sensitiveInterface: $("#sensitiveInterface").val(),
|
|
|
testProject: testProject,
|
|
|
projectType:$("input[name='projectTypes']:checked").val(),
|
|
|
test: test
|
|
|
test: test,
|
|
|
uploadCDN: $("#uploadCDN").val()
|
|
|
};
|
|
|
|
|
|
$.ajax({
|
...
|
...
|
|