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
qinchao
7 years ago
Commit
986d8751395ace689ba272cfe98c7db4bdd49c3b
1 parent
6771c059
切换lb改为异步
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletions
monitor-ui-common/src/main/java/com/ui/contants/HttpUriContants.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/TopoSwitchCtrl.java
monitor-ui-web/src/main/webapp/jsp/switch/switch_topology.jsp
monitor-ui-common/src/main/java/com/ui/contants/HttpUriContants.java
View file @
986d875
...
...
@@ -158,6 +158,7 @@ public class HttpUriContants {
public
static
final
String
SWITCH_NGINX
=
"/nginxswitch/switchNginxConf"
;
public
static
final
String
VIEW_NGINX_CURRENT_CONF
=
"/nginxswitch/viewCurrentConf"
;
public
static
final
String
NGINX_SWTICH_LB_WEIGHT
=
"/nginxswitch/switchLbWeight"
;
public
static
final
String
NGINX_SWTICH_LB_RESULT
=
"/nginxswitch/getLbSwitchResult"
;
/**
* luaswitch
...
...
monitor-ui-ctrl/src/main/java/com/ui/ctrl/TopoSwitchCtrl.java
View file @
986d875
...
...
@@ -165,4 +165,16 @@ public class TopoSwitchCtrl {
map
.
put
(
"target"
,
target
);
return
httpRestClient
.
defaultGet
(
HttpUriContants
.
NGINX_SWTICH_LB_WEIGHT
,
BaseResponse
.
class
,
map
);
}
/**
* 切换lb权重结果查询
* @return
*/
@RequestMapping
(
value
=
"getLbSwitchResult"
)
@ResponseBody
public
BaseResponse
getLbSwitchResult
(
String
rtnID
)
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"rtnID"
,
rtnID
);
return
httpRestClient
.
defaultGet
(
HttpUriContants
.
NGINX_SWTICH_LB_RESULT
,
BaseResponse
.
class
,
map
);
}
}
\ No newline at end of file
...
...
monitor-ui-web/src/main/webapp/jsp/switch/switch_topology.jsp
View file @
986d875
...
...
@@ -254,7 +254,7 @@
</div>
<script
src=
"<%=basePath %>script/common/genarate_left_panel.js?v=<%=ProjectConstant.MENU_VERSION %>"
></script>
<script
src=
"<%=basePath %>script/switch.js?v=2018060
1-007
"
></script>
<script
src=
"<%=basePath %>script/switch.js?v=2018060
4-001
"
></script>
<script
type=
"text/javascript"
>
$
(
"#li_switch"
).
addClass
(
"active open"
);
...
...
Please
register
or
login
to post a comment