Authored by mlge

1)工单object添加 uploadCDN字段;2)新建工单 增加 是否上传CDN选项;3) 工单详情 展示 CDN是否上传;

... ... @@ -47,6 +47,9 @@ public class ReleaseWorkJob {
*/
private String projectDeployType;
//发布方式为 git 时 肯定为0
private Integer uploadCDN;//0 --否 1--上传
/**
* 分支
*/
... ...
... ... @@ -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({
... ...
... ... @@ -117,6 +117,16 @@
readonly="readonly"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-6 control-label"><strong>上传CDN:</strong></label>
<div class="col-sm-8">
<input type="text" class="form-control"
<c:if test="${workJob.uploadCDN == 0}">value="否"</c:if>
<c:if test="${workJob.uploadCDN == 1}">value="是"</c:if>
style='border-left:0px;border-top:0px;border-right:0px;border-bottom:1px '
readonly="readonly"/>
</div>
</div>
</c:when>
<c:otherwise>
... ...