Commit cc4c188f authored by 黄奎's avatar 黄奎

页面修改

parent dfef7c4b
using Edu.Common;
using Edu.Common.Plugin;
using System.Collections.Generic;
namespace Edu.Model.ViewModel.Question
......@@ -64,5 +65,9 @@ namespace Edu.Model.ViewModel.Question
/// </summary>
public string PointName { get; set; }
/// <summary>
/// 难易程度
/// </summary>
public string DifficultyTypeStr { get { return this.DifficultyType.ToName(); } }
}
}
\ No newline at end of file
......@@ -153,7 +153,7 @@ namespace Edu.Module.Question
if (extModel != null)
{
extModel.QuestionContentObj = analysisQuestion.ParsingQuestion(extModel.QuestionTypeKey, extModel.QuestionContent);
extModel.QuestionContentObj = ParsingQuestionModule(extModel.QuestionTypeKey, extModel.QuestionContent);
if (!string.IsNullOrEmpty(extModel.Knowledge))
{
extModel.QuestionPointList = GetPointListModule(new RB_Question_Point_ViewModel() { QPointIds = extModel.Knowledge });
......@@ -162,6 +162,16 @@ namespace Edu.Module.Question
return extModel;
}
/// <summary>
/// 获取问题选项相关信息
/// </summary>
/// <param name="questionKey"></param>
/// <param name="questionContent"></param>
/// <returns></returns>
public object ParsingQuestionModule(string questionKey,string questionContent)
{
return analysisQuestion.ParsingQuestion(questionKey, questionContent);
}
/// <summary>
......
......@@ -822,7 +822,7 @@ namespace Edu.WebApi.Controllers.Course
break;
}
model.QuestionContentObj = questionModule.ParsingQuestionModule(model.QuestionTypeKey, model.QuestionContent);
return model;
}
......
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