Showing
3 changed files
with
31 additions
and
0 deletions
@@ -8,6 +8,8 @@ public class HttpUriContants { | @@ -8,6 +8,8 @@ public class HttpUriContants { | ||
8 | /*** 机组信息 ****/ | 8 | /*** 机组信息 ****/ |
9 | public static final String HOST_GROUP_GETALL = "/hostGroup/getHostGroups"; | 9 | public static final String HOST_GROUP_GETALL = "/hostGroup/getHostGroups"; |
10 | 10 | ||
11 | + public static final String HOST_ALL_GROUPS = "/hostGroup/getAllGroups"; | ||
12 | + | ||
11 | /*** 机组信息 ****/ | 13 | /*** 机组信息 ****/ |
12 | public static String GET_ALL_TYPE = "/type/query"; | 14 | public static String GET_ALL_TYPE = "/type/query"; |
13 | 15 |
@@ -36,5 +36,20 @@ public class HostGroupCtrl { | @@ -36,5 +36,20 @@ public class HostGroupCtrl { | ||
36 | } | 36 | } |
37 | 37 | ||
38 | 38 | ||
39 | + | ||
40 | + @RequestMapping("/getAllGroups") | ||
41 | + @ResponseBody | ||
42 | + public BaseResponse getAllGroups() { | ||
43 | + try{ | ||
44 | + BaseResponse response=httpRestClient.defaultPost(HttpUriContants.HOST_ALL_GROUPS, null, BaseResponse.class); | ||
45 | + return response; | ||
46 | + }catch (Exception e){ | ||
47 | + log.error("getAllGroups error",e); | ||
48 | + return null; | ||
49 | + } | ||
50 | + | ||
51 | + } | ||
52 | + | ||
53 | + | ||
39 | } | 54 | } |
40 | 55 |
@@ -71,5 +71,19 @@ | @@ -71,5 +71,19 @@ | ||
71 | } | 71 | } |
72 | }); | 72 | }); |
73 | } | 73 | } |
74 | + | ||
75 | + $("#groupId").select({ | ||
76 | + firstText : "请选择分组类型", | ||
77 | + firstValue : 0, | ||
78 | + className : "form-control", | ||
79 | + url : contextPath + "/NoFilterController.do?method=getEnumForSelect", | ||
80 | + queryParams : { | ||
81 | + className : "GroupTypeEnum" | ||
82 | + }, | ||
83 | + loadFilter : function(data) { | ||
84 | + return defaultLoadFilter(data); | ||
85 | + }, | ||
86 | + value : 0 | ||
87 | + }); | ||
74 | }); | 88 | }); |
75 | </script> | 89 | </script> |
-
Please register or login to post a comment