Commit 9c4c4082 authored by 黄奎's avatar 黄奎

页面修改

parent b13beee4
......@@ -5,6 +5,31 @@
/// </summary>
public class RB_Menu_ViewModel : Model.Entity.System.RB_Menu
{
/// <summary>
/// 菜单类型字符串
/// </summary>
public string MenuTypeStr
{
get
{
string str = "";
if (this.MenuType > 0)
{
switch (this.MenuType)
{
case 1: str = "管理端"; break;
case 2: str = "教师端"; break;
case 3: str = "助教端"; break;
case 4: str = "学生端"; break;
}
}
return str;
}
}
/// <summary>
/// 创建时间字符串
/// </summary>
public string CreateTimeStr { get { return Common.ConvertHelper.FormatTime(this.CreateTime); } }
}
}
\ No newline at end of file
......@@ -58,6 +58,7 @@ namespace Edu.Module.System
{nameof(RB_Menu_ViewModel.MenuLevel),model.MenuLevel },
{nameof(RB_Menu_ViewModel.MenuType),model.MenuType },
{nameof(RB_Menu_ViewModel.SortNum),model.SortNum },
{nameof(RB_Menu_ViewModel.Status),model.Status },
};
flag = menuRepository.Update(fileds, new WhereHelper(nameof(RB_Menu_ViewModel.MenuId), model.MenuId));
}
......
using Edu.Common.Enum;
using Edu.Model.Entity.System;
using Edu.Model.ViewModel.System;
using System.Collections.Generic;
using System.Linq;
......@@ -107,6 +108,7 @@ WHERE 1=1
builder.AppendFormat(" AND {0}={1} ", nameof(RB_Menu_ViewModel.Status), (int)query.Status);
}
}
builder.AppendFormat(" ORDER BY {0} DESC ", nameof(RB_Menu_ViewModel.MenuId));
return GetPage<RB_Menu_ViewModel>(pageIndex,pageSize,out rowsCount, builder.ToString(), parameters).ToList();
}
}
......
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