Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
cc4c188f
Commit
cc4c188f
authored
Jan 14, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
dfef7c4b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
RB_Question_ViewModel.cs
Edu.Model/ViewModel/Question/RB_Question_ViewModel.cs
+5
-0
QuestionModule.cs
Edu.Module.Question/QuestionModule.cs
+11
-1
QuestionController.cs
Edu.WebApi/Controllers/Course/QuestionController.cs
+1
-1
No files found.
Edu.Model/ViewModel/Question/RB_Question_ViewModel.cs
View file @
cc4c188f
using
Edu.Common
;
using
Edu.Common
;
using
Edu.Common.Plugin
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
Edu.Model.ViewModel.Question
namespace
Edu.Model.ViewModel.Question
...
@@ -64,5 +65,9 @@ namespace Edu.Model.ViewModel.Question
...
@@ -64,5 +65,9 @@ namespace Edu.Model.ViewModel.Question
/// </summary>
/// </summary>
public
string
PointName
{
get
;
set
;
}
public
string
PointName
{
get
;
set
;
}
/// <summary>
/// 难易程度
/// </summary>
public
string
DifficultyTypeStr
{
get
{
return
this
.
DifficultyType
.
ToName
();
}
}
}
}
}
}
\ No newline at end of file
Edu.Module.Question/QuestionModule.cs
View file @
cc4c188f
...
@@ -153,7 +153,7 @@ namespace Edu.Module.Question
...
@@ -153,7 +153,7 @@ namespace Edu.Module.Question
if
(
extModel
!=
null
)
if
(
extModel
!=
null
)
{
{
extModel
.
QuestionContentObj
=
analysisQuestion
.
ParsingQuestion
(
extModel
.
QuestionTypeKey
,
extModel
.
QuestionContent
);
extModel
.
QuestionContentObj
=
ParsingQuestionModule
(
extModel
.
QuestionTypeKey
,
extModel
.
QuestionContent
);
if
(!
string
.
IsNullOrEmpty
(
extModel
.
Knowledge
))
if
(!
string
.
IsNullOrEmpty
(
extModel
.
Knowledge
))
{
{
extModel
.
QuestionPointList
=
GetPointListModule
(
new
RB_Question_Point_ViewModel
()
{
QPointIds
=
extModel
.
Knowledge
});
extModel
.
QuestionPointList
=
GetPointListModule
(
new
RB_Question_Point_ViewModel
()
{
QPointIds
=
extModel
.
Knowledge
});
...
@@ -162,6 +162,16 @@ namespace Edu.Module.Question
...
@@ -162,6 +162,16 @@ namespace Edu.Module.Question
return
extModel
;
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>
/// <summary>
...
...
Edu.WebApi/Controllers/Course/QuestionController.cs
View file @
cc4c188f
...
@@ -822,7 +822,7 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -822,7 +822,7 @@ namespace Edu.WebApi.Controllers.Course
break
;
break
;
}
}
model
.
QuestionContentObj
=
questionModule
.
ParsingQuestionModule
(
model
.
QuestionTypeKey
,
model
.
QuestionContent
);
return
model
;
return
model
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment