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
7bf1e583
Commit
7bf1e583
authored
Sep 18, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
024b61da
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
78 additions
and
46 deletions
+78
-46
v-multiple.vue
src/components/questiontype/v-multiple.vue
+17
-7
v-readingcomprehensio.vue
src/components/questiontype/v-readingcomprehensio.vue
+4
-3
v-single.vue
src/components/questiontype/v-single.vue
+9
-5
examtest.vue
src/pages/exam/examtest.vue
+2
-2
examtestinfo.vue
src/pages/exam/examtestinfo.vue
+16
-8
paperEdit.vue
src/pages/exam/paperEdit.vue
+30
-21
No files found.
src/components/questiontype/v-multiple.vue
View file @
7bf1e583
...
...
@@ -6,12 +6,19 @@
.v_multipleQuestionBold
{
font-weight
:
bold
;
height
:
40px
;
}
.mutiTable
tfoot
:before
{
content
:
"-"
;
display
:
block
;
line-height
:
1em
;
color
:
transparent
;
}
</
style
>
<
template
>
<div
class=
"v_multipleQuestion"
>
<table
v-if=
"data&&data.QuestionContentObj&&data.QuestionContentObj.length>0"
class=
"common_TiTable"
>
<table
v-if=
"data&&data.QuestionContentObj&&data.QuestionContentObj.length>0"
class=
"common_TiTable
mutiTable
"
>
<tbody
v-for=
"(item,index) in data.QuestionContentObj"
:key=
"index"
>
<tr>
<td
style=
"width:40px;text-align:center;"
>
...
...
@@ -27,7 +34,7 @@
</div>
</
template
>
</td>
<td>
<td
style=
"height:40px;"
>
<div
class=
"InpDIV"
style=
"border:0;"
v-html=
"item.Content"
></div>
</td>
</tr>
...
...
@@ -41,7 +48,7 @@
:style=
"{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<td
colspan=
"2"
style=
"height:40px;"
>
<q-input
v-if=
"isEditStudentScore"
standout=
"bg-primary text-white"
v-model=
"data.StudentScore"
label=
"得分:"
maxlength=
"20"
@
input=
"getQuestionScore"
/>
<span
v-else
class=
"v_multipleQuestionBold"
>
考生得分:{{data.StudentScore}}
</span>
...
...
@@ -49,10 +56,13 @@
</tr>
<tr>
<td
colspan=
"2"
>
<span
class=
"v_multipleQuestionBold"
>
解析:
</span>
<span
v-html=
"data.AnswerParse"
></span></td>
<div
style=
"display:flex;"
>
<span
class=
"v_multipleQuestionBold"
>
解析:
</span>
<span
v-html=
"data.AnswerParse"
></span>
</div>
</td>
</tr>
</tfoot>
</table>
...
...
src/components/questiontype/v-readingcomprehensio.vue
View file @
7bf1e583
...
...
@@ -26,6 +26,7 @@
.v_readingComprehensioQuestionBold
{
font-weight
:
bold
;
height
:
40px
;
}
</
style
>
...
...
@@ -164,17 +165,17 @@
</tr>
</
template
>
<tr
v-if=
"isShowAnswer"
>
<td
colspan=
"2"
class=
"v_readingComprehensioQuestionBold"
>
<td
colspan=
"2"
style=
"height:40px"
class=
"v_readingComprehensioQuestionBold"
>
答案: {{data.QuestionAnswerList[index].SubAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
class=
"v_readingComprehensioQuestionBold"
:style=
"{color:data.QuestionAnswerList[index].SubAnswer ==data.AnswerList[index].SubAnswer?'#67c23a':'red'}"
>
<td
colspan=
"2"
style=
"height:40px"
class=
"v_readingComprehensioQuestionBold"
:style=
"{color:data.QuestionAnswerList[index].SubAnswer ==data.AnswerList[index].SubAnswer?'#67c23a':'red'}"
>
学生答案: {{data.AnswerList[index].SubAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<td
colspan=
"2"
style=
"height:40px"
>
<q-input
v-if=
"isEditStudentScore"
standout=
"bg-primary text-white"
v-model=
"data.AnswerList[index].StudentScore"
label=
"得分:"
maxlength=
"20"
@
input=
"getQuestionScore"
/>
<span
v-else
class=
"v_readingComprehensioQuestionBold"
>
考生得分:{{data.AnswerList[index].StudentScore}}
</span>
...
...
src/components/questiontype/v-single.vue
View file @
7bf1e583
...
...
@@ -5,6 +5,7 @@
.v_singleQuestionBold
{
font-weight
:
bold
;
height
:
40px
;
}
</
style
>
...
...
@@ -41,7 +42,7 @@
:style=
"{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<td
colspan=
"2"
style=
"height:40px;"
>
<q-input
v-if=
"isEditStudentScore"
standout=
"bg-primary text-white"
v-model=
"data.StudentScore"
label=
"得分:"
maxlength=
"20"
@
input=
"getQuestionScore"
/>
<span
v-else
class=
"v_singleQuestionBold"
>
考生得分:{{data.StudentScore}}
</span>
...
...
@@ -49,10 +50,13 @@
</tr>
<tr>
<td
colspan=
"2"
>
<span
class=
"v_singleQuestionBold"
>
解析:
</span>
<span
v-html=
"data.AnswerParse"
></span></td>
<div
style=
"display:flex;"
>
<span
class=
"v_singleQuestionBold"
>
解析:
</span>
<span
v-html=
"data.AnswerParse"
></span>
</div>
</td>
</tr>
</tfoot>
</table>
...
...
src/pages/exam/examtest.vue
View file @
7bf1e583
...
...
@@ -241,7 +241,7 @@
.examPaperInfo_Top
.vClozeQuestion
.clozeTest_question_tit
{
margin
:
15px
0
;
}
.Exam_PaperName
{
.Exam_PaperName
V2
{
font-size
:
20px
;
font-weight
:
bold
;
margin-bottom
:
5px
;
...
...
@@ -252,7 +252,7 @@
<div
class=
"examPaperInfo_Top"
>
<div>
<div>
<div
class=
"Exam_PaperName"
>
{{
DataObj
.
PaperName
}}
</div>
<div
class=
"Exam_PaperName
V2
"
>
{{
DataObj
.
PaperName
}}
</div>
<div>
题量:
{{
examNum
}}
满分:
{{
examScore
}}
</div>
</div>
</div>
...
...
src/pages/exam/examtestinfo.vue
View file @
7bf1e583
<
style
>
.examPaperInfo_Top
{
height
:
83px
;
min-
height
:
83px
;
border-bottom
:
1px
solid
#d9d9d9
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin
:
0
100px
;
padding-bottom
:
15px
;
}
.Exam-main
{
...
...
@@ -241,7 +241,14 @@
.examPaperInfo_Top
.vClozeQuestion
.clozeTest_question_tit
{
margin
:
15px
0
;
}
.Exam_PaperNameV2
{
font-size
:
20px
;
font-weight
:
bold
;
margin-bottom
:
5px
;
}
.pGNameDiv
:first-child
{
margin-top
:
0
;
}
</
style
>
<!--阅卷-->
<
template
>
...
...
@@ -249,14 +256,15 @@
<div
class=
"examPaperInfo_Top"
>
<div>
<div>
{{
DataObj
.
PaperName
}}
<br
/>
题量:
{{
examNum
}}
满分:
{{
examScore
}}
<br
/>
学生总得分:
{{
studentScore
}}
<br
/>
<div
class=
"Exam_PaperNameV2"
>
{{
DataObj
.
PaperName
}}
</div>
<div>
<span>
题量:
{{
examNum
}}
满分:
{{
examScore
}}
</span>
<span
style=
"margin-left:30px;"
>
学生总得分:
{{
studentScore
}}
</span>
</div>
评语:
{{
DataObj
.
StuComment
}}
<br/>
</div>
</div>
<div
style=
"width:20%;text-align:right;"
>
<div
style=
"width:20%;text-align:right;
flex-shrink:0;
"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"goBack()"
label=
"返回"
/>
</div>
</div>
...
...
src/pages/exam/paperEdit.vue
View file @
7bf1e583
...
...
@@ -21,7 +21,7 @@
border-radius
:
3px
;
border
:
1px
solid
#d9d9d9
;
background
:
#f0f0f0
;
padding-top
:
2
0px
;
padding-top
:
1
0px
;
padding-bottom
:
0px
;
}
...
...
@@ -41,7 +41,7 @@
.Left-ptitel
{
font-size
:
14px
;
color
:
#777
;
padding-left
:
18
px
;
padding-left
:
5
px
;
}
.Left-ptitel
span
{
...
...
@@ -124,7 +124,7 @@
background
:
#fdfdfd
;
font-size
:
14px
;
line-height
:
40px
;
padding-left
:
10px
;
/* padding-left: 10px; */
}
.List-bt
i
{
...
...
@@ -251,6 +251,7 @@
overflow
:
hidden
;
text-overflow
:
ellipsis
;
margin-right
:
5px
;
cursor
:
pointer
;
}
.paperEdit_Top
{
...
...
@@ -263,7 +264,9 @@
color
:
#555
;
font-weight
:
normal
;
}
.checkedExam
{
background
:
#9cf
!important
;
}
</
style
>
<
template
>
<div
class=
"examPaper page-body"
>
...
...
@@ -294,27 +297,31 @@
</div>
<div
class=
"Exam-main"
>
<div
class=
"Exam-left f1"
>
<p
class=
"Left-ptitel"
>
<span>
题量:
<i>
{{
examNum
}}
</i></span>
<span>
总分:
<i>
{{
examScore
.
toFixed
(
2
)
}}
</i></span>
<q-btn-dropdown
color=
"primary"
label=
"添加分类"
>
<q-list>
<q-item
clickable
v-close-popup
@
click=
"onCategoryItemClick(item)"
v-for=
"(item,index) in newQuestionCategoryList"
:key=
"index"
>
<q-item-section>
<q-item-label>
{{
item
.
Name
}}
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</p>
<div
style=
"display:flex;justify-content:space-between;align-items:center;padding:0 10px 10px 5px"
>
<div
class=
"Left-ptitel"
>
<span>
题量:
<i>
{{
examNum
}}
</i></span>
<span>
总分:
<i>
{{
examScore
.
toFixed
(
2
)
}}
</i></span>
</div>
<div>
<q-btn-dropdown
color=
"primary"
label=
"添加分类"
size=
"sm"
>
<q-list>
<q-item
clickable
v-close-popup
@
click=
"onCategoryItemClick(item)"
v-for=
"(item,index) in newQuestionCategoryList"
:key=
"index"
>
<q-item-section>
<q-item-label>
{{
item
.
Name
}}
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div>
</div>
<div
class=
"Left-list"
>
<template
v-if=
"DataObj&&DataObj.GroupList&&DataObj.GroupList.length>0"
>
<div
class=
"List-con1"
v-for=
"(gItem,gIndex) in DataObj.GroupList"
:key=
"gIndex"
>
<div
class=
"List-bt"
>
<div
class=
"paperEdit_Top"
>
<div
class=
"paperEdit_Top"
:class=
"
{'checkedExam':clickIndex==gIndex}"
>
<template
v-if=
"!gItem.isShowEdit"
>
<div
@
click=
"GetGroupItem(gItem
)
"
>
<div
@
click=
"GetGroupItem(gItem
,gIndex)"
style=
"display:flex;padding-left:5px;
"
>
<div>
{{
gIndex
+
1
}}
</div>
<div
class=
"paper_GroupName"
:title=
"gItem.GroupName"
>
{{
gItem
.
GroupName
}}
</div>
<div>
(共
{{
gItem
.
DetailsList
?
gItem
.
DetailsList
.
length
:
0
}}
题,
{{
gItem
.
GScore
}}
分)
</div>
...
...
@@ -614,6 +621,7 @@
savePaperLoading
:
false
,
isShowPoint
:
false
,
//选择知识点
clickGroupItem
:
null
,
//选择的分组
clickIndex
:
-
1
}
},
computed
:
{
...
...
@@ -657,7 +665,8 @@
}
},
methods
:
{
GetGroupItem
(
gItem
)
{
GetGroupItem
(
gItem
,
gIndex
)
{
this
.
clickIndex
=
gIndex
;
this
.
clickGroupItem
=
gItem
;
},
//添加分类
...
...
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