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
5766eec2
Commit
5766eec2
authored
Jan 19, 2018
by
liuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2018年1月1日 --智能分析平台
--修改质量规则和过滤规则全选不联动
parent
a0735b9a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
63 additions
and
23 deletions
+63
-23
workspace.xml
.idea/workspace.xml
+0
-0
FlowMonitor.java
src/main/java/com/hp/cmsz/entity/FlowMonitor.java
+2
-2
QualityRuleMaintainController.java
...sz/web/analysissupport/QualityRuleMaintainController.java
+10
-18
header.jsp
src/main/webapp/WEB-INF/layouts/header.jsp
+1
-1
FilterRuleMaintain.jsp
...bapp/WEB-INF/views/AnalysisSupport/FilterRuleMaintain.jsp
+28
-1
QualityRuleMaintain.jsp
...app/WEB-INF/views/AnalysisSupport/QualityRuleMaintain.jsp
+22
-1
No files found.
.idea/workspace.xml
View file @
5766eec2
This diff is collapsed.
Click to expand it.
src/main/java/com/hp/cmsz/entity/FlowMonitor.java
View file @
5766eec2
...
@@ -12,8 +12,8 @@ import java.io.Serializable;
...
@@ -12,8 +12,8 @@ import java.io.Serializable;
* @author Liu Na
* @author Liu Na
*
*
*/
*/
@Entity
//
@Entity
@Table
(
name
=
"APP_SM_DB_CITY_KPI_T"
,
schema
=
"ccolap"
)
//
@Table(name = "APP_SM_DB_CITY_KPI_T",schema = "ccolap")
public
class
FlowMonitor
implements
Serializable
{
public
class
FlowMonitor
implements
Serializable
{
private
Long
batchId
;
private
Long
batchId
;
...
...
src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleMaintainController.java
View file @
5766eec2
...
@@ -147,27 +147,19 @@ public class QualityRuleMaintainController {
...
@@ -147,27 +147,19 @@ public class QualityRuleMaintainController {
@RequestMapping
(
value
=
"/findKpiId*"
)
@RequestMapping
(
value
=
"/findKpiId*"
)
@ResponseBody
@ResponseBody
public
void
findKpiId
(
@RequestParam
(
value
=
"businessIds"
,
defaultValue
=
""
)
String
businessIds
,
public
List
<
Object
[]>
findKpiId
(
@RequestParam
(
value
=
"businessIds"
,
defaultValue
=
""
)
String
businessIds
,
@RequestParam
(
value
=
"calCycleValue"
,
defaultValue
=
"30MI"
)
String
calCycleValue
,
@RequestParam
(
value
=
"calCycleValue"
,
defaultValue
=
"30MI"
)
String
calCycleValue
,
HttpServletResponse
response
)
{
HttpServletResponse
response
)
{
String
[]
strs
=
businessIds
.
split
(
","
);
List
<
Object
[]>
businessKpiList
=
new
ArrayList
<
Object
[]>();
List
<
Long
>
businessIdlist
=
new
ArrayList
<
Long
>();
if
(!
""
.
equals
(
businessIds
)){
for
(
int
i
=
0
;
i
<
strs
.
length
;
i
++)
{
String
[]
strs
=
businessIds
.
split
(
","
);
businessIdlist
.
add
(
Long
.
valueOf
(
strs
[
i
]));
List
<
Long
>
businessIdlist
=
new
ArrayList
<
Long
>();
}
for
(
int
i
=
0
;
i
<
strs
.
length
;
i
++)
{
List
<
Object
[]>
businessKpiList
=
kpiDao
.
findKpiIdAndKpiNameAndKpiCodeByBusinessIds
(
calCycleValue
,
businessIdlist
);
businessIdlist
.
add
(
Long
.
valueOf
(
strs
[
i
]));
}
Gson
gson
=
new
Gson
();
businessKpiList
=
kpiDao
.
findKpiIdAndKpiNameAndKpiCodeByBusinessIds
(
calCycleValue
,
businessIdlist
);
response
.
setContentType
(
"text/Xml;charset=gbk"
);
PrintWriter
out
=
null
;
try
{
out
=
response
.
getWriter
();
out
.
println
(
gson
.
toJson
(
businessKpiList
));
}
catch
(
IOException
ex1
)
{
ex1
.
printStackTrace
();
}
finally
{
out
.
close
();
}
}
return
businessKpiList
;
}
}
...
...
src/main/webapp/WEB-INF/layouts/header.jsp
View file @
5766eec2
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
<ul class="dropdown-menu">
<ul class="dropdown-menu">
<li><a href="${ctx}/MonitorOperation/RegularityAnalysis">数据特征探查</a></li>
<li><a href="${ctx}/MonitorOperation/RegularityAnalysis">数据特征探查</a></li>
<li><a href="${ctx}/MonitorOperation/KeyLinkProcessAnalysis">业务环节分析</a></li>
<li><a href="${ctx}/MonitorOperation/KeyLinkProcessAnalysis">业务环节分析</a></li>
<
li><a href="${ctx}/MonitorOperation/FlowMonitor">实体厅流量监测分析</a></li
>
<
%--<li><a href="${ctx}/MonitorOperation/FlowMonitor">实体厅流量监测分析</a></li>--%
>
</ul>
</ul>
</li>
</li>
</shiro:hasPermission>
</shiro:hasPermission>
...
...
src/main/webapp/WEB-INF/views/AnalysisSupport/FilterRuleMaintain.jsp
View file @
5766eec2
...
@@ -241,7 +241,6 @@
...
@@ -241,7 +241,6 @@
beforeSend
:
function
(
data
)
{},
beforeSend
:
function
(
data
)
{},
success
:
function
(
data
){
success
:
function
(
data
){
var
tbody
=
$
(
'<tbody></tbody>'
);
var
tbody
=
$
(
'<tbody></tbody>'
);
data
=
JSON
.
parse
(
data
)
data
.
forEach
(
function
(
t
,
i
){
data
.
forEach
(
function
(
t
,
i
){
var
tr
=
$
(
'<tr></tr>'
);
var
tr
=
$
(
'<tr></tr>'
);
tr
.
empty
();
tr
.
empty
();
...
@@ -291,6 +290,7 @@
...
@@ -291,6 +290,7 @@
}
}
});
});
$
(
".businessItem"
).
click
(
function
(){
$
(
".businessItem"
).
click
(
function
(){
businessIds
=
""
;
businessIds
=
""
;
$
(
"[name='businessinput']:checked"
).
each
(
function
(){
$
(
"[name='businessinput']:checked"
).
each
(
function
(){
...
@@ -438,6 +438,13 @@
...
@@ -438,6 +438,13 @@
$
(
".province"
).
attr
(
"checked"
,
false
);
$
(
".province"
).
attr
(
"checked"
,
false
);
}
}
});
});
$
(
".province"
).
click
(
function
(){
var
clickFlag
=
true
;
//是否全部选中
$
(
".province"
).
each
(
function
(){
if
(
$
(
this
).
attr
(
"checked"
)
==
null
||
$
(
this
).
attr
(
"checked"
)
==
false
){
clickFlag
=
false
;
}
});
$
(
"#allProvince"
).
attr
(
"checked"
,
clickFlag
);
});
//业务全选
//业务全选
$
(
"#allBusiness"
).
click
(
function
(){
$
(
"#allBusiness"
).
click
(
function
(){
if
(
$
(
"#allBusiness"
).
attr
(
"checked"
)
==
"checked"
){
//全选
if
(
$
(
"#allBusiness"
).
attr
(
"checked"
)
==
"checked"
){
//全选
...
@@ -445,6 +452,19 @@
...
@@ -445,6 +452,19 @@
}
else
{
//不全选
}
else
{
//不全选
$
(
".businessItem"
).
attr
(
"checked"
,
false
);
$
(
".businessItem"
).
attr
(
"checked"
,
false
);
}
}
businessIds
=
""
;
$
(
"[name='businessinput']:checked"
).
each
(
function
(){
businessIds
+=
$
(
this
).
val
()
+
","
;
});
updateKpi
(
businessIds
);
});
$
(
".businessItem"
).
click
(
function
(){
var
clickFlag
=
true
;
//是否全部选中
$
(
".businessItem"
).
each
(
function
(){
if
(
$
(
this
).
attr
(
"checked"
)
==
null
||
$
(
this
).
attr
(
"checked"
)
==
false
){
clickFlag
=
false
;
}
});
$
(
"#allBusiness"
).
attr
(
"checked"
,
clickFlag
);
});
});
//指标全选
//指标全选
$
(
"#allKpi"
).
click
(
function
(){
$
(
"#allKpi"
).
click
(
function
(){
...
@@ -454,6 +474,13 @@
...
@@ -454,6 +474,13 @@
$
(
".kpiItem"
).
attr
(
"checked"
,
false
);
$
(
".kpiItem"
).
attr
(
"checked"
,
false
);
}
}
});
});
$
(
".kpiItem"
).
click
(
function
(){
var
cFlag
=
true
;
//是否全部选中
$
(
".kpiItem"
).
each
(
function
(){
if
(
$
(
this
).
attr
(
"checked"
)
==
null
||
$
(
this
).
attr
(
"checked"
)
==
false
){
cFlag
=
false
;
}
});
$
(
"#allKpi"
).
attr
(
"checked"
,
cFlag
);
});
</script>
</script>
</body>
</body>
src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleMaintain.jsp
View file @
5766eec2
...
@@ -462,8 +462,9 @@ function updateKpi(businessIds,calCycleValue){
...
@@ -462,8 +462,9 @@ function updateKpi(businessIds,calCycleValue){
async
:
false
,
async
:
false
,
beforeSend
:
function
(
data
)
{},
beforeSend
:
function
(
data
)
{},
success
:
function
(
data
){
success
:
function
(
data
){
console
.
log
(
data
)
var
tbody
=
$
(
'<tbody></tbody>'
);
var
tbody
=
$
(
'<tbody></tbody>'
);
data
=
JSON
.
parse
(
data
)
data
.
forEach
(
function
(
t
,
i
){
data
.
forEach
(
function
(
t
,
i
){
var
tr
=
$
(
'<tr></tr>'
);
var
tr
=
$
(
'<tr></tr>'
);
tr
.
empty
();
tr
.
empty
();
...
@@ -629,6 +630,19 @@ $("#allBusiness").click(function(){
...
@@ -629,6 +630,19 @@ $("#allBusiness").click(function(){
}
else
{
//不全选
}
else
{
//不全选
$
(
".businessItem"
).
attr
(
"checked"
,
false
);
$
(
".businessItem"
).
attr
(
"checked"
,
false
);
}
}
businessIds
=
""
;
$
(
"[name='businessinput']:checked"
).
each
(
function
(){
businessIds
+=
$
(
this
).
val
()
+
","
;
});
console
.
log
(
businessIds
);
updateKpi
(
businessIds
,
calCycleValue
);
});
$
(
".businessItem"
).
click
(
function
(){
var
clickFlag
=
true
;
//是否全部选中
$
(
".businessItem"
).
each
(
function
(){
if
(
$
(
this
).
attr
(
"checked"
)
==
null
||
$
(
this
).
attr
(
"checked"
)
==
false
){
clickFlag
=
false
;
}
});
$
(
"#allBusiness"
).
attr
(
"checked"
,
clickFlag
);
});
});
//指标全选
//指标全选
$
(
"#allKpi"
).
click
(
function
(){
$
(
"#allKpi"
).
click
(
function
(){
...
@@ -638,6 +652,13 @@ $("#allKpi").click(function(){
...
@@ -638,6 +652,13 @@ $("#allKpi").click(function(){
$
(
".kpiItem"
).
attr
(
"checked"
,
false
);
$
(
".kpiItem"
).
attr
(
"checked"
,
false
);
}
}
});
});
$
(
".kpiItem"
).
click
(
function
(){
var
cFlag
=
true
;
//是否全部选中
$
(
".kpiItem"
).
each
(
function
(){
if
(
$
(
this
).
attr
(
"checked"
)
==
null
||
$
(
this
).
attr
(
"checked"
)
==
false
){
cFlag
=
false
;
}
});
$
(
"#allKpi"
).
attr
(
"checked"
,
cFlag
);
});
</script>
</script>
...
...
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