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
simba
9 years ago
Commit
83af8e60e290b56b73d917fbce5c57efb35c7779
1 parent
fb0a927f
update
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
monitor-ui-common/src/main/java/com/ui/contants/HttpUriContants.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/HostGroupCtrl.java
monitor-ui-web/src/main/webapp/jsp/host/editHostInfo.jsp
monitor-ui-common/src/main/java/com/ui/contants/HttpUriContants.java
View file @
83af8e6
...
...
@@ -8,6 +8,8 @@ public class HttpUriContants {
/*** 机组信息 ****/
public
static
final
String
HOST_GROUP_GETALL
=
"/hostGroup/getHostGroups"
;
public
static
final
String
HOST_ALL_GROUPS
=
"/hostGroup/getAllGroups"
;
/*** 机组信息 ****/
public
static
String
GET_ALL_TYPE
=
"/type/query"
;
...
...
monitor-ui-ctrl/src/main/java/com/ui/ctrl/HostGroupCtrl.java
View file @
83af8e6
...
...
@@ -36,5 +36,20 @@ public class HostGroupCtrl {
}
@RequestMapping
(
"/getAllGroups"
)
@ResponseBody
public
BaseResponse
getAllGroups
()
{
try
{
BaseResponse
response
=
httpRestClient
.
defaultPost
(
HttpUriContants
.
HOST_ALL_GROUPS
,
null
,
BaseResponse
.
class
);
return
response
;
}
catch
(
Exception
e
){
log
.
error
(
"getAllGroups error"
,
e
);
return
null
;
}
}
}
...
...
monitor-ui-web/src/main/webapp/jsp/host/editHostInfo.jsp
View file @
83af8e6
...
...
@@ -71,5 +71,19 @@
}
});
}
$("#groupId").select({
firstText : "请选择分组类型",
firstValue : 0,
className : "form-control",
url : contextPath + "/NoFilterController.do?method=getEnumForSelect",
queryParams : {
className : "GroupTypeEnum"
},
loadFilter : function(data) {
return defaultLoadFilter(data);
},
value : 0
});
});
</script>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment