|
@@ -33,7 +33,7 @@ namespace Hotline.Repository.SqlSugar.System
|
|
|
/// </summary>
|
|
|
/// <param name="roles"></param>
|
|
|
/// <returns></returns>
|
|
|
- public async Task<IReadOnlyList<SystemMenu>> GetFastMenu(string[] roles, string userId)
|
|
|
+ public async Task<IReadOnlyList<SystemMenu>> GetFastMenu(string[] roles, string userId,string name)
|
|
|
{
|
|
|
var list = await Db.Queryable<SystemAuthority>()
|
|
|
.Where(x => roles.Contains(x.RoleCode)).ToListAsync();
|
|
@@ -52,7 +52,7 @@ namespace Hotline.Repository.SqlSugar.System
|
|
|
{
|
|
|
//过滤已存在的
|
|
|
var menulist = await Db.Queryable<SystemMenu>()
|
|
|
- .Where(x => x.IsFast && perList.Contains(x.PermissionCode)).ToListAsync();
|
|
|
+ .Where(x => x.IsFast && perList.Contains(x.PermissionCode) && x.PageName.Contains(name)).ToListAsync();
|
|
|
return menulist;
|
|
|
}
|
|
|
else
|