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
2c1162b8
Commit
2c1162b8
authored
Sep 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
20a201c9
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
75 additions
and
25 deletions
+75
-25
questionconfig.js
src/api/question/questionconfig.js
+1
-0
v-cloze.vue
src/components/questiontype/v-cloze.vue
+5
-1
v-fillin.vue
src/components/questiontype/v-fillin.vue
+8
-4
v-judge.vue
src/components/questiontype/v-judge.vue
+7
-2
v-matching.vue
src/components/questiontype/v-matching.vue
+6
-2
v-multiple.vue
src/components/questiontype/v-multiple.vue
+7
-2
v-readingcomprehensio.vue
src/components/questiontype/v-readingcomprehensio.vue
+1
-0
v-single.vue
src/components/questiontype/v-single.vue
+5
-1
v-sortingproblem.vue
src/components/questiontype/v-sortingproblem.vue
+4
-1
examtestreview.vue
src/pages/exam/examtestreview.vue
+24
-10
paperEdit.vue
src/pages/exam/paperEdit.vue
+7
-2
No files found.
src/api/question/questionconfig.js
View file @
2c1162b8
...
...
@@ -158,6 +158,7 @@ export function CreateQuestion(questionKey) {
QuestionKey
:
"single"
,
QuestionName
:
"单选题"
,
SubTitle
:
""
,
//题目内容
SubScore
:
0
,
SubAnwser
:
optionListConfig
()
});
break
;
...
...
src/components/questiontype/v-cloze.vue
View file @
2c1162b8
...
...
@@ -96,7 +96,11 @@
<table
class=
"common_TiTable"
v-if=
"isShowAnswer"
>
<tfoot>
<tr>
<td
colspan=
"2"
>
解析:
<span
v-html=
"data.AnswerParse"
></span></td>
<td
colspan=
"2"
>
<span
class=
"vClozeQuestionBold"
>
解析:
</span>
<span
v-html=
"data.AnswerParse"
></span></td>
</tr>
</tfoot>
</table>
...
...
src/components/questiontype/v-fillin.vue
View file @
2c1162b8
...
...
@@ -74,13 +74,17 @@
</
template
>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<q-input
v-if=
"isEditStudentScore"
standout=
"bg-primary text-white"
v-model=
"data.StudentScore"
label=
"得分:"
maxlength=
"20"
@
input=
"getQuestionScore"
/>
<span
v-else
class=
"v_fillInBold"
>
考生得分:{{data.StudentScore}}
</span>
<q-input
v-if=
"isEditStudentScore"
standout=
"bg-primary text-white"
v-model=
"data.StudentScore"
label=
"得分:"
maxlength=
"20"
@
input=
"getQuestionScore"
/>
<span
v-else
class=
"v_fillInBold"
>
考生得分:{{data.StudentScore}}
</span>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
解析:
<span
v-html=
"data.AnswerParse"
></span></td>
<td
colspan=
"2"
>
<span
class=
"v_fillInBold"
>
解析:
</span>
<span
v-html=
"data.AnswerParse"
></span></td>
</tr>
</tfoot>
</table>
...
...
src/components/questiontype/v-judge.vue
View file @
2c1162b8
...
...
@@ -37,7 +37,8 @@
<td
colspan=
"2"
class=
"v_judgeQuestionBold"
>
正确答案:{{data.Answer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
class=
"v_judgeQuestionBold"
:style=
"{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}"
>
考生答案:{{data.StundetAnswer}}
</td>
<td
colspan=
"2"
class=
"v_judgeQuestionBold"
:style=
"{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
...
...
@@ -47,7 +48,11 @@
</td>
</tr>
<tr>
<td
colspan=
"2"
>
解析:
<span
v-html=
"data.AnswerParse"
></span></td>
<td
colspan=
"2"
>
<span
class=
"v_judgeQuestionBold"
>
解析:
</span>
<span
v-html=
"data.AnswerParse"
></span></td>
</tr>
</tfoot>
</table>
...
...
src/components/questiontype/v-matching.vue
View file @
2c1162b8
...
...
@@ -83,7 +83,8 @@
</tr>
<tfoot>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"3"
class=
"v_matchingQuestionBold"
:style=
"{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}"
>
<td
colspan=
"3"
class=
"v_matchingQuestionBold"
:style=
"{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
...
...
@@ -96,7 +97,10 @@
</tr>
<tr>
<td
colspan=
"3"
>
解析:
<span
v-html=
"data.AnswerParse"
></span>
<span
class=
"v_matchingQuestionBold"
>
解析:
</span>
<span
v-html=
"data.AnswerParse"
></span>
</td>
</tr>
</tfoot>
...
...
src/components/questiontype/v-multiple.vue
View file @
2c1162b8
...
...
@@ -37,7 +37,8 @@
<td
colspan=
"2"
class=
"v_multipleQuestionBold"
>
正确答案:{{data.Answer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
class=
"v_multipleQuestionBold"
:style=
"{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}"
>
考生答案:{{data.StundetAnswer}}
</td>
<td
colspan=
"2"
class=
"v_multipleQuestionBold"
:style=
"{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
...
...
@@ -47,7 +48,11 @@
</td>
</tr>
<tr>
<td
colspan=
"2"
>
解析:
<span
v-html=
"data.AnswerParse"
></span></td>
<td
colspan=
"2"
>
<span
class=
"v_multipleQuestionBold"
>
解析:
</span>
<span
v-html=
"data.AnswerParse"
></span></td>
</tr>
</tfoot>
</table>
...
...
src/components/questiontype/v-readingcomprehensio.vue
View file @
2c1162b8
...
...
@@ -31,6 +31,7 @@
</
style
>
<
template
>
<div
class=
"v_readingComprehensioQuestion"
>
<template
v-if=
"data&&data.QuestionContentObj&&data.QuestionContentObj.length>0"
>
<table
class=
"common_TiTable"
>
<tbody
v-for=
"(item,index) in data.QuestionContentObj"
:key=
"index"
>
...
...
src/components/questiontype/v-single.vue
View file @
2c1162b8
...
...
@@ -48,7 +48,11 @@
</td>
</tr>
<tr>
<td
colspan=
"2"
>
解析:
<span
v-html=
"data.AnswerParse"
></span></td>
<td
colspan=
"2"
>
<span
class=
"v_singleQuestionBold"
>
解析:
</span>
<span
v-html=
"data.AnswerParse"
></span></td>
</tr>
</tfoot>
</table>
...
...
src/components/questiontype/v-sortingproblem.vue
View file @
2c1162b8
...
...
@@ -86,7 +86,10 @@
</tr>
<tr>
<td>
解析:
<span
v-html=
"data.AnswerParse"
></span>
<span
class=
"v_sortingProblemQuestionBold"
>
解析:
</span>
<span
v-html=
"data.AnswerParse"
></span>
</td>
</tr>
</table>
...
...
src/pages/exam/examtestreview.vue
View file @
2c1162b8
...
...
@@ -283,12 +283,15 @@
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
:isEditStudentScore=
"isEditStudentScore"
>
</v-multiple>
<!--填空题、分录题、资料题-->
<v-fillin
v-if=
"dItem.QuestionTypeKey=='fill-in'||dItem.QuestionTypeKey=='entry-problem'|| dItem.QuestionTypeKey=='data-question'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
:isEditStudentScore=
"isEditStudentScore"
>
<v-fillin
v-if=
"dItem.QuestionTypeKey=='fill-in'||dItem.QuestionTypeKey=='entry-problem'|| dItem.QuestionTypeKey=='data-question'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
:isEditStudentScore=
"isEditStudentScore"
>
</v-fillin>
<!--判断题-->
<v-judge
v-if=
"dItem.QuestionTypeKey=='judge'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
:isEditStudentScore=
"isEditStudentScore"
></v-judge>
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
:isEditStudentScore=
"isEditStudentScore"
>
</v-judge>
<!--简答题、名词解释、论述题、计算题、口语题、其它-->
<v-shortanswer
v-if=
"dItem.QuestionTypeKey=='short-answer'
...
...
@@ -305,12 +308,14 @@
</v-matching>
<!--排序题-->
<v-sortingproblem
v-if=
"dItem.QuestionTypeKey=='sorting-problem'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
:isEditStudentScore=
"isEditStudentScore"
>
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
:isEditStudentScore=
"isEditStudentScore"
>
</v-sortingproblem>
<!--完型填空-->
<v-cloze
v-if=
"dItem.QuestionTypeKey=='cloze'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
:isShowScore=
"isShowScore"
:isEditStudentScore=
"isEditStudentScore"
></v-cloze>
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
:isShowScore=
"isShowScore"
:isEditStudentScore=
"isEditStudentScore"
></v-cloze>
<!--阅读理解、听力题-->
<v-readingcomprehensio
...
...
@@ -321,7 +326,8 @@
<!--共用选择题-->
<v-sharingchoose
v-if=
"dItem.QuestionTypeKey=='sharing-choose'"
:questionObj=
"dItem"
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
:isEditStudentScore=
"isEditStudentScore"
>
:isShowAnswer=
"isShowAnswer"
:isShowStudentAnswer=
"isShowStudentAnswer"
@
getScore=
"calcPaper"
:isEditStudentScore=
"isEditStudentScore"
>
</v-sharingchoose>
</div>
</div>
...
...
@@ -335,7 +341,7 @@
import
vFillin
from
'../../components/questiontype/v-fillin'
import
vJudge
from
'../../components/questiontype/v-judge'
import
vShortanswer
from
'../../components/questiontype/v-shortanswer'
import
vMatching
from
'../../components/questiontype/v-matching'
import
vSortingproblem
from
'../../components/questiontype/v-sortingproblem'
import
vCloze
from
'../../components/questiontype/v-cloze'
...
...
@@ -385,7 +391,7 @@
isShowAnswer
:
true
,
//是否显示答案
isShowStudentAnswer
:
true
,
//是否显示学生答案
isShowScore
:
true
,
//是否显示完型填空、阅读理解、听力,小题分数
isEditStudentScore
:
true
,
//是否可以编辑学生得分
isEditStudentScore
:
true
,
//是否可以编辑学生得分
studentScore
:
0
,
//学生总得分
examScore
:
0
,
//总分,
examNum
:
0
,
//总题量
...
...
@@ -470,12 +476,20 @@
var
clozeScore
=
0
;
if
(
y
.
AnswerList
&&
y
.
AnswerList
.
length
>
0
)
{
y
.
AnswerList
.
forEach
(
qItem
=>
{
clozeScore
+=
Number
(
qItem
.
StudentScore
);
var
tempScore
=
0
;
if
(
qItem
.
StudentScore
&&
qItem
.
StudentScore
!=
''
)
{
tempScore
=
qItem
.
StudentScore
;
}
clozeScore
+=
Number
(
tempScore
);
})
}
this
.
studentScore
+=
Number
(
clozeScore
)
}
else
{
this
.
studentScore
+=
Number
(
y
.
StudentScore
)
var
tempScore
=
0
;
if
(
y
.
StudentScore
&&
y
.
StudentScore
!=
''
)
{
tempScore
=
y
.
StudentScore
;
}
this
.
studentScore
+=
Number
(
tempScore
)
}
})
}
...
...
src/pages/exam/paperEdit.vue
View file @
2c1162b8
...
...
@@ -391,8 +391,9 @@
<multiple
v-if=
"ChooseItem.QuestionTypeKey=='multiple'"
:questionData=
"ChooseItem.QuestionContentObj"
@
getChild=
"getChildData"
:setOption=
"ChooseItem"
></multiple>
<!--填空题、分录题、资料题-->
<fill-in
v-if=
"ChooseItem.QuestionTypeKey=='fill-in'||ChooseItem.QuestionTypeKey=='entry-problem'|| ChooseItem.QuestionTypeKey=='data-question'"
:questionData=
"ChooseItem.QuestionContentObj"
@
getChild=
"getChildData"
:setOption=
"ChooseItem"
></fill-in>
<fill-in
v-if=
"ChooseItem.QuestionTypeKey=='fill-in'||ChooseItem.QuestionTypeKey=='entry-problem'|| ChooseItem.QuestionTypeKey=='data-question'"
:questionData=
"ChooseItem.QuestionContentObj"
@
getChild=
"getChildData"
:setOption=
"ChooseItem"
></fill-in>
<!--判断题-->
<judge
v-if=
"ChooseItem.QuestionTypeKey=='judge'"
:questionData=
"ChooseItem.QuestionContentObj"
@
getChild=
"getChildData"
:setOption=
"ChooseItem"
></judge>
...
...
@@ -827,6 +828,7 @@
questionObj
.
QuestionContent
=
JSON
.
stringify
(
obj
);
}
var
tempArray
=
[];
questionObj
.
Score
=
0
;
tempArray
.
push
(
questionObj
);
this
.
AddQuestion
(
tempArray
);
},
...
...
@@ -998,6 +1000,9 @@
this
.
ComCheckIndex
=
index2
;
this
.
ChooseItem
=
questionItem
;
this
.
ChooseItem
.
QuestionContentObj
=
questionItem
.
QuestionContentObj
;
if
(
this
.
ChooseItem
.
Score
==
null
||
this
.
ChooseItem
.
Score
==
''
)
{
this
.
ChooseItem
.
Score
=
0
;
}
if
(
questionItem
.
QuestionTypeKey
!=
'sharing-choose'
&&
this
.
$refs
.
UE_Title
)
{
this
.
$refs
.
UE_Title
.
reloadNewValue
();
}
...
...
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