Commit 3708ac12 authored by liuna's avatar liuna

2017年12月14日 智能分析平台提交内容

--质量报告页面点击分页详情
parent dcbc0bea
...@@ -331,7 +331,6 @@ table_pagging.prototype = { ...@@ -331,7 +331,6 @@ table_pagging.prototype = {
} }
if(k==1){ if(k==1){
console.log(this.objectlist[i])
tdContext = "<a href='javascript:;' onclick='selectOperation(\""+this.getData(this.objectlist[i],"provinceId")+"\",\""+this.getData(this.objectlist[i],"kpiId")+"\",\""+this.getData(this.objectlist[i],"reportSumStartTime")+"\",\""+this.getData(this.objectlist[i],"reportSumEndTime")+"\")'>"+this.getData(this.objectlist[i],this.header[k][1])+"</a>"; tdContext = "<a href='javascript:;' onclick='selectOperation(\""+this.getData(this.objectlist[i],"provinceId")+"\",\""+this.getData(this.objectlist[i],"kpiId")+"\",\""+this.getData(this.objectlist[i],"reportSumStartTime")+"\",\""+this.getData(this.objectlist[i],"reportSumEndTime")+"\")'>"+this.getData(this.objectlist[i],this.header[k][1])+"</a>";
} }
...@@ -531,56 +530,39 @@ table_pagging.prototype = { ...@@ -531,56 +530,39 @@ table_pagging.prototype = {
} }
}; };
var province =null;
var kpi = null;
var startTime = null;
var endTime = null;
function queryOperation(page,provinceId,kpiId,reportSumStartTime,reportSumEndTime) {
province=provinceId;
kpi=kpiId;
startTime=reportSumStartTime;
endTime=reportSumEndTime;
$.ajax({
type : 'post',
'url' : 'QualityRuleReport/findOperationFrame',
data : "page=" + page +"&provinceId="+provinceId+"&kpiId="+kpiId+"&reportSumStartTime="+df.format(new Date(reportSumStartTime))+"&reportSumEndTime="+df.format(new Date(reportSumEndTime)),
success : function(data) {
$("#dataForm").html (data);
}
});
}
function queryResult(page) {
queryOperation(page,province,kpi,startTime,endTime);
}
//查看数据质量运营 //查看数据质量运营
function selectOperation(provinceId,kpiId,reportSumStartTime,reportSumEndTime){ function selectOperation(provinceId,kpiId,reportSumStartTime,reportSumEndTime){
$.dialog({ $.dialog({
title:"数据质量运营明细", title:"数据质量运营明细",
content:"<div id='ruleList'>"+ content:"<div style='width: 800px; height: 500px;overflow-y: scroll' id='dataForm'></div>",
"<div style='height: 500px;overflow-y: scroll;' class='col-xs-12'><div class='panel panel-default'><div class='panel-heading'></div><div class='panel-body'> <table style='height: 600px;' class='table table-hover table-striped'> <thead> <tr> <th width=''>省份</th> <th width=''>数据来源</th> <th width=''>渠道</th> <th width=''>业务</th> <th width=''>指标名称</th> <th width=''>指标编码</th> <th width=''>告警类型</th> <th width=''>告警原因</th> <th width=''>指标监控范围</th> <th width=''>指标采集时间</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div>"+
"</div>",
lock:true, lock:true,
width:800, width:800,
height:500, initialize:function() {
initialize:function(){ queryOperation(1,provinceId,kpiId,reportSumStartTime,reportSumEndTime);
$.ajax({
type : 'GET',
contentType : 'application/json',
url: "/AnalysisSupport/QualityRuleReport/findOperation?provinceId="+provinceId+"&kpiId="+kpiId+"&reportSumStartTime="+df.format(new Date(reportSumStartTime))+"&reportSumEndTime="+df.format(new Date(reportSumEndTime)),
dataType : 'text',
beforeSend: function(data) {
},
success: function(data) {
for (var i = 0; i < data.length; i++) {
if (data[i] == '\"') {
data = data.replace('\"', '\'');
} }
}
data = eval("(" + data + ")");
if (data != null && data != "") {
var ruleTbody = $('#ruleList tbody');
for (var i = 0; i < data.length; i++) {
if (data[i].kpiMonitorRunTime != null) {
data[i].kpiMonitorRunTime = df.format(new Date(data[i].kpiMonitorRunTime));
}
if (data[i].businessTime != null) {
data[i].businessTime = df.format(new Date(data[i].businessTime));
}
ruleTbody.append($("<tr></tr>")
.append("<td>" + data[i].provinceName + "</td>")
.append("<td>" + data[i].dataSourceName + "</td>")
.append("<td>" + data[i].channelName + "</td>")
.append("<td>" + data[i].businessName + "</td>")
.append("<td>" + data[i].kpiName + "</td>")
.append("<td>" + data[i].kpiCode + "</td>")
.append("<td>" + data[i].warningType + "</td>")
.append("<td>" + data[i].warningReason + "</td>")
.append("<td>" + data[i].kpiMonitorRunTime + "</td>")
.append("<td>" + data[i].businessTime + "</td>"));
}
}
}
});
}
}); });
} }
\ No newline at end of file
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