Commit 370d3da1 authored by liuna's avatar liuna

2018年1月17日 --智能分析平台

--修改质量规则和过滤规则的指标布局
parent 73a3469e
This diff is collapsed.
......@@ -103,7 +103,7 @@ public class FilterRuleResultController {
@RequestMapping(value = "queryRule")
@ResponseBody
public void queryRule(
public List<FilterRule> queryRule(
String provinceArr,
String businessArr,
String isRepeat,
......@@ -159,6 +159,7 @@ public class FilterRuleResultController {
// Timestamp time1 = Timestamp.valueOf(startTime);
// Timestamp time2 = Timestamp.valueOf(endTime);
return filterRuleList;
}
......
......@@ -114,7 +114,7 @@
<ul class="dropdown-menu">
<li><a href="${ctx}/MonitorOperation/RegularityAnalysis">数据特征探查</a></li>
<li><a href="${ctx}/MonitorOperation/KeyLinkProcessAnalysis">业务环节分析</a></li>
<li><a href="${ctx}/MonitorOperation/FlowMonitor">实体厅流量监测分析</a></li>
<%--<li><a href="${ctx}/MonitorOperation/FlowMonitor">实体厅流量监测分析</a></li>--%>
</ul>
</li>
</shiro:hasPermission>
......
......@@ -29,7 +29,18 @@
.txt{ height:22px; border:1px solid #cdcdcd; width:180px;}
.btn{ background-color:#FFF; border:1px solid #CDCDCD;height:24px; width:70px;}
.file{ position:absolute; top:0; right:80px; height:24px; filter:alpha(opacity:0);opacity: 0;width:260px } */
#kpiTable{
margin: 0px;
padding: 0px;
height: 10px;
width: 700px;
}
#kpiTable tr td{
text-align: left;
margin: 0px;
padding: 0px;
height: 10px;
}
</style>
</head>
......@@ -89,14 +100,18 @@
<tr><td>业务(<font color="red">必填</font>):</td>
<td >
<div class="checkbox-inline"><label><input type="checkbox" id="allBusiness" name="allBusiness" checked>全选</label></div><br/>
<div id="businesstd" style="width: 50%"></div>
<div id="businesstd"></div>
</td>
</tr>
<tr><td>指标(<font color="red">必填</font>):</td>
<td>
<div class="checkbox-inline"><label><input type="checkbox" id="allKpi" name="allKpi" checked>全选</label></div><br/>
<div id="kpitd" style="width: 50%"></div>
<div id="kpitd" style="width: 50%">
<table id="kpiTable" class="kpiTable">
<tbody></tbody>
</table>
</div>
</td>
</tr>
......@@ -225,12 +240,33 @@
async: false,
beforeSend: function(data) {},
success: function(data){
var td = $("#kpitd");
td.empty();
var tbody=$('<tbody></tbody>');
data = JSON.parse(data)
data.forEach(function(t){
td.append("<input type='checkbox' name='kpiinput' class='kpiItem' value='"+t[0]+"' checked />"+t[1])
data.forEach(function(t,i){
var tr = $('<tr></tr>');
tr.empty();
if(i % 3 == 0){
if(data.length-1-i >= 3){
tr.append('<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i+1][2]+"' value='"+data[i+1][0]+"' checked >"+data[i+1][1]+"</input>"+'</td>'+
'<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i+2][2]+"' value='"+data[i+2][0]+"' checked >"+data[i+2][1]+"</input>"+'</td>'+
'<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i+3][2]+"' value='"+data[i+3][0]+"' checked >"+data[i+3][1]+"</input>"+'</td>')
tbody.append(tr);
}else if((data.length-1-i) == 2){
tr.append('<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i][2]+"' value='"+data[i][0]+"' checked >"+data[i][1]+"</input>"+'</td>'+
'<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i+1][2]+"' value='"+data[i+1][0]+"' checked >"+data[i+1][1]+"</input>"+'</td>'+
'<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i+2][2]+"' value='"+data[i+2][0]+"' checked >"+data[i+2][1]+"</input>"+'</td>')
tbody.append(tr);
}else if((data.length-1-i) == 1) {
tr.append('<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i][2]+"' value='"+data[i][0]+"' checked >"+data[i][1]+"</input>"+'</td>'+
'<td>' + "<input type='checkbox' name='kpiinput' class='kpiItem' title='" + data[i + 1][2] + "' value='" + data[i + 1][0] + "' checked >" + data[i + 1][1] + "</input>" + '</td>')
tbody.append(tr);
}else if((data.length-1-i) == 0) {
tr.append('<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i][2]+"' value='"+data[i][0]+"' checked >"+data[i][1]+"</input>"+'</td>')
tbody.append(tr);
}
}
});
$('#kpiTable tbody').replaceWith(tbody);
}
});
}
......
......@@ -23,6 +23,18 @@
width: 400px;
}
#kpiTable{
margin: 0px;
padding: 0px;
height: 10px;
width: 700px;
}
#kpiTable tr td{
text-align: left;
margin: 0px;
padding: 0px;
height: 10px;
}
</style>
</head>
......@@ -80,7 +92,9 @@
<tr><td>业务(<font color="red">必填</font>):</td>
<td >
<div class="checkbox-inline"><label><input type="checkbox" id="allBusiness" name="allBusiness" checked>全选</label></div><br/>
<div id="businesstd"></div>
<div id="businesstd">
</div>
</td>
</tr>
......@@ -95,7 +109,11 @@
<tr><td>指标(<font color="red">必填</font>):</td>
<td>
<div class="checkbox-inline"><label><input type="checkbox" id="allKpi" name="allKpi" checked>全选</label></div><br/>
<div id="kpitd"></div>
<div id="kpitd">
<table id="kpiTable" class="kpiTable">
<tbody></tbody>
</table>
</div>
</td>
</tr>
......@@ -444,12 +462,33 @@ function updateKpi(businessIds,calCycleValue){
async: false,
beforeSend: function(data) {},
success: function(data){
var td = $("#kpitd");
td.empty();
var tbody=$('<tbody></tbody>');
data = JSON.parse(data)
data.forEach(function(t){
td.append("<input type='checkbox' name='kpiinput' class='kpiItem' title='"+t[2]+"' value='"+t[0]+"' checked >"+t[1]+"</input>")
data.forEach(function(t,i){
var tr = $('<tr></tr>');
tr.empty();
if(i % 3 == 0){
if(data.length-1-i >= 3){
tr.append('<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i+1][2]+"' value='"+data[i+1][0]+"' checked >"+data[i+1][1]+"</input>"+'</td>'+
'<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i+2][2]+"' value='"+data[i+2][0]+"' checked >"+data[i+2][1]+"</input>"+'</td>'+
'<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i+3][2]+"' value='"+data[i+3][0]+"' checked >"+data[i+3][1]+"</input>"+'</td>')
tbody.append(tr);
}else if((data.length-1-i) == 2){
tr.append('<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i][2]+"' value='"+data[i][0]+"' checked >"+data[i][1]+"</input>"+'</td>'+
'<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i+1][2]+"' value='"+data[i+1][0]+"' checked >"+data[i+1][1]+"</input>"+'</td>'+
'<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i+2][2]+"' value='"+data[i+2][0]+"' checked >"+data[i+2][1]+"</input>"+'</td>')
tbody.append(tr);
}else if((data.length-1-i) == 1) {
tr.append('<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i][2]+"' value='"+data[i][0]+"' checked >"+data[i][1]+"</input>"+'</td>'+
'<td>' + "<input type='checkbox' name='kpiinput' class='kpiItem' title='" + data[i + 1][2] + "' value='" + data[i + 1][0] + "' checked >" + data[i + 1][1] + "</input>" + '</td>')
tbody.append(tr);
}else if((data.length-1-i) == 0) {
tr.append('<td>'+"<input type='checkbox' name='kpiinput' class='kpiItem' title='"+data[i][2]+"' value='"+data[i][0]+"' checked >"+data[i][1]+"</input>"+'</td>')
tbody.append(tr);
}
}
});
$('#kpiTable tbody').replaceWith(tbody);
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment