Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
bblu
8 years ago
Commit
ecb56506deda566545579212dedf837655be1123
2 parents
a94a7435
2d6541ba
Merge branch 'master' into switch_conf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
6 deletions
monitor-ui-common/src/main/java/com/ui/model/req/ProjectBuildReq.java
monitor-ui-web/src/main/webapp/jsp/project/history.jsp
monitor-ui-web/src/main/webapp/jsp/project/project_build.jsp
monitor-ui-web/src/main/webapp/jsp/switch/java_restart_process.jsp
monitor-ui-common/src/main/java/com/ui/model/req/ProjectBuildReq.java
View file @
ecb5650
...
...
@@ -12,4 +12,6 @@ public class ProjectBuildReq extends PageRequest {
private
String
environment
;
private
int
currentStatus
;
}
...
...
monitor-ui-web/src/main/webapp/jsp/project/history.jsp
View file @
ecb5650
...
...
@@ -101,6 +101,17 @@
</c:forEach>
</select>
</div>
<div
class=
"input-group"
style=
"float: left;"
>
<span
class=
"input-group-addon"
>
状态:
</span>
<select
id=
"currentStatus"
name=
"currentStatus"
class=
"form-control"
>
<option
value=
"0"
></option>
<option
value=
"1"
>
正在进行
</option>
<option
value=
"2"
>
成功
</option>
<option
value=
"3"
>
强制退出
</option>
<option
value=
"4"
>
出错退出
</option>
</select>
</div>
<button
id=
"searchBtn"
class=
"btn btn-primary"
style=
"margin-left: 18px;"
>
搜索
</button>
</div>
</div>
...
...
@@ -153,10 +164,10 @@
width
:
"8%"
},
{
title
:
"状态"
,
field
:
"
s
tatus"
,
field
:
"
currentS
tatus"
,
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
if
(
value
==
1
){
return
'
成功
'
;
return
'
正在进行
'
;
}
else
if
(
value
==
2
){
return
'成功'
;
}
else
if
(
value
==
3
){
...
...
@@ -189,9 +200,12 @@
$
(
"#searchBtn"
).
click
(
function
()
{
var
currentProject
=
$
(
"#currentProject"
).
val
();
var
environment
=
$
(
"#environment"
).
val
();
var
currentStatus
=
$
(
"#currentStatus"
).
val
();
$
(
"#historyTable"
).
table
(
"load"
,
{
'currentProject'
:
currentProject
,
'environment'
:
environment
'environment'
:
environment
,
'currentStatus'
:
currentStatus
});
});
...
...
monitor-ui-web/src/main/webapp/jsp/project/project_build.jsp
View file @
ecb5650
...
...
@@ -210,4 +210,15 @@
}
</script>
\ No newline at end of file
<script>
document
.
onkeydown
=
function
()
{
if
(
event
.
keyCode
==
116
||
event
.
keyCode
==
8
||
(
event
.
ctrlKey
&&
event
.
keyCode
==
82
)
||
event
.
keyCode
==
13
)
{
event
.
keyCode
=
0
;
event
.
returnValue
=
false
;
}
}
document
.
oncontextmenu
=
function
()
{
event
.
returnValue
=
false
;}
</script>
\ No newline at end of file
...
...
monitor-ui-web/src/main/webapp/jsp/switch/java_restart_process.jsp
View file @
ecb5650
...
...
@@ -67,6 +67,7 @@
</body>
<script>
var
myArray
=
new
Array
();
var
removeArray
=
new
Array
();
...
...
@@ -177,8 +178,17 @@
}
});
});
}
</script>
<script>
document
.
onkeydown
=
function
()
{
if
(
event
.
keyCode
==
116
||
event
.
keyCode
==
8
||
(
event
.
ctrlKey
&&
event
.
keyCode
==
82
)
||
event
.
keyCode
==
13
)
{
event
.
keyCode
=
0
;
event
.
returnValue
=
false
;
}
}
document
.
oncontextmenu
=
function
()
{
event
.
returnValue
=
false
;}
</script>
\ No newline at end of file
</script>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment