Commit 2010bc0c authored by 吴春's avatar 吴春

页面修改

parent d530a8a1
......@@ -11,7 +11,6 @@ namespace Edu.Common.Enum.Course
public enum CourseRateEnum
{
/// <summary>
/// 基础课程
/// </summary>
......@@ -60,4 +59,29 @@ namespace Edu.Common.Enum.Course
[EnumField("其他")]
OTHER = 8,
}
/// <summary>
/// 所属科目
/// </summary>
public enum CourseSubjectEnum
{
/// <summary>
/// 日语
/// </summary>
[EnumField("日语")]
Japanese = 1,
/// <summary>
/// 韩语
/// </summary>
[EnumField("韩语")]
Korean =2,
/// <summary>
/// 新媒体
/// </summary>
[EnumField("新媒体")]
NewMedia =3
}
}
......@@ -141,5 +141,10 @@ namespace Edu.Model.Entity.Course
/// 课程等级
/// </summary>
public CourseRateEnum CourseRate { get; set; }
/// <summary>
/// 所属科目
/// </summary>
public CourseSubjectEnum CourseSubject { get; set; }
}
}
\ No newline at end of file
......@@ -295,6 +295,7 @@ namespace Edu.Module.Course
{nameof(RB_Course_ViewModel.IsKCourse),model.IsKCourse },
{nameof(RB_Course_ViewModel.ClassHours),model.ClassHours },
{nameof(RB_Course_ViewModel.CourseRate),model.CourseRate },
{nameof(RB_Course_ViewModel.CourseSubject),model.CourseSubject },
};
flag = courseRepository.Update(fileds, new WhereHelper(nameof(RB_Course_ViewModel.CourseId), model.CourseId));
}
......
......@@ -283,6 +283,7 @@ namespace Edu.WebApi.Controllers.Course
IsKCourse = base.ParmJObj.GetInt("IsKCourse"),
ClassHours = base.ParmJObj.GetDecimal("ClassHours"),
CourseRate = (CourseRateEnum)base.ParmJObj.GetInt("CourseRate"),
CourseSubject = (CourseSubjectEnum)base.ParmJObj.GetInt("CourseSubject"),
};
try
{
......@@ -572,6 +573,17 @@ namespace Edu.WebApi.Controllers.Course
return ApiResult.Success(data: list);
}
/// <summary>
/// 获取课程科目列表
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult GetCourseSubjectList()
{
var list = Common.Plugin.EnumHelper.EnumToList(typeof(CourseSubjectEnum));
return ApiResult.Success(data: list);
}
/// <summary>
/// 删除课程章节
/// </summary>
......
......@@ -431,7 +431,7 @@ namespace Edu.WebApi.Controllers.Course
}
//判断当天是否有已签到数据
//判断当天是否有已反馈数据
var classFeedBackList = classModule.GetClassFeedBackList(new RB_Class_FeedBack_ViewModel
{
Group_Id = base.UserInfo.Group_Id,
......
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