Commit f77294f4 by Nepxion

增加图形化灰度发布功能

parent d39f55cc
...@@ -252,12 +252,16 @@ public class RouterTopology extends AbstractTopology { ...@@ -252,12 +252,16 @@ public class RouterTopology extends AbstractTopology {
public void execute(ActionEvent e) { public void execute(ActionEvent e) {
String routerPath = textField.getText(); String routerPath = textField.getText();
String serviceId = comboBox.getSelectedItem().toString(); if (StringUtils.isEmpty(routerPath)) {
if (StringUtils.isNotEmpty(routerPath)) { return;
routerPath = routerPath + ";" + serviceId; }
if (routerPath.contains(";")) {
routerPath = routerPath.substring(0, routerPath.lastIndexOf(";"));
} else { } else {
routerPath = serviceId; routerPath = "";
} }
textField.setText(routerPath); textField.setText(routerPath);
} }
}; };
......
...@@ -11,8 +11,8 @@ execute_gray_router=执行灰度路由 ...@@ -11,8 +11,8 @@ execute_gray_router=执行灰度路由
refresh_gray_state=刷新灰度状态 refresh_gray_state=刷新灰度状态
service_list=服务列表 service_list=服务列表
add_service=添加服务 add_service=添加一个服务
delete_service=添加服务 delete_service=删除一个服务
execute_router=执行路由 execute_router=执行路由
clear_router=清除路由 clear_router=清除路由
router_path_invalid=路由路径不能为空 router_path_invalid=路由路径不能为空
......
...@@ -11,8 +11,8 @@ execute_gray_router=\u6267\u884c\u7070\u5ea6\u8def\u7531 ...@@ -11,8 +11,8 @@ execute_gray_router=\u6267\u884c\u7070\u5ea6\u8def\u7531
refresh_gray_state=\u5237\u65b0\u7070\u5ea6\u72b6\u6001 refresh_gray_state=\u5237\u65b0\u7070\u5ea6\u72b6\u6001
service_list=\u670d\u52a1\u5217\u8868 service_list=\u670d\u52a1\u5217\u8868
add_service=\u6dfb\u52a0\u670d\u52a1 add_service=\u6dfb\u52a0\u4e00\u4e2a\u670d\u52a1
delete_service=\u6dfb\u52a0\u670d\u52a1 delete_service=\u5220\u9664\u4e00\u4e2a\u670d\u52a1
execute_router=\u6267\u884c\u8def\u7531 execute_router=\u6267\u884c\u8def\u7531
clear_router=\u6e05\u9664\u8def\u7531 clear_router=\u6e05\u9664\u8def\u7531
router_path_invalid=\u8def\u7531\u8def\u5f84\u4e0d\u80fd\u4e3a\u7a7a router_path_invalid=\u8def\u7531\u8def\u5f84\u4e0d\u80fd\u4e3a\u7a7a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment