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
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
58 additions
and
18 deletions
+58
-18
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
+5
-13
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;
* @author Liu Na
*
*/
@Entity
@Table
(
name
=
"APP_SM_DB_CITY_KPI_T"
,
schema
=
"ccolap"
)
//
@Entity
//
@Table(name = "APP_SM_DB_CITY_KPI_T",schema = "ccolap")
public
class
FlowMonitor
implements
Serializable
{
private
Long
batchId
;
...
...
src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleMaintainController.java
View file @
5766eec2
...
...
@@ -147,27 +147,19 @@ public class QualityRuleMaintainController {
@RequestMapping
(
value
=
"/findKpiId*"
)
@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
,
HttpServletResponse
response
)
{
List
<
Object
[]>
businessKpiList
=
new
ArrayList
<
Object
[]>();
if
(!
""
.
equals
(
businessIds
)){
String
[]
strs
=
businessIds
.
split
(
","
);
List
<
Long
>
businessIdlist
=
new
ArrayList
<
Long
>();
for
(
int
i
=
0
;
i
<
strs
.
length
;
i
++)
{
businessIdlist
.
add
(
Long
.
valueOf
(
strs
[
i
]));
}
List
<
Object
[]>
businessKpiList
=
kpiDao
.
findKpiIdAndKpiNameAndKpiCodeByBusinessIds
(
calCycleValue
,
businessIdlist
);
Gson
gson
=
new
Gson
();
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
();
businessKpiList
=
kpiDao
.
findKpiIdAndKpiNameAndKpiCodeByBusinessIds
(
calCycleValue
,
businessIdlist
);
}
return
businessKpiList
;
}
...
...
src/main/webapp/WEB-INF/layouts/header.jsp
View file @
5766eec2
...
...
@@ -114,7 +114,7 @@
<ul class="dropdown-menu">
<li><a href="${ctx}/MonitorOperation/RegularityAnalysis">数据特征探查</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>
</li>
</shiro:hasPermission>
...
...
src/main/webapp/WEB-INF/views/AnalysisSupport/FilterRuleMaintain.jsp
View file @
5766eec2
...
...
@@ -241,7 +241,6 @@
beforeSend
:
function
(
data
)
{},
success
:
function
(
data
){
var
tbody
=
$
(
'<tbody></tbody>'
);
data
=
JSON
.
parse
(
data
)
data
.
forEach
(
function
(
t
,
i
){
var
tr
=
$
(
'<tr></tr>'
);
tr
.
empty
();
...
...
@@ -291,6 +290,7 @@
}
});
$
(
".businessItem"
).
click
(
function
(){
businessIds
=
""
;
$
(
"[name='businessinput']:checked"
).
each
(
function
(){
...
...
@@ -438,6 +438,13 @@
$
(
".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
(){
if
(
$
(
"#allBusiness"
).
attr
(
"checked"
)
==
"checked"
){
//全选
...
...
@@ -445,6 +452,19 @@
}
else
{
//不全选
$
(
".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
(){
...
...
@@ -454,6 +474,13 @@
$
(
".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>
</body>
src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleMaintain.jsp
View file @
5766eec2
...
...
@@ -462,8 +462,9 @@ function updateKpi(businessIds,calCycleValue){
async
:
false
,
beforeSend
:
function
(
data
)
{},
success
:
function
(
data
){
console
.
log
(
data
)
var
tbody
=
$
(
'<tbody></tbody>'
);
data
=
JSON
.
parse
(
data
)
data
.
forEach
(
function
(
t
,
i
){
var
tr
=
$
(
'<tr></tr>'
);
tr
.
empty
();
...
...
@@ -629,6 +630,19 @@ $("#allBusiness").click(function(){
}
else
{
//不全选
$
(
".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
(){
...
...
@@ -638,6 +652,13 @@ $("#allKpi").click(function(){
$
(
".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>
...
...
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