Commit feb44e65 authored by 黄奎's avatar 黄奎

页面修改

parent a5afba0e
......@@ -870,6 +870,13 @@ namespace Edu.Module.Exam
{
List<ExamFolderTreeModel> list = new List<ExamFolderTreeModel>();
var dataList = examination_PaperRepository.GetExaminationPaperListRepository(query);
ExamFolderTreeModel root = new ExamFolderTreeModel()
{
PaperId = 0,
ParentId = 0,
PaperName = "根目录",
ChildList = new List<ExamFolderTreeModel>()
};
if (dataList != null && dataList.Count > 0)
{
var rootList = dataList?.Where(qitem => qitem.ParentId == 0)?.ToList();
......@@ -883,9 +890,10 @@ namespace Edu.Module.Exam
ChildList = new List<ExamFolderTreeModel>()
};
fTreeModel.ChildList = GetFolderChild(dataList, rItem.PaperId);
list.Add(fTreeModel);
root.ChildList.Add(fTreeModel);
}
}
list.Add(root);
return list;
}
......
......@@ -499,6 +499,10 @@ namespace Edu.WebApi.Controllers.Exam
IsHalfScore = base.ParmJObj.GetInt("IsHalfScore"),
PublishPic=base.ParmJObj.GetStringValue("PublishPic"),
};
if (model.ExamStartTime > model.ExamEndTime)
{
return ApiResult.ParamIsNull("考试开始时间不能大于结束时间!");
}
var studentStr = base.ParmJObj.GetStringValue("StudentList");
if (!string.IsNullOrEmpty(studentStr))
{
......
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