Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
7409a988
Commit
7409a988
authored
Sep 06, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
85ed244e
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
159 additions
and
18 deletions
+159
-18
v-cloze.vue
src/components/questiontype/v-cloze.vue
+18
-1
v-entryproblem.vue
src/components/questiontype/v-entryproblem.vue
+13
-0
v-fillin.vue
src/components/questiontype/v-fillin.vue
+13
-0
v-judge.vue
src/components/questiontype/v-judge.vue
+13
-0
v-matching.vue
src/components/questiontype/v-matching.vue
+17
-2
v-multiple.vue
src/components/questiontype/v-multiple.vue
+12
-1
v-sharingchoose.vue
src/components/questiontype/v-sharingchoose.vue
+17
-0
v-shortanswer.vue
src/components/questiontype/v-shortanswer.vue
+12
-0
v-single.vue
src/components/questiontype/v-single.vue
+11
-1
v-sortingproblem.vue
src/components/questiontype/v-sortingproblem.vue
+18
-0
examtestreview.vue
src/pages/exam/examtestreview.vue
+15
-13
No files found.
src/components/questiontype/v-cloze.vue
View file @
7409a988
...
...
@@ -57,7 +57,6 @@
{{
subItem
.
Name
}}
</div>
</
template
>
</td>
<td>
<div
class=
"InpDIV"
style=
"border:0;margin-top:-2px;"
v-html=
"subItem.Content"
>
...
...
@@ -71,6 +70,19 @@
<tr>
<td
colspan=
"2"
>
答案:{{data.Answer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<span
style=
"font-weight:bold;"
>
考试答案:
</span>
<span>
{{data.StundetAnswer}}
</span>
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
解析:
<span
v-html=
"data.AnswerParse"
></span></td>
</tr>
...
...
@@ -95,6 +107,11 @@
type
:
Boolean
,
default
:
false
,
},
//是否显示学生答案
isShowStudentAnswer
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
...
...
src/components/questiontype/v-entryproblem.vue
View file @
7409a988
...
...
@@ -40,6 +40,14 @@
</tr>
</tbody>
<tfoot
v-if=
"isShowAnswer"
>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
考生答案:
{{
data
.
StundetAnswer
}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
解析:
<span
v-html=
"data.AnswerParse"
></span></td>
</tr>
...
...
@@ -63,6 +71,11 @@
type
:
Boolean
,
default
:
false
,
},
//是否显示学生答案
isShowStudentAnswer
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
...
...
src/components/questiontype/v-fillin.vue
View file @
7409a988
...
...
@@ -40,6 +40,14 @@
</tr>
</tbody>
<tfoot
v-if=
"isShowAnswer"
>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
考生答案:
{{
data
.
StundetAnswer
}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
解析:
<span
v-html=
"data.AnswerParse"
></span></td>
</tr>
...
...
@@ -62,6 +70,11 @@
type
:
Boolean
,
default
:
false
,
},
//是否显示学生答案
isShowStudentAnswer
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
...
...
src/components/questiontype/v-judge.vue
View file @
7409a988
...
...
@@ -33,6 +33,14 @@
<tr>
<td
colspan=
"2"
>
正确答案:{{data.Answer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
解析:
<span
v-html=
"data.AnswerParse"
></span></td>
</tr>
...
...
@@ -56,6 +64,11 @@
type
:
Boolean
,
default
:
false
,
},
//是否显示学生答案
isShowStudentAnswer
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
...
...
src/components/questiontype/v-matching.vue
View file @
7409a988
...
...
@@ -46,7 +46,7 @@
</tr>
</table>
<table
v-if=
"isOperate&&data&&data.QuestionContentObj&&data.QuestionContentObj.length>2"
style=
"padding-left:13px;"
>
<tr
v-for=
"(item,index) in data.QuestionContentObj[0]"
>
<tr
v-for=
"(item,index) in data.QuestionContentObj[0]"
:key=
"index"
>
<td
style=
"width:30px;"
>
{{
item
.
Name
}}
</td>
...
...
@@ -66,7 +66,7 @@
<span
class=
"team_tit"
v-if=
"isShowAnswer"
>
答案
</span>
<table
v-if=
"isShowAnswer&&data&&data.QuestionContentObj&&data.QuestionContentObj.length>2"
style=
"padding-left:13px;"
>
<tr
v-for=
"(item,index) in data.QuestionContentObj[0]"
>
<tr
v-for=
"(item,index) in data.QuestionContentObj[0]"
:key=
"index"
>
<td
style=
"width:30px;"
>
{{item.Name}}
</td>
...
...
@@ -78,6 +78,16 @@
</td>
</tr>
<tfoot>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"3"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"3"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
</td>
</tr>
<tr>
<td
colspan=
"3"
>
解析:
<span
v-html=
"data.AnswerParse"
></span>
...
...
@@ -103,6 +113,11 @@
type
:
Boolean
,
default
:
false
,
},
//是否显示学生答案
isShowStudentAnswer
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
...
...
src/components/questiontype/v-multiple.vue
View file @
7409a988
...
...
@@ -3,6 +3,7 @@
.v_multipleQuestion
{
width
:
100%
;
}
</
style
>
<
template
>
<div
class=
"v_multipleQuestion"
>
...
...
@@ -31,9 +32,14 @@
<tr>
<td
colspan=
"2"
>
正确答案:{{data.Answer}}
</td>
</tr>
<tr
v-if=
"
data.Stunde
tAnswer"
>
<tr
v-if=
"
isShowStuden
tAnswer"
>
<td
colspan=
"2"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
解析:
<span
v-html=
"data.AnswerParse"
></span></td>
</tr>
...
...
@@ -57,6 +63,11 @@
type
:
Boolean
,
default
:
false
,
},
//是否显示学生答案
isShowStudentAnswer
:{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
...
...
src/components/questiontype/v-sharingchoose.vue
View file @
7409a988
...
...
@@ -61,6 +61,18 @@
</td>
</tr>
</tbody>
<tfoot
v-if=
"isShowStudentAnswer"
>
<tr>
<td
colspan=
"2"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr>
<td
colspan=
"2"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
</td>
</tr>
</tfoot>
</table>
</div>
</template>
...
...
@@ -80,6 +92,11 @@
type
:
Boolean
,
default
:
false
,
},
//是否显示学生答案
isShowStudentAnswer
:
{
type
:
Boolean
,
default
:
false
}
},
components
:
{
...
...
src/components/questiontype/v-shortanswer.vue
View file @
7409a988
...
...
@@ -15,6 +15,13 @@
<div
style=
"display:flex;"
v-if=
"isOperate"
>
<el-input
v-model=
"data.Answer"
placeholder=
"请填写问题答案"
>
</el-input>
</div>
<div
v-if=
"isShowStudentAnswer"
style=
"display:flex;"
>
<div
style=
"font-weight:bold;"
>
考生答案:
</div>
<div
v-html=
"data.StundetAnswer"
></div>
</div>
<div
v-if=
"isShowStudentAnswer"
style=
"display:flex;"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
</div>
<div
style=
"display:flex;"
v-if=
"isShowAnswer"
>
<div
style=
"font-weight:bold;"
>
解析:
</div>
<div
v-html=
"data.AnswerParse"
></div>
...
...
@@ -37,6 +44,11 @@
type
:
Boolean
,
default
:
false
,
},
//是否显示学生答案
isShowStudentAnswer
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
...
...
src/components/questiontype/v-single.vue
View file @
7409a988
...
...
@@ -32,9 +32,14 @@
<tr>
<td
colspan=
"2"
>
正确答案:{{data.Answer}}
</td>
</tr>
<tr
v-if=
"
data.Stunde
tAnswer"
>
<tr
v-if=
"
isShowStuden
tAnswer"
>
<td
colspan=
"2"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
解析:
<span
v-html=
"data.AnswerParse"
></span></td>
</tr>
...
...
@@ -58,6 +63,11 @@
type
:
Boolean
,
default
:
false
,
},
//是否显示学生答案
isShowStudentAnswer
:{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
...
...
src/components/questiontype/v-sortingproblem.vue
View file @
7409a988
...
...
@@ -71,6 +71,19 @@
</span>
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td>
<span
style=
"font-weight:bold;"
>
考试答案:
</span>
<span>
{{data.StundetAnswer}}
</span>
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
</td>
</tr>
<tr>
<td>
解析:
<span
v-html=
"data.AnswerParse"
></span>
...
...
@@ -95,6 +108,11 @@
type
:
Boolean
,
default
:
false
,
},
//是否显示学生答案
isShowStudentAnswer
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
...
...
src/pages/exam/examtestreview.vue
View file @
7409a988
...
...
@@ -272,49 +272,51 @@
</span>
<!--单选题-->
<v-single
v-if=
"dItem.QuestionTypeKey=='single'||dItem.QuestionTypeKey=='single-number'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:is
Operate=
"isOperate
"
>
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:is
ShowStudentAnswer=
"isShowStudentAnswer
"
>
</v-single>
<!--多选题-->
<v-multiple
v-if=
"dItem.QuestionTypeKey=='multiple'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:is
Operate=
"isOperate
"
>
:is
ShowStudentAnswer=
"isShowStudentAnswer
"
>
</v-multiple>
<!--填空题-->
<v-fillin
v-if=
"dItem.QuestionTypeKey=='fill-in'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:is
Operate=
"isOperate
"
>
:is
ShowStudentAnswer=
"isShowStudentAnswer
"
>
</v-fillin>
<!--判断题-->
<v-judge
v-if=
"dItem.QuestionTypeKey=='judge'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:is
Operate=
"isOperate
"
></v-judge>
:is
ShowStudentAnswer=
"isShowStudentAnswer
"
></v-judge>
<!--简答题、名词解释、论述题、计算题、口语题、其它-->
<v-shortanswer
v-if=
"dItem.QuestionTypeKey=='short-answer'||dItem.QuestionTypeKey=='noun-explanation'||dItem.QuestionTypeKey=='essay-question'
||dItem.QuestionTypeKey=='calculation' || dItem.QuestionTypeKey=='spoken'|| dItem.QuestionTypeKey=='other'
"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isOperate=
"isOperate"
>
</v-shortanswer>
"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
>
</v-shortanswer>
<!--分录题、资料题-->
<v-entryproblem
v-if=
"dItem.QuestionTypeKey=='entry-problem'|| dItem.QuestionTypeKey=='data-question'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:is
Operate=
"isOperate
"
>
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:is
ShowStudentAnswer=
"isShowStudentAnswer
"
>
</v-entryproblem>
<!--连线题-->
<v-matching
v-if=
"dItem.QuestionTypeKey=='matching'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:is
Operate=
"isOperate
"
>
:is
ShowStudentAnswer=
"isShowStudentAnswer
"
>
</v-matching>
<!--排序题-->
<v-sortingproblem
v-if=
"dItem.QuestionTypeKey=='sorting-problem'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:is
Operate=
"isOperate
"
></v-sortingproblem>
:isShowAnswer=
"isShowAnswer"
:is
ShowStudentAnswer=
"isShowStudentAnswer
"
></v-sortingproblem>
<!--完型填空-->
<v-cloze
v-if=
"dItem.QuestionTypeKey=='cloze'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:is
Operate=
"isOperate"
>
>
</v-cloze>
:is
ShowStudentAnswer=
"isShowStudentAnswer"
></v-cloze>
<!--阅读理解、听力题-->
<v-readingcomprehensio
v-if=
"dItem.QuestionTypeKey=='reading-comprehensio'||dItem.QuestionTypeKey=='listening'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isOperate=
"isOperate"
></v-readingcomprehensio>
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
>
</v-readingcomprehensio>
<!--共用选择题-->
<v-sharingchoose
v-if=
"dItem.QuestionTypeKey=='sharing-choose'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:is
Operate=
"isOperate
"
>
:isShowAnswer=
"isShowAnswer"
:is
ShowStudentAnswer=
"isShowStudentAnswer
"
>
</v-sharingchoose>
</div>
</div>
...
...
@@ -364,7 +366,7 @@
Id
:
0
,
GuestId
:
0
,
PaperId
:
0
,
isShowAnswer
:
true
,
isShowAnswer
:
true
,
},
//试卷对象
DataObj
:
{
...
...
@@ -376,7 +378,7 @@
},
PaperConfig
:
{},
//试卷配置
isShowAnswer
:
true
,
//是否显示答案
is
Operate
:
false
,
//是否可操作
is
ShowStudentAnswer
:
true
,
//是否显示学生答案
examScore
:
0
,
//总分,
examNum
:
0
,
//总题量
}
...
...
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