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
fe555508
Commit
fe555508
authored
Dec 18, 2017
by
莫林毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监控运营 ->告警关联诊断->关联诊断配置 页面
增加‘删除’规则 功能
parent
898d58ea
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
10 deletions
+64
-10
misc.xml
.idea/misc.xml
+3
-0
workspace.xml
.idea/workspace.xml
+0
-0
build.xml
build.xml
+3
-3
AssociateDiagosisConfigurationController.java
...oroperation/AssociateDiagosisConfigurationController.java
+32
-2
AssociateDiagosisConfiguration.jsp
...views/MonitorOperation/AssociateDiagosisConfiguration.jsp
+25
-5
associatediagosisconfiguration.js
src/main/webapp/static/js/associatediagosisconfiguration.js
+1
-0
No files found.
.idea/misc.xml
View file @
fe555508
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"FrameworkDetectionExcludesConfiguration"
>
<file
type=
"web"
url=
"file://$PROJECT_DIR$"
/>
</component>
<component
name=
"JavaScriptSettings"
>
<component
name=
"JavaScriptSettings"
>
<option
name=
"languageLevel"
value=
"ES5"
/>
<option
name=
"languageLevel"
value=
"ES5"
/>
</component>
</component>
...
...
.idea/workspace.xml
View file @
fe555508
This source diff could not be displayed because it is too large. You can
view the blob
instead.
build.xml
View file @
fe555508
...
@@ -18,12 +18,12 @@
...
@@ -18,12 +18,12 @@
<target
name=
"clean"
>
<target
name=
"clean"
>
<delete
dir=
"${basedir}/build"
/>
<delete
dir=
"${basedir}/build"
/>
<mkdir
dir=
"${basedir}/build"
/>
<mkdir
dir=
"${basedir}/build"
/>
</target>
</target>
n
<!-- 定义任务,编译src文件夹中的java文件,编译后的class文件放到创建的文件夹下。 -->
<!-- 定义任务,编译src文件夹中的java文件,编译后的class文件放到创建的文件夹下。 -->
<target
name=
"compile"
depends=
"clean"
>
<target
name=
"compile"
depends=
"clean"
>
<javac
target=
"1.6"
debug=
"on"
encoding=
"UTF-8"
srcdir=
"${basedir}/src/main/java"
destdir=
"${basedir}/build"
includeantruntime=
"false"
>
<javac
target=
"1.6"
debug=
"on"
encoding=
"UTF-8"
srcdir=
"${basedir}/src/main/java"
destdir=
"${basedir}/build"
includeantruntime=
"false"
>
<compilerarg
value=
"-Xli
n
t:unchecked"
/>
<compilerarg
value=
"-Xlit:unchecked"
/>
<classpath
refid=
"project.lib"
></classpath>
<classpath
refid=
"project.lib"
></classpath>
</javac>
</javac>
<native2ascii
src=
"src/main/resources"
dest=
"${basedir}/build"
encoding=
"UTF-8"
/>
<native2ascii
src=
"src/main/resources"
dest=
"${basedir}/build"
encoding=
"UTF-8"
/>
...
...
src/main/java/com/hp/cmsz/web/monitoroperation/AssociateDiagosisConfigurationController.java
View file @
fe555508
...
@@ -52,7 +52,6 @@ public class AssociateDiagosisConfigurationController {
...
@@ -52,7 +52,6 @@ public class AssociateDiagosisConfigurationController {
List
<
DimAssociationAnaInfo
>
listDim
=
new
ArrayList
<
DimAssociationAnaInfo
>();
List
<
DimAssociationAnaInfo
>
listDim
=
new
ArrayList
<
DimAssociationAnaInfo
>();
// List<DimKpi>listDimKpi=new ArrayList<DimKpi>();
if
(
detailProvince
.
equalsIgnoreCase
(
""
)
&&
dimension
.
equalsIgnoreCase
(
""
))
{
//查找所有
if
(
detailProvince
.
equalsIgnoreCase
(
""
)
&&
dimension
.
equalsIgnoreCase
(
""
))
{
//查找所有
listDim
=
associateDiagosisConfigurationService
.
findAllDimAssociationAnaInfo
();
listDim
=
associateDiagosisConfigurationService
.
findAllDimAssociationAnaInfo
();
}
}
...
@@ -89,7 +88,6 @@ public class AssociateDiagosisConfigurationController {
...
@@ -89,7 +88,6 @@ public class AssociateDiagosisConfigurationController {
List
<
Province
>
provinceList
=
(
List
<
Province
>)
provinceDao
.
findProvince
();
List
<
Province
>
provinceList
=
(
List
<
Province
>)
provinceDao
.
findProvince
();
model
.
put
(
"provinceList"
,
provinceList
);
model
.
put
(
"provinceList"
,
provinceList
);
// model.put("listDimKpi", gson.toJson(listDimKpi));//所有指标
model
.
put
(
"gzfxDetailInfos"
,
gson
.
toJson
(
listDim
));
model
.
put
(
"gzfxDetailInfos"
,
gson
.
toJson
(
listDim
));
model
.
put
(
"provinces"
,
gsonP
.
toJson
(
provinceList
));
model
.
put
(
"provinces"
,
gsonP
.
toJson
(
provinceList
));
model
.
put
(
"indicatorsAll"
,
gsonP
.
toJson
(
provinceList
));
//所有指标
model
.
put
(
"indicatorsAll"
,
gsonP
.
toJson
(
provinceList
));
//所有指标
...
@@ -595,6 +593,38 @@ public class AssociateDiagosisConfigurationController {
...
@@ -595,6 +593,38 @@ public class AssociateDiagosisConfigurationController {
}
}
@RequestMapping
(
value
=
{
"/deleteAssociDigConfigM"
})
public
String
deleteAssociDigConfigM
(
@RequestParam
(
value
=
"associationId"
,
defaultValue
=
""
)
String
associationId
,
Map
model
)
{
String
strR
=
""
;
try
{
Long
associationIdL
=
Long
.
parseLong
(
associationId
);
//associationId
associateDiagosisConfigurationService
.
deleteAssociDigConfig
(
associationIdL
);
strR
=
"success"
;
}
catch
(
Exception
e
)
{
strR
=
"failed"
;
e
.
printStackTrace
();
}
List
<
DimAssociationAnaInfo
>
listDim
=
new
ArrayList
<
DimAssociationAnaInfo
>();
listDim
=
associateDiagosisConfigurationService
.
findAllDimAssociationAnaInfo
();
Gson
gson
=
new
Gson
();
List
<
Province
>
provinceList
=
(
List
<
Province
>)
provinceDao
.
findProvince
();
model
.
put
(
"provinceList"
,
provinceList
);
model
.
put
(
"gzfxDetailInfos"
,
gson
.
toJson
(
listDim
));
model
.
put
(
"provinces"
,
gson
.
toJson
(
provinceList
));
model
.
put
(
"indicatorsAll"
,
gson
.
toJson
(
provinceList
));
//所有指标
model
.
put
(
"deleleMess"
,
strR
);
//提示信息
return
PageURLController
.
AssociateDiagosisConfiguration
;
}
}
}
src/main/webapp/WEB-INF/views/MonitorOperation/AssociateDiagosisConfiguration.jsp
View file @
fe555508
...
@@ -26,6 +26,10 @@
...
@@ -26,6 +26,10 @@
<script
type=
"text/javascript"
src=
"${ctx}/static/js/associatediagosisconfiguration.js"
></script>
<script
type=
"text/javascript"
src=
"${ctx}/static/js/associatediagosisconfiguration.js"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
var
deleleMess
=
document
.
getElementById
(
'deleleMess'
).
value
;
if
(
deleleMess
===
'success'
){
//setTimeout("alert('ok')",2000);
}
var
jso
=
document
.
getElementById
(
'gzfxDetail'
).
value
;
var
jso
=
document
.
getElementById
(
'gzfxDetail'
).
value
;
// failureTable();
// failureTable();
// initDateDetail();//初始化 时间范围
// initDateDetail();//初始化 时间范围
...
@@ -113,11 +117,12 @@
...
@@ -113,11 +117,12 @@
style=
"top: -6px;float: right;height: 0px;position: relative;"
>
style=
"top: -6px;float: right;height: 0px;position: relative;"
>
<button
id=
"createIndicatorsBtn"
<button
id=
"createIndicatorsBtn"
class=
"btn-sm btn btn-primary btn-sm btn-group btn-group-cog"
class=
"btn-sm btn btn-primary btn-sm btn-group btn-group-cog"
onclick=
"createIndicators()"
>
新建
关联配置
onclick=
"createIndicators()"
>
新建
</button>
</button>
<button
type=
"button"
id=
"deleteAnaInfo"
class=
"btn btn-danger"
disabled
>
删除
</button>
<button
id=
"updateIndicatorsBtn"
<button
id=
"updateIndicatorsBtn"
class=
"btn-sm btn btn-primary btn-sm btn-group btn-group-cog"
disabled
class=
"btn-sm btn btn-primary btn-sm btn-group btn-group-cog"
disabled
>
修改
关联配置
>
修改
</button>
</button>
</div>
</div>
</shiro:hasAnyRoles>
</shiro:hasAnyRoles>
...
@@ -144,6 +149,7 @@
...
@@ -144,6 +149,7 @@
<input
type=
"hidden"
id=
"provinceAll"
name=
"provinceAll"
value=
'${provinces}'
/>
<input
type=
"hidden"
id=
"provinceAll"
name=
"provinceAll"
value=
'${provinces}'
/>
<input
type=
"hidden"
id=
"indicatorsAll"
name=
"indicatorsAll"
value=
'${indicatorsAll}'
/>
<input
type=
"hidden"
id=
"indicatorsAll"
name=
"indicatorsAll"
value=
'${indicatorsAll}'
/>
<input
type=
"hidden"
id=
"anaInfoSelected"
name=
"anaInfoSelected"
value=
''
/>
<input
type=
"hidden"
id=
"anaInfoSelected"
name=
"anaInfoSelected"
value=
''
/>
<input
type=
"hidden"
id=
"deleleMess"
name=
"deleleMess"
value=
'${deleleMess}'
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -180,6 +186,7 @@
...
@@ -180,6 +186,7 @@
$
(
"#updateIndicatorsBtn"
).
attr
(
"disabled"
,
"true"
);
$
(
"#updateIndicatorsBtn"
).
attr
(
"disabled"
,
"true"
);
$
(
"#deleteAnaInfo"
).
attr
(
"disabled"
,
"true"
);
updateTags
(
true
);
//更新 tags显示
updateTags
(
true
);
//更新 tags显示
}
}
...
@@ -311,14 +318,27 @@
...
@@ -311,14 +318,27 @@
cancelValue
:
"取消"
,
cancelValue
:
"取消"
,
lock
:
true
lock
:
true
});
});
/* $.confirm("确定修改模型?",
/* $.confirm("确定修改模型?",
function(){location.href="${ctx}/ModelManage/ModelParameterConfiguration?dataModelId="+modelId;},
function(){location.href="${ctx}/ModelManage/ModelParameterConfiguration?dataModelId="+modelId;},
function(){}); */
function(){}); */
});
});
$
(
"#deleteAnaInfo"
).
click
(
function
(){
var
associationId
=
$
(
"#anaInfoSelected"
).
val
();
$
.
dialog
({
title
:
"提醒"
,
content
:
"确定删除规则?"
,
ok
:
function
(){
location
.
href
=
"${ctx}/MonitorOperation/AssociateDiagosisConfiguration/deleteAssociDigConfigM?associationId="
+
associationId
;},
okValue
:
"确定"
,
cancel
:
function
(){},
cancelValue
:
"取消"
,
lock
:
true
});
});
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/static/js/associatediagosisconfiguration.js
View file @
fe555508
...
@@ -24,6 +24,7 @@ function failureDelete(){
...
@@ -24,6 +24,7 @@ function failureDelete(){
// 点击单选按钮时 触发
// 点击单选按钮时 触发
function
radioChoose
(
e
){
function
radioChoose
(
e
){
$
(
"#updateIndicatorsBtn"
).
removeAttr
(
"disabled"
);
$
(
"#updateIndicatorsBtn"
).
removeAttr
(
"disabled"
);
$
(
"#deleteAnaInfo"
).
removeAttr
(
"disabled"
);
$
(
"#anaInfoSelected"
).
val
(
e
.
id
);
$
(
"#anaInfoSelected"
).
val
(
e
.
id
);
}
}
...
...
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