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
Email Patches
Plain Diff
Browse Files
Authored by
zhengyouwei
8 years ago
Commit
9898b56936af9b7211bbfde0c14677b4c343985a
1 parent
9210b878
add refresh
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletions
monitor-ui-ctrl/src/main/java/com/ui/ctrl/PhpBuildCtrl.java
monitor-ui-web/src/main/webapp/jsp/project/php_project.jsp
monitor-ui-web/src/main/webapp/script/build/php_project.js
monitor-ui-ctrl/src/main/java/com/ui/ctrl/PhpBuildCtrl.java
View file @
9898b56
...
...
@@ -178,4 +178,15 @@ public class PhpBuildCtrl {
}
}
@RequestMapping
(
value
=
"refreshGit"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
String
refreshGit
()
{
try
{
return
httpRestClient
.
get
(
URL
+
"refreshGit"
,
String
.
class
,
null
);
}
catch
(
Exception
ex
)
{
return
"failed"
;
}
}
}
...
...
monitor-ui-web/src/main/webapp/jsp/project/php_project.jsp
View file @
9898b56
...
...
@@ -54,7 +54,7 @@
</div>
</div>
<div
id=
"autotest-div"
>
<input
type=
"button"
class=
"btn btn-primary"
id=
"autotest-button"
onclick=
"
autotest()"
value=
"执行自动测试用例"
</
input
>
<input
type=
"button"
class=
"btn btn-primary"
id=
"autotest-button"
onclick=
"
refresh()"
value=
"刷新列表"
>
</input>
</div>
</div>
...
...
monitor-ui-web/src/main/webapp/script/build/php_project.js
View file @
9898b56
...
...
@@ -226,6 +226,22 @@ function branchdefault() {
}
}
function
refresh
(){
$
.
ajax
({
url
:
'refreshGit'
,
type
:
'POST'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
alert
(
"刷新成功"
);
},
error
:
function
(
e
)
{
alert
(
"刷新失败"
);
}
});
}
...
...
Please
register
or
login
to post a comment