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
c44eac03
Commit
c44eac03
authored
Sep 07, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8f9e02e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
16 deletions
+22
-16
v-single.vue
src/components/questiontype/v-single.vue
+5
-1
examtestreview.vue
src/pages/exam/examtestreview.vue
+17
-15
No files found.
src/components/questiontype/v-single.vue
View file @
c44eac03
...
...
@@ -37,7 +37,7 @@
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
@
input=
"getQuestionScore"
/>
</td>
</tr>
<tr>
...
...
@@ -85,6 +85,10 @@
item
.
IsAnswer
=
true
;
this
.
data
.
Answer
=
item
.
Name
;
},
//调用父组件计算学生分数
getQuestionScore
()
{
this
.
$emit
(
'getScore'
);
},
},
watch
:
{
isShowAnswer
:
{
...
...
src/pages/exam/examtestreview.vue
View file @
c44eac03
...
...
@@ -252,13 +252,13 @@
{{
DataObj
.
PaperName
}}
<br
/>
题量:
{{
examNum
}}
满分:
{{
examScore
}}
<br
/>
学生总得分:
{{
studentScore
}}
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"DataObj.StuComment"
class=
"col-6 q-pb-lg q-pr-lg"
label=
"评语"
/>
</div>
</div>
<div
style=
"width:20%;text-align:right;"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"submitExamPaper()"
label=
"提交
考试
"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"submitExamPaper()"
label=
"提交
阅卷
"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"goBack()"
label=
"返回"
/>
</div>
</div>
...
...
@@ -275,51 +275,51 @@
</span>
<!--单选题-->
<v-single
v-if=
"dItem.QuestionTypeKey=='single'||dItem.QuestionTypeKey=='single-number'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
>
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
>
</v-single>
<!--多选题-->
<v-multiple
v-if=
"dItem.QuestionTypeKey=='multiple'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
>
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
>
</v-multiple>
<!--填空题-->
<v-fillin
v-if=
"dItem.QuestionTypeKey=='fill-in'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
>
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
>
</v-fillin>
<!--判断题-->
<v-judge
v-if=
"dItem.QuestionTypeKey=='judge'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
></v-judge>
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
></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"
:isShowStudentAnswer=
"isShowStudentAnswer"
>
</v-shortanswer>
"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
>
</v-shortanswer
>
<!--分录题、资料题-->
<v-entryproblem
v-if=
"dItem.QuestionTypeKey=='entry-problem'|| dItem.QuestionTypeKey=='data-question'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
>
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
>
</v-entryproblem>
<!--连线题-->
<v-matching
v-if=
"dItem.QuestionTypeKey=='matching'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
>
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
>
</v-matching>
<!--排序题-->
<v-sortingproblem
v-if=
"dItem.QuestionTypeKey=='sorting-problem'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
></v-sortingproblem>
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
></v-sortingproblem>
<!--完型填空-->
<v-cloze
v-if=
"dItem.QuestionTypeKey=='cloze'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
></v-cloze>
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
></v-cloze>
<!--阅读理解、听力题-->
<v-readingcomprehensio
v-if=
"dItem.QuestionTypeKey=='reading-comprehensio'||dItem.QuestionTypeKey=='listening'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
>
</v-readingcomprehensio>
</v-readingcomprehensio
@getScore="calcPaper"
>
<!--共用选择题-->
<v-sharingchoose
v-if=
"dItem.QuestionTypeKey=='sharing-choose'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
>
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
>
</v-sharingchoose>
</div>
</div>
...
...
@@ -383,6 +383,7 @@
PaperConfig
:
{},
//试卷配置
isShowAnswer
:
true
,
//是否显示答案
isShowStudentAnswer
:
true
,
//是否显示学生答案
studentScore
:
0
,
//学生总得分
examScore
:
0
,
//总分,
examNum
:
0
,
//总题量
}
...
...
@@ -437,7 +438,6 @@
GetPaperInfo
()
{
queryPaperDetails
(
this
.
msg
).
then
(
res
=>
{
var
tempData
=
res
.
Data
;
console
.
log
(
"tempData"
,
tempData
);
if
(
res
.
Code
==
1
)
{
this
.
DataObj
.
PaperId
=
tempData
.
Paper
.
PaperId
;
this
.
DataObj
.
PaperName
=
tempData
.
Paper
.
PaperName
;
...
...
@@ -455,6 +455,7 @@
calcPaper
()
{
this
.
examScore
=
0
;
this
.
examNum
=
0
;
this
.
studentScore
=
0
;
if
(
this
.
DataObj
&&
this
.
DataObj
.
GroupList
)
{
this
.
DataObj
.
GroupList
.
forEach
(
x
=>
{
if
(
x
.
DetailsList
&&
x
.
DetailsList
.
length
>
0
)
{
...
...
@@ -462,6 +463,7 @@
x
.
DetailsList
.
forEach
(
y
=>
{
if
(
y
.
Score
)
{
this
.
examScore
+=
Number
(
y
.
Score
);
this
.
studentScore
+=
Number
(
y
.
StundetScore
)
}
})
}
...
...
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