Commit 73664f6d authored by 黄奎's avatar 黄奎

页面修改

parent 6028e5d4
......@@ -35,11 +35,11 @@ namespace Edu.WebApi.Controllers.Course
var pageModel = Common.Plugin.JsonHelper.DeserializeObject<ResultPageModel>(RequestParm.Msg.ToString());
var query = new RB_Class_ViewModel()
{
ClassName=base.ParmJObj.GetStringValue("ClassName"),
ClassStatus=(ClassStatusEnum)base.ParmJObj.GetInt("ClassStatus"),
Teacher_Id=base.ParmJObj.GetInt("Teacher_Id"),
CouseId=base.ParmJObj.GetInt("CouseId"),
School_Id=base.ParmJObj.GetInt("School_Id")
ClassName = base.ParmJObj.GetStringValue("ClassName"),
ClassStatus = (ClassStatusEnum)base.ParmJObj.GetInt("ClassStatus"),
Teacher_Id = base.ParmJObj.GetInt("Teacher_Id"),
CouseId = base.ParmJObj.GetInt("CouseId"),
School_Id = base.ParmJObj.GetInt("School_Id")
};
query.Group_Id = base.UserInfo.Group_Id;
//query.School_Id = base.UserInfo.School_Id;
......@@ -64,9 +64,9 @@ namespace Edu.WebApi.Controllers.Course
item.TeacherName,
item.ClassPersion,
item.OrderStudentCount,
OpenTime= Common.ConvertHelper.FormatDate(item.OpenTime),
OpenTime = Common.ConvertHelper.FormatDate(item.OpenTime),
item.CompleteProgress,
ClassStatusStr=item.ClassStatus.ToName(),
ClassStatusStr = item.ClassStatus.ToName(),
});
}
pageModel.Count = rowsCount;
......@@ -130,5 +130,26 @@ namespace Edu.WebApi.Controllers.Course
return flag ? ApiResult.Success() : ApiResult.Failed();
}
#endregion
#region 枚举相关列表
/// <summary>
/// 获取班级状态列表
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult GetClassStatusList()
{
var list = Common.Plugin.EnumHelper.EnumToList(typeof(ClassStatusEnum));
if (list != null)
{
list.Insert(0, new EnumItem()
{
Id = 0,
Name = "不限"
});
}
return ApiResult.Success(data: list);
}
#endregion
}
}
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