前端获取菜单列表增加Permissions、ParentIDDisplayName
This commit is contained in:
parent
116f53b2b5
commit
82f8f4f390
|
@ -247,10 +247,13 @@ namespace NewLife.Cube.Admin.Controllers
|
|||
select new MenuTree
|
||||
{
|
||||
ID = menu.ID,
|
||||
Name = menu.DisplayName,
|
||||
Name = menu.Name,
|
||||
DisplayName = menu.DisplayName,
|
||||
Url = Url.Content(menu.Url),
|
||||
Icon = menu.Icon,
|
||||
Visible = menu.Visible
|
||||
Visible = menu.Visible,
|
||||
ParentID = menu.ParentID,
|
||||
Permissions = menu.Permissions
|
||||
}).ToList();
|
||||
return menuList.Count > 0 ? menuList : null;
|
||||
}, menus);
|
||||
|
|
|
@ -32,6 +32,7 @@ namespace NewLife.Cube.Extensions
|
|||
if (key == "output") return null;
|
||||
|
||||
var entityBody = request.GetRequestBody<NullableDictionary<String, Object>>();
|
||||
if (entityBody == null) return null;
|
||||
return !entityBody.TryGetValue(key, out var v) ? null : v?.ToString();
|
||||
}
|
||||
|
||||
|
|
|
@ -57,8 +57,8 @@
|
|||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NewLife.Core" Version="8.10.2021.212-beta1" />
|
||||
<PackageReference Include="NewLife.XCode" Version="10.0.2021.212-beta1" />
|
||||
<PackageReference Include="NewLife.Core" Version="8.10.2021.212-beta2" />
|
||||
<PackageReference Include="NewLife.XCode" Version="10.0.2021.212-beta3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -13,13 +13,20 @@ namespace NewLife.Cube.ViewModels
|
|||
/// </summary>
|
||||
/// <value></value>
|
||||
public Int32 ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public String Name { get; set; }
|
||||
/// <summary>
|
||||
/// 显示名
|
||||
/// </summary>
|
||||
public String DisplayName { get; set; }
|
||||
/// <summary>
|
||||
/// 父级id
|
||||
/// </summary>
|
||||
public Int32? ParentID { get; set; }
|
||||
/// <summary>
|
||||
/// 链接
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
|
@ -34,6 +41,8 @@ namespace NewLife.Cube.ViewModels
|
|||
/// </summary>
|
||||
/// <value></value>
|
||||
public Boolean Visible { get; set; }
|
||||
/// <summary>可选权限子项</summary>
|
||||
public Dictionary<Int32, String> Permissions { get; set; }
|
||||
/// <summary>
|
||||
/// 子菜单
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue