Commit 8aaa1e50 authored by 胡文斌's avatar 胡文斌

合并微前端

parent 5b6613d1
...@@ -206,6 +206,7 @@ public class MenuController extends Controller { ...@@ -206,6 +206,7 @@ public class MenuController extends Controller {
} }
menu.put("system", system.getName()); menu.put("system", system.getName());
menu.put("url", system.getUrl()); menu.put("url", system.getUrl());
menu.put("micro_app", system.getStr("micro_app"));
// 过滤不需要显示的菜单 // 过滤不需要显示的菜单
if (menu.getHidden() == null || menu.getHidden() != 1) { if (menu.getHidden() == null || menu.getHidden() != 1) {
menu.put("star", exist(menu.getId(), stars)); menu.put("star", exist(menu.getId(), stars));
...@@ -229,4 +230,13 @@ public class MenuController extends Controller { ...@@ -229,4 +230,13 @@ public class MenuController extends Controller {
renderJson(Ret.fail("msg", e.getMessage())); renderJson(Ret.fail("msg", e.getMessage()));
} }
} }
/**
* 获取微前端项目接口路径
* @date 2021.3.2
* @auther huwenbin
*/
public void getMicroSystemByName() {
this.renderJson(Ret.ok("miroApp", InfoSystem.getSystem(this.getPara("server")).getStr("micro_app")));
}
} }
...@@ -99,4 +99,13 @@ public abstract class BaseSystem<M extends BaseSystem<M>> extends Model<M> imple ...@@ -99,4 +99,13 @@ public abstract class BaseSystem<M extends BaseSystem<M>> extends Model<M> imple
return getStr("DESCRIPTION"); return getStr("DESCRIPTION");
} }
public M setMicroApp(java.lang.String microApp) {
set("MICRO_APP", microApp);
return (M)this;
}
public java.lang.String getMicroApp() {
return getStr("MICRO_APP");
}
} }
...@@ -64,7 +64,7 @@ select * from AS_USER where USERNAME=#para(0) ...@@ -64,7 +64,7 @@ select * from AS_USER where USERNAME=#para(0)
### 获取系统,应用菜单使用 ### 获取系统,应用菜单使用
#sql("getSystems") #sql("getSystems")
select ID, NAME, TITLE, TYPE, URL, DESCRIPTION from AS_SYSTEM order by ID select ID, NAME, TITLE, TYPE, URL, DESCRIPTION,MICRO_APP from AS_SYSTEM order by ID
#end #end
### 获取系统 ### 获取系统
......
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