日志趋势添加servicID查询条件

This commit is contained in:
leijun
2019-01-15 18:51:49 +08:00
parent 90a56b5e83
commit 0a8f96dce0
3 changed files with 20 additions and 13 deletions

View File

@@ -47,13 +47,14 @@
<!-- 搜索内容与操作按钮栏 -->
</form:form>
</div>
<br>
<div id="chart" style="width:97%;height:480px;"></div>
<div id="chart" style="width:97%;height:90%;margin-top: 35px;"></div>
<%-- <input id="searchAction" name="searchAction" type="hidden" value="${searchAction}"/> --%>
<input id="beginDateh" type="hidden" value="${beginDate}"/>
<input id="endDateh" type="hidden" value="${endDate}"/>
<input id="cfgId" type="hidden" value="${cfgId}"/>
<input id="serviceId" type="hidden" value="${serviceId}"/>
<input id="total" type="hidden"/>
</div>
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/highcharts.js"></script>
@@ -73,10 +74,11 @@ $(document).ready(function(){
var starth=$("#beginDateh").val();
var endh=$("#endDateh").val();
var cfgId=$("#cfgId").val();
var serviceId=$("#serviceId").val();
excfgid=cfgId;
$("#beginDate").val(starth);
$("#endDate").val(endh);
actionTransAjax(logTltle,starth,endh,cfgId);
actionTransAjax(logTltle,starth,endh,cfgId,serviceId);
//筛选功能初始化
$("#resetBtn").on("click",function(){
$("select.selectpicker").each(function(){
@@ -97,13 +99,13 @@ function searchList(){
var start=$("#beginDate").val();
var end=$("#endDate").val();
var cfgId=$("#cfgId").val();
var serviceId=$("#serviceId").val();
$("#beginDateh").val(start);
$("#endDateh").val(end);
if(start==''||end==''||end==null||start==null){
window.location.reload();
}else{
actionTransAjax(logTltle,start,end,cfgId);
actionTransAjax(logTltle,start,end,cfgId,serviceId);
}
}
// 局点信息
@@ -119,7 +121,7 @@ function showActionTransChart(xData,series){
filename:logTltle+"_"+nowDate.getFullYear()+(nowDate.getMonth()+1)+nowDate.getDate()+nowDate.getHours()+nowDate.getMinutes()+nowDate.getSeconds(),
scale:1,
sourceWidth: 1280,
sourceHeight: 500,
sourceHeight: 600,
buttons: {
contextButton: {
menuItems: [
@@ -204,10 +206,10 @@ function showActionTransChart(xData,series){
});
}
// 动作一小时,间隔五分钟统计数据
function actionTransAjax(searchAction,beginDate,endDate,cfgId){
function actionTransAjax(searchAction,beginDate,endDate,cfgId,serviceId){
loading();
$.ajax({
url: "${ctx}/toLogSearch/actionLogTrend?cfgId="+cfgId+"&searchAction="+searchAction+"&beginDate="+beginDate+"&endDate="+endDate,
url: "${ctx}/toLogSearch/actionLogTrend?cfgId="+cfgId+"&searchAction="+searchAction+"&beginDate="+beginDate+"&endDate="+endDate+"&serviceId="+serviceId,
type : "get" ,
dataType:"json",
async:true,