...
|
...
|
@@ -81,7 +81,7 @@ |
|
|
|
|
|
</div>
|
|
|
<div class="widget-content nopadding">
|
|
|
<div class="widget-title" style="height: 53px;">
|
|
|
<div class="widget-title" style="height: 98px;">
|
|
|
<div>
|
|
|
<div class="form-inline" role="form" id="inBoxQueryDiv"
|
|
|
style=" margin-top: 12px;margin-left: 25px;float: left;">
|
...
|
...
|
@@ -90,22 +90,24 @@ |
|
|
<select id="cloudType" name="cloudType" class="form-control">
|
|
|
<option value="zookeeper_aws">aws</option>
|
|
|
<option value="zookeeper_qq">qCloud</option>
|
|
|
<option value="gray_qq">gray</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="input-group" style="float: left;">
|
|
|
<span class="input-group-addon">配置项:</span>
|
|
|
<input type="text" id="configName" name="configName" class="form-control" placeholder=""/>
|
|
|
</div>
|
|
|
<div class="input-group" style="float: left;">
|
|
|
<span class="input-group-addon">配置名称:</span>
|
|
|
<input type="text" id="configShowName" name="configShowName" class="form-control" placeholder=""/>
|
|
|
<span class="input-group-addon">一级页面:</span>
|
|
|
<select id="level1Page" name="functionPoint" class="form-control">
|
|
|
<option value="">全部</option>
|
|
|
<c:forEach items="${level1Pages }" var="level1Page">
|
|
|
<option value="${level1Page }">${level1Page }</option>
|
|
|
</c:forEach>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="input-group" style="float: left;">
|
|
|
<span class="input-group-addon">功能点:</span>
|
|
|
<select id="functionPoint" name="functionPoint" class="form-control">
|
|
|
<span class="input-group-addon">二级页面:</span>
|
|
|
<select id="level2Page" name="functionPoint" class="form-control">
|
|
|
<option value="">全部</option>
|
|
|
<c:forEach items="${functionPoints }" var="functionPoint">
|
|
|
<option value="${functionPoint }">${functionPoint }</option>
|
|
|
<c:forEach items="${level2Pages }" var="level2Page">
|
|
|
<option value="${level2Page }">${level2Page }</option>
|
|
|
</c:forEach>
|
|
|
</select>
|
|
|
</div>
|
...
|
...
|
@@ -125,6 +127,27 @@ |
|
|
<option value="N">关</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="input-group" style="float: left;width: 200px;">
|
|
|
<span class="input-group-addon">配置项:</span>
|
|
|
<input type="text" id="configName" name="configName" class="form-control" placeholder=""/>
|
|
|
</div>
|
|
|
<div class="input-group" style="float: left;width: 200px;">
|
|
|
<span class="input-group-addon">配置名称:</span>
|
|
|
<input type="text" id="configShowName" name="configShowName" class="form-control" placeholder=""/>
|
|
|
</div>
|
|
|
<div class="input-group" style="float: left;width: 200px;">
|
|
|
<span class="input-group-addon">接口名称:</span>
|
|
|
<input type="text" id="apiName" name="apiName" class="form-control" placeholder=""/>
|
|
|
</div>
|
|
|
<%--<div class="input-group" style="float: left;width: auto">--%>
|
|
|
<%--<span class="input-group-addon">功能点:</span>--%>
|
|
|
<%--<select id="functionPoint" name="functionPoint" class="form-control">--%>
|
|
|
<%--<option value="">全部</option>--%>
|
|
|
<%--<c:forEach items="${functionPoints }" var="functionPoint">--%>
|
|
|
<%--<option value="${functionPoint }">${functionPoint }</option>--%>
|
|
|
<%--</c:forEach>--%>
|
|
|
<%--</select>--%>
|
|
|
<%--</div>--%>
|
|
|
<button id="searchDegradeInfoBtn" class="btn btn-primary" style="margin-left: 18px;">搜索</button>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -147,41 +170,55 @@ |
|
|
loadFilter: function (data) {
|
|
|
return defaultLoadFilter(data);
|
|
|
},
|
|
|
columns: [{
|
|
|
columns: [ {
|
|
|
title: "配置项",
|
|
|
width:"20%",
|
|
|
width:"15%",
|
|
|
align:"left",
|
|
|
field: "configName"
|
|
|
},{
|
|
|
title: "一级页面",
|
|
|
width:"15%",
|
|
|
field: "level1Page"
|
|
|
},{
|
|
|
title: "二级页面",
|
|
|
width:"20%",
|
|
|
field: "level2Page"
|
|
|
}, {
|
|
|
title: "配置名称",
|
|
|
width:"20%",
|
|
|
width:"9%",
|
|
|
field: "configShowName"
|
|
|
},{
|
|
|
title: "接口名称",
|
|
|
width:"9%",
|
|
|
field: "apiName"
|
|
|
}, {
|
|
|
title: "配置描述",
|
|
|
width:"20%",
|
|
|
field: "configDesc"
|
|
|
}, {
|
|
|
title: "功能点",
|
|
|
width:"20%",
|
|
|
field: "functionPointName"
|
|
|
}, {
|
|
|
title: "级别",
|
|
|
width:"5%",
|
|
|
field: "level",
|
|
|
formatter : function(value, rowData, rowIndex) {
|
|
|
if(value == 1){
|
|
|
return "<div style='background-color: #1f41be'><font color='white'>"+"一级"+"</font></div>";
|
|
|
}else if(value == 2){
|
|
|
return "<div style='background-color: #3094be'><font color='white'>"+"二级"+"</font></div>";
|
|
|
}
|
|
|
},
|
|
|
}, {
|
|
|
title: "图片",
|
|
|
width:"5%",
|
|
|
field: "img"
|
|
|
},{
|
|
|
title: "客户端",
|
|
|
width:"8%",
|
|
|
field: "clientType"
|
|
|
},
|
|
|
// {
|
|
|
// title: "功能点",
|
|
|
// width:"10%",
|
|
|
// field: "functionPointName"
|
|
|
// },
|
|
|
{
|
|
|
title: "级别",
|
|
|
width:"4%",
|
|
|
field: "level",
|
|
|
formatter : function(value, rowData, rowIndex) {
|
|
|
if(value == 1){
|
|
|
return "<div style='background-color: #1f41be'><font color='white'>"+"一级"+"</font></div>";
|
|
|
}else if(value == 2){
|
|
|
return "<div style='background-color: #3094be'><font color='white'>"+"二级"+"</font></div>";
|
|
|
}
|
|
|
},
|
|
|
}, {
|
|
|
title: "开关",
|
|
|
width:"10%",
|
|
|
width:"5%",
|
|
|
field: "switchOn",
|
|
|
formatter : function(value, rowData, rowIndex) {
|
|
|
if(value == "Y"){
|
...
|
...
|
@@ -216,6 +253,10 @@ function updateDegradeInfo(rowData){ |
|
|
paramObj.switchOn = rowData.switchOn;
|
|
|
paramObj.cloudType = searchCloudType;
|
|
|
paramObj.functionPointName = rowData.functionPointName;
|
|
|
paramObj.level1Page = rowData.level1Page;
|
|
|
paramObj.level2Page = rowData.level2Page;
|
|
|
paramObj.apiName = rowData.apiName;
|
|
|
paramObj.clientType = rowData.clientType;
|
|
|
var dialog0 = $("<div>").appendTo($("body"));
|
|
|
dialog0.dialog({
|
|
|
size : "modal-lg",
|
...
|
...
|
@@ -287,6 +328,10 @@ function updateDegradeInfo(rowData){ |
|
|
var configShowName=$("#configShowName").val();
|
|
|
var switchOn= $("#switch").val();
|
|
|
var functionPointName = $("#functionPoint").val();
|
|
|
var level1Page = $("#level1Page").val();
|
|
|
var level2Page = $("#level2Page").val();
|
|
|
var apiName = $("#apiName").val();
|
|
|
var clientType = $("#clientType").val();
|
|
|
searchCloudType = cloudType;
|
|
|
|
|
|
$("#degradeInfoTable").table("load", {
|
...
|
...
|
@@ -295,7 +340,11 @@ function updateDegradeInfo(rowData){ |
|
|
'configName': configName ,
|
|
|
'configShowName': configShowName ,
|
|
|
'switchOn' : switchOn,
|
|
|
'functionPointName' : functionPointName
|
|
|
'functionPointName' : functionPointName,
|
|
|
'level1Page' : level1Page,
|
|
|
'level2Page' : level2Page,
|
|
|
'apiName' : apiName,
|
|
|
'clientType' : clientType
|
|
|
});
|
|
|
});
|
|
|
var searchCloudType=$("#cloudType").val();
|
...
|
...
|
|