Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cmszMonitorAnalysis
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuna
cmszMonitorAnalysis
Commits
9bd0745e
Commit
9bd0745e
authored
Jan 16, 2018
by
莫林毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监控运营 ->告警监控 告警明细页面
排除'报警个数为0'的 数据
parent
c389a637
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
9 deletions
+31
-9
AssociateDiagosisDetailController.java
...b/monitoroperation/AssociateDiagosisDetailController.java
+25
-1
AssociateDiagosisDetail.jsp
...EB-INF/views/MonitorOperation/AssociateDiagosisDetail.jsp
+2
-6
associatediagosisdetail.js
src/main/webapp/static/js/associatediagosisdetail.js
+4
-2
No files found.
src/main/java/com/hp/cmsz/web/monitoroperation/AssociateDiagosisDetailController.java
View file @
9bd0745e
...
@@ -101,7 +101,13 @@ public class AssociateDiagosisDetailController {
...
@@ -101,7 +101,13 @@ public class AssociateDiagosisDetailController {
String
timestamp1
=
getLastMonth
();
//getOld();
String
timestamp1
=
getLastMonth
();
//getOld();
String
timestamp2
=
getNow
();
//getNew();
String
timestamp2
=
getNow
();
//getNew();
List
<
AssociateDiagosisDetail
>
associateDiagosisDetails
=
associateDiagosisDetailService
.
findAssociateDiagosisDetailByWarnTimeBeginAndEnd
(
timestamp1
,
timestamp2
);
List
<
AssociateDiagosisDetail
>
associateDiagosisDetails
=
associateDiagosisDetailService
.
findAssociateDiagosisDetailByWarnTimeBeginAndEnd
(
timestamp1
,
timestamp2
);
Iterator
<
AssociateDiagosisDetail
>
iterator
=
associateDiagosisDetails
.
iterator
();
while
(
iterator
.
hasNext
()){
AssociateDiagosisDetail
detail
=
iterator
.
next
();
if
(
detail
.
getWarningNum
().
compareTo
(
BigInteger
.
ZERO
)<=
0
){
iterator
.
remove
();
}
}
model
.
put
(
"provinceList"
,
provinceList
);
model
.
put
(
"provinceList"
,
provinceList
);
Gson
gson
=
new
Gson
();
Gson
gson
=
new
Gson
();
model
.
put
(
"diagosisDetails"
,
gson
.
toJson
(
associateDiagosisDetails
));
model
.
put
(
"diagosisDetails"
,
gson
.
toJson
(
associateDiagosisDetails
));
...
@@ -142,6 +148,15 @@ public class AssociateDiagosisDetailController {
...
@@ -142,6 +148,15 @@ public class AssociateDiagosisDetailController {
List
<
AssociateDiagosisDetail
>
diagosisDetails
=
associateDiagosisDetailService
.
List
<
AssociateDiagosisDetail
>
diagosisDetails
=
associateDiagosisDetailService
.
findLastMathAssociateDiagosisDetailByWarnTimeBeginAndEndAndDimesionAndProvinceList
(
warnBeginTime
,
warnEndTime
,
dimension
,
provinceList
);
findLastMathAssociateDiagosisDetailByWarnTimeBeginAndEndAndDimesionAndProvinceList
(
warnBeginTime
,
warnEndTime
,
dimension
,
provinceList
);
//--
Iterator
<
AssociateDiagosisDetail
>
iterator
=
diagosisDetails
.
iterator
();
while
(
iterator
.
hasNext
()){
AssociateDiagosisDetail
detail
=
iterator
.
next
();
if
(
detail
.
getWarningNum
().
compareTo
(
BigInteger
.
ZERO
)<=
0
){
iterator
.
remove
();
}
}
//--
Gson
gson
=
new
Gson
();
Gson
gson
=
new
Gson
();
return
gson
.
toJson
(
diagosisDetails
);
return
gson
.
toJson
(
diagosisDetails
);
}
}
...
@@ -288,6 +303,15 @@ public class AssociateDiagosisDetailController {
...
@@ -288,6 +303,15 @@ public class AssociateDiagosisDetailController {
list1.add(detail);
list1.add(detail);
}*/
}*/
list1
=
associateDiagosisDetailService
.
findDetailByProvinceIdAndoccurTimeAndCloseTime
(
provinceId
,
occurTimes
,
closeTimes
);
list1
=
associateDiagosisDetailService
.
findDetailByProvinceIdAndoccurTimeAndCloseTime
(
provinceId
,
occurTimes
,
closeTimes
);
//--
Iterator
<
AssociateDiagosisDetail
>
iterator
=
list1
.
iterator
();
while
(
iterator
.
hasNext
()){
AssociateDiagosisDetail
detail
=
iterator
.
next
();
if
(
detail
.
getWarningNum
().
compareTo
(
BigInteger
.
ZERO
)<=
0
){
iterator
.
remove
();
}
}
//--
Gson
gson
=
new
Gson
();
Gson
gson
=
new
Gson
();
model
.
put
(
"diagosisDetails"
,
gson
.
toJson
(
list1
));
model
.
put
(
"diagosisDetails"
,
gson
.
toJson
(
list1
));
return
PageURLController
.
AssociateDiagosisDetail
;
return
PageURLController
.
AssociateDiagosisDetail
;
...
...
src/main/webapp/WEB-INF/views/MonitorOperation/AssociateDiagosisDetail.jsp
View file @
9bd0745e
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
//初始化界面
//初始化界面
initTable
();
initTable
();
var
v
=
document
.
getElementById
(
'gzfxDetail'
).
value
;
var
v
=
document
.
getElementById
(
'gzfxDetail'
).
value
;
console
.
log
(
"v "
+
v
);
});
});
function
goClick
(
e
,
id
){
function
goClick
(
e
,
id
){
var
beginTime
=
""
;
var
beginTime
=
""
;
...
@@ -272,8 +271,7 @@
...
@@ -272,8 +271,7 @@
var
str
=
""
;
var
str
=
""
;
var
period
=
getPeriod
();
var
period
=
getPeriod
();
str
=
str
+
period
[
0
]
+
"~"
+
period
[
1
];
str
=
str
+
period
[
0
]
+
"~"
+
period
[
1
];
console
.
log
(
"str "
+
str
);
console
.
log
(
"str leng "
+
str
.
length
);
return
str
;
return
str
;
}
}
...
@@ -290,9 +288,7 @@
...
@@ -290,9 +288,7 @@
}
else
{
}
else
{
var
detailProvince
=
getDetailProvinceCheckedValueString
();
var
detailProvince
=
getDetailProvinceCheckedValueString
();
var
dimension
=
getDetailCheckeddDimension
();
var
dimension
=
getDetailCheckeddDimension
();
console
.
log
(
"detailProvince "
+
detailProvince
);
console
.
log
(
"dimension "
+
dimension
);
console
.
log
(
"detailtime "
+
detailtime
);
//alert(dimension+"-pi-");
//alert(dimension+"-pi-");
// alert(detailProvince);
// alert(detailProvince);
var
href
=
"${ctx}/MonitorOperation/AssociateDiagosisDetail/tableList?detailProvince="
+
detailProvince
+
"&detailtime="
+
detailtime
+
"&dimension="
+
dimension
;
var
href
=
"${ctx}/MonitorOperation/AssociateDiagosisDetail/tableList?detailProvince="
+
detailProvince
+
"&detailtime="
+
detailtime
+
"&dimension="
+
dimension
;
...
...
src/main/webapp/static/js/associatediagosisdetail.js
View file @
9bd0745e
...
@@ -175,7 +175,8 @@ table_pagging.prototype={
...
@@ -175,7 +175,8 @@ table_pagging.prototype={
}
}
tdContext
=
context
;
tdContext
=
context
;
}
else
{
}
else
{
if
(
tdContext
==
null
){
if
(
tdContext
==
null
){
tdContext
=
" "
;
tdContext
=
" "
;
...
@@ -198,7 +199,8 @@ table_pagging.prototype={
...
@@ -198,7 +199,8 @@ table_pagging.prototype={
var
et
=
this
.
getData
(
this
.
objectlist
[
i
],
this
.
header
[
6
][
1
]);
var
et
=
this
.
getData
(
this
.
objectlist
[
i
],
this
.
header
[
6
][
1
]);
// tdContext="<a onclick='goClick("+id+","+new Date(st).getTime()+","+new Date(et).getTime()+")'>详-情</a>";
// tdContext="<a onclick='goClick("+id+","+new Date(st).getTime()+","+new Date(et).getTime()+")'>详-情</a>";
tdContext
=
"<a onclick='goClick(this"
+
","
+
id
+
")'>详-情</a>"
;
tdContext
=
"<a onclick='goClick(this"
+
","
+
id
+
")'>详-情</a>"
;
}
else
{
}
else
{
tdContext
=
this
.
getData
(
this
.
objectlist
[
i
],
this
.
header
[
k
][
1
]);
tdContext
=
this
.
getData
(
this
.
objectlist
[
i
],
this
.
header
[
k
][
1
]);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment