报表页面获取业务类型日志总量功能提交

This commit is contained in:
wangxin
2018-07-10 15:26:18 +08:00
parent 992cec2a17
commit ad2e448e41
3 changed files with 89 additions and 19 deletions

View File

@@ -62,6 +62,31 @@
}
}
});
$(".service").each(function(){
var target=$(this).find("span");
var action=$(this).data("action");
$.ajax({
type:'post',
url:'${ctx}/report/ajaxNtcServiceReport',
data:{
"action":action,
"reportType":$('[name="reportType"]').val(),
"reportTime":$('[name="reportTime"]').val()
},
dataType:'json',
async:true,
success:function(data,textStatus){//处理返回结果
if(textStatus=="success"){
target.html(data[action]);
}
},
complete:function(XMLHttpRequest,status){//超时设置
if(status=="timeout"){
target.html(timeout);
}
}
});
});
});
function changeReportType(reportType, init) {
@@ -102,11 +127,15 @@ var ajaxReport=function(url,target){
<body>
<div class="page-content">
<div class="theme-panel hidden-xs hidden-sm">
<c:forEach items="${fns:getDictList('SERVICE_ACTION')}" var="action" >
<c:forEach items="${serviceList}" var="service" >
<c:forEach items="${fns:getDictList('SERVICE_ACTION')}" var="action">
<c:forEach items="${serviceList}" var="service" varStatus="status">
<c:if test="${service.functionId eq bean.functionId and action.itemCode eq service.action}">
<div class="btn btn-primary">
<spring:message code="${action.itemValue}"/>1000000
<div data-action="${service.action}" class="service btn
<c:if test="${status.index%2==0}">btn-primary</c:if>
<c:if test="${status.index%2!=0}">btn-default</c:if>">
<spring:message code="${action.itemValue}"/>
<spring:message code="log_total"/>
<span>0</span>
</div>
</c:if>
</c:forEach>