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
a9d9e899
Commit
a9d9e899
authored
Jan 17, 2018
by
莫林毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监控运营 ->告警监控 ->告警关联诊断 '新建'&'修改' 页面
修改 字符串拼接符['&'代替'_'] 声明 'code 不要包含&'
parent
034c7f40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
CreateDiagosis.jsp
.../webapp/WEB-INF/views/MonitorOperation/CreateDiagosis.jsp
+3
-3
UpdateAnaInfo.jsp
...n/webapp/WEB-INF/views/MonitorOperation/UpdateAnaInfo.jsp
+2
-2
No files found.
src/main/webapp/WEB-INF/views/MonitorOperation/CreateDiagosis.jsp
View file @
a9d9e899
...
@@ -756,9 +756,9 @@
...
@@ -756,9 +756,9 @@
kpiWeightTdVal
=
parseFloat
(
Number
(
kpiWeightTdVal
).
toFixed
(
2
));
kpiWeightTdVal
=
parseFloat
(
Number
(
kpiWeightTdVal
).
toFixed
(
2
));
for
(
var
i
=
0
;
i
<
arrDimKpiidAndNameChecked
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
arrDimKpiidAndNameChecked
.
length
;
i
++
)
{
var
id_name
=
arrDimKpiidAndNameChecked
[
i
];
var
id_name
=
arrDimKpiidAndNameChecked
[
i
];
var
addRow
=
$
(
"<tr class='"
+
id_name
.
split
(
"
_"
)[
0
]
+
"_"
+
kpiWeightTdVal
+
"'><td title="
+
id_name
.
split
(
"_"
)[
2
]
+
">"
+
id_name
.
split
(
"_
"
)[
1
]
+
"</td><td style='display:none;'>"
+
kpiWeightTdVal
+
"</td><td><a href='javascript:;' title='"
+
id_name
.
split
(
"_"
)[
0
]
+
"' onclick='deleteRow(this)'>删除</a> </td></tr>"
);
//
<
a
href
=
'javascript:;'
onclick
=
'updateRow(this)'
>
修改
<
/a
>
var
addRow
=
$
(
"<tr class='"
+
id_name
.
split
(
"
&"
)[
0
]
+
"_"
+
kpiWeightTdVal
+
"'><td title="
+
id_name
.
split
(
"&"
)[
2
]
+
">"
+
id_name
.
split
(
"&
"
)[
1
]
+
"</td><td style='display:none;'>"
+
kpiWeightTdVal
+
"</td><td><a href='javascript:;' title='"
+
id_name
.
split
(
"_"
)[
0
]
+
"' onclick='deleteRow(this)'>删除</a> </td></tr>"
);
//
<
a
href
=
'javascript:;'
onclick
=
'updateRow(this)'
>
修改
<
/a
>
$
(
"#addTr"
).
append
(
addRow
);
$
(
"#addTr"
).
append
(
addRow
);
dimKpiSelected
.
push
(
Number
(
id_name
.
split
(
"
_
"
)[
0
]));
dimKpiSelected
.
push
(
Number
(
id_name
.
split
(
"
&
"
)[
0
]));
}
}
// 指标项中 去除 已添加指标 已有的指标
// 指标项中 去除 已添加指标 已有的指标
$
(
"input[name='dimKpiCheck']"
).
each
(
function
(
e
)
{
$
(
"input[name='dimKpiCheck']"
).
each
(
function
(
e
)
{
...
@@ -795,7 +795,7 @@
...
@@ -795,7 +795,7 @@
$
(
"input[name='dimKpiCheck']"
).
each
(
function
(
e
)
{
$
(
"input[name='dimKpiCheck']"
).
each
(
function
(
e
)
{
if
(
$
(
this
).
attr
(
"checked"
))
{
if
(
$
(
this
).
attr
(
"checked"
))
{
//var id_name = $(this).context.id.split("_")[1] + "_" + $(this).context.title.split(" ")[0]+"_"+$(this).context.title.split(" ")[1];
//var id_name = $(this).context.id.split("_")[1] + "_" + $(this).context.title.split(" ")[0]+"_"+$(this).context.title.split(" ")[1];
var
id_name
=
$
(
this
).
context
.
id
.
split
(
"_"
)[
1
]
+
"
_"
+
$
(
this
).
next
().
text
()
+
"_
"
+
$
(
this
).
context
.
title
;
var
id_name
=
$
(
this
).
context
.
id
.
split
(
"_"
)[
1
]
+
"
&"
+
$
(
this
).
next
().
text
()
+
"&
"
+
$
(
this
).
context
.
title
;
arrDimKpiChecked
.
push
(
id_name
);
arrDimKpiChecked
.
push
(
id_name
);
}
}
...
...
src/main/webapp/WEB-INF/views/MonitorOperation/UpdateAnaInfo.jsp
View file @
a9d9e899
...
@@ -580,7 +580,7 @@
...
@@ -580,7 +580,7 @@
var
dimKpiHadCheckId
=
Number
(
$
(
this
).
attr
(
"id"
).
split
(
"_"
)[
1
]);
var
dimKpiHadCheckId
=
Number
(
$
(
this
).
attr
(
"id"
).
split
(
"_"
)[
1
]);
var
dimKpiHadCheckCode
=
$
(
this
).
attr
(
"title"
);
var
dimKpiHadCheckCode
=
$
(
this
).
attr
(
"title"
);
var
dimKpiHadCheckName
=
$
(
this
).
next
().
text
();
var
dimKpiHadCheckName
=
$
(
this
).
next
().
text
();
arr
.
push
(
dimKpiHadCheckId
+
"
_"
+
dimKpiHadCheckName
+
"_
"
+
dimKpiHadCheckCode
);
arr
.
push
(
dimKpiHadCheckId
+
"
&"
+
dimKpiHadCheckName
+
"&
"
+
dimKpiHadCheckCode
);
}
}
});
});
return
arr
;
return
arr
;
...
@@ -754,7 +754,7 @@
...
@@ -754,7 +754,7 @@
for
(
var
i
=
0
;
i
<
kpiId_Name
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
kpiId_Name
.
length
;
i
++
){
var
id_name
=
kpiId_Name
[
i
];
var
id_name
=
kpiId_Name
[
i
];
//var addRow = $("
<
tr
class
=
'"+id_name.split("_")[0]+"'
id
=
'dimKpiCheck_"+id_name.split("_")[0]+"'
><
td
title
=
'"+id_name.split("_")[1].split(" ")[1]+"'
>
"+id_name.split("
_
")[1].split("
")[0]+"
<
/td><td style='display: none'>"+id_kpiWeightTd_value+"</
td
><
td
><
a
href
=
'javascript:;'
onclick
=
'deleteRow(this)'
>
删除
<
/a> </
td
><
/tr>"
)
;/
/<
a
href
=
'javascript:;'
onclick
=
'updateRow(this)'
>
修改
<
/a
>
//var addRow = $("
<
tr
class
=
'"+id_name.split("_")[0]+"'
id
=
'dimKpiCheck_"+id_name.split("_")[0]+"'
><
td
title
=
'"+id_name.split("_")[1].split(" ")[1]+"'
>
"+id_name.split("
_
")[1].split("
")[0]+"
<
/td><td style='display: none'>"+id_kpiWeightTd_value+"</
td
><
td
><
a
href
=
'javascript:;'
onclick
=
'deleteRow(this)'
>
删除
<
/a> </
td
><
/tr>"
)
;/
/<
a
href
=
'javascript:;'
onclick
=
'updateRow(this)'
>
修改
<
/a
>
var
addRow
=
$
(
"<tr class='"
+
id_name
.
split
(
"
_"
)[
0
]
+
"' id='dimKpiCheck_"
+
id_name
.
split
(
"_"
)[
0
]
+
"'><td title='"
+
id_name
.
split
(
"_"
)[
2
]
+
"'>"
+
id_name
.
split
(
"_
"
)[
1
]
+
"</td><td style='display: none'>"
+
id_kpiWeightTd_value
+
"</td><td><a href='javascript:;' onclick='deleteRow(this)'>删除</a> </td></tr>"
);
//
<
a
href
=
'javascript:;'
onclick
=
'updateRow(this)'
>
修改
<
/a
>
var
addRow
=
$
(
"<tr class='"
+
id_name
.
split
(
"
&"
)[
0
]
+
"' id='dimKpiCheck_"
+
id_name
.
split
(
"&"
)[
0
]
+
"'><td title='"
+
id_name
.
split
(
"&"
)[
2
]
+
"'>"
+
id_name
.
split
(
"&
"
)[
1
]
+
"</td><td style='display: none'>"
+
id_kpiWeightTd_value
+
"</td><td><a href='javascript:;' onclick='deleteRow(this)'>删除</a> </td></tr>"
);
//
<
a
href
=
'javascript:;'
onclick
=
'updateRow(this)'
>
修改
<
/a
>
$
(
"#addTr"
).
append
(
addRow
);
$
(
"#addTr"
).
append
(
addRow
);
$
(
"input[name='dimKpiCheck']"
).
each
(
function
(
e
)
{
$
(
"input[name='dimKpiCheck']"
).
each
(
function
(
e
)
{
if
(
$
(
this
).
attr
(
"checked"
))
{
if
(
$
(
this
).
attr
(
"checked"
))
{
...
...
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