Authored by jimi.ji

add new page issue

... ... @@ -120,10 +120,10 @@
<div id="infoTableDiv">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active">
<a href="#javaConfigPart" id="javaConfigPartShow" aria-controls="ipPart" role="tab" data-toggle="tab">Java Config</a>
<a href="#javaConfigPart" id="javaConfigPartShow" aria-controls="ipPart" role="tab" data-toggle="tab">application</a>
</li>
<li role="presentation" >
<a href="#applicationPart" aria-controls="totalPart" role="tab" data-toggle="tab">Application</a>
<a href="#applicationPart" style="display: none" id="commonPartShow" aria-controls="totalPart" role="tab" data-toggle="tab">Application</a>
</li>
</ul>
<div class="tab-content" style="padding-top:10px">
... ... @@ -160,7 +160,7 @@
<div class="form-group">
<label class="col-sm-2 control-label">应用:</label>
<div class="col-sm-8">
<select id="application" name="application" class="form-control">
<select id="application" name="application" class="form-control select2" style="width:300px;">
<c:forEach items="${appSelected}" var="javaApp">
<option value="${javaApp}">${javaApp}</option>
</c:forEach>
... ... @@ -304,14 +304,30 @@
tags: true
});
$("#application").select2({
dropdownParent:$("#uploadModal"),
tags: true
});
$("#cloudType").change(function(){
var selectname_begin = $("#cloudType").val();
$("#javaConfigPartShow").text(selectname_begin);
if("application"==selectname_begin){
$("#commonPartShow").prop("style","display:none");
}else{
$("#commonPartShow").removeAttr("style")
}
btnSearch();
//添加所需要执行的操作代码display:none
})
});
$('input[id=file]').change(function () {
$('#filepath').val($(this).val());
});
... ... @@ -499,14 +515,18 @@
function editAuthModule(id, name, cname, modulegroup) {
$("#uploadModal #messageAlert").hide();
$("#uploadModal").modal('show');
var selectname_begin = $("#cloudType").val();
$("#application").val(selectname_begin).trigger('change');
}
function locadconfigmodal(application_modal, key_modal, default_value, az1_value, az2_value) {
var selectname_begin = $("#cloudType").val();
if (key_modal != null && key_modal != "") {
$("input[name='default_value']").val(default_value);
$("input[name='az1_value']").val(az1_value);
$("input[name='az2_value']").val(az2_value);
$("#application_modal").val(application_modal);
$("#application_modal").val(application_modal).trigger('change');
$("#key_modal").val(key_modal);
$("#key_modal").prop("readonly",true);
$("#application_modal").prop("disabled","disabled");
... ... @@ -514,6 +534,7 @@
}else {
$("#key_modal").prop("readonly",false);
$("#application_modal").removeAttr("disabled");
$("#application_modal").val(selectname_begin).trigger('change');
$("#myModalLabel").text("新增配置信息");
$("input[name='default_value']").val("");
$("input[name='az1_value']").val("");
... ...