提交 d68ac05b 编写于 作者: lzlhxj's avatar lzlhxj

权限表数据多项选择视图使用自定义eltree展示菜单及权限数据

上级 3d8fb398
......@@ -27,7 +27,7 @@
.mpicker-select {
font-family: helvetica, sans-serif;
font-size: 16px;
text-align: justify;
text-align: justify;
word-spacing: -3.8pt;
line-height: 1.6;
font-weight: bold;
......@@ -65,4 +65,52 @@
>.footer {
height: 64px;
}
}
\ No newline at end of file
}
.tree-right-menu {
.ivu-divider-horizontal {
width: calc(100% - 32px);
min-width: calc(100% - 32px);
margin: 0 auto;
}
.ivu-dropdown-item {
position: relative;
padding-left: 32px;
> i {
position: absolute;
left: 16px;
top: 10px;
}
.ivu-icon-ios-arrow-forward {
left: initial;
right: 4px;
}
}
.ivu-dropdown {
.ivu-select-dropdown {
margin: 0;
}
}
}
.text{
font-weight: 700;color: #303133;font-size: 15px;margin-left:10px;margin-top:20px;
}
.col{
display: inline-block;
width: 400px;
}
.search{
width:200px;margin-left:20px;margin-top:30px;margin-bottom:20px;
}
.save{
margin-top:30px;margin-bottom:20px;margin-left:40px;
}
.roll{
height:680px;overflow:hidden;overflow-x: hidden;overflow-y: auto;
}
.tre{
margin-left:20px;
}
// this is less
package cn.ibizlab.api.rest.extensions;
import cn.ibizlab.core.extensions.service.UAACoreService;
import com.alibaba.fastjson.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class UAACoreResource {
@Autowired
private UAACoreService uaaCoreService;
/**
* 获取全部权限列表或菜单列表
*
* @return
*/
@GetMapping(value = "/uaa/sys_role/custom/getallMenuAndPermission")
public ResponseEntity<JSONArray> getAllPermission() {
JSONArray treeNode = new JSONArray();
// 获取菜单
treeNode.add(uaaCoreService.getAppMenu());
//获取数据能力
treeNode.add(uaaCoreService.getDEOppriv());
return ResponseEntity.ok().body(treeNode);
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册