Commit ad241b2b authored by 黄奎's avatar 黄奎

页面修改

parent 81b1e2b6
...@@ -55,5 +55,31 @@ namespace Edu.Common ...@@ -55,5 +55,31 @@ namespace Edu.Common
} }
return timeStr; return timeStr;
} }
/// <summary>
/// 字符串转List
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
public static List<int> StringToList(object value)
{
List<int> list = new List<int>();
if (value!=null && !string.IsNullOrEmpty(value.ToString()))
{
var tempArray = value.ToString().Split(',');
if (tempArray != null && tempArray.Length > 0)
{
foreach (var item in tempArray)
{
Int32.TryParse(item, out int NewValue);
if (NewValue > 0)
{
list.Add(NewValue);
}
}
}
}
return list;
}
} }
} }
\ No newline at end of file
namespace Edu.Model.ViewModel.System using System.Collections.Generic;
namespace Edu.Model.ViewModel.System
{ {
/// <summary> /// <summary>
/// 系统角色视图实体类 /// 系统角色视图实体类
...@@ -20,5 +22,16 @@ ...@@ -20,5 +22,16 @@
return Common.ConvertHelper.FormatTime(this.CreateDate); return Common.ConvertHelper.FormatTime(this.CreateDate);
} }
} }
/// <summary>
/// 选中的菜单列表
/// </summary>
public List<int> CheckMenuList
{
get
{
return Common.ConvertHelper.StringToList(this.RoleAuth);
}
}
} }
} }
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