Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
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
向伟
educationStu
Commits
a1fe7886
Commit
a1fe7886
authored
Mar 11, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
97cc6d7b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
24 deletions
+46
-24
answer.vue
src/components/question/subject/answer.vue
+31
-18
listen.vue
src/components/question/subject/listen.vue
+4
-1
readingCompre.vue
src/components/question/subject/readingCompre.vue
+2
-1
singlenumber.vue
src/components/question/subject/singlenumber.vue
+6
-1
readingCompre.vue
src/components/subject/readingCompre.vue
+2
-2
examGongu.vue
src/pages/exam/examGongu.vue
+1
-1
No files found.
src/components/question/subject/answer.vue
View file @
a1fe7886
...
...
@@ -67,24 +67,37 @@
},
//交卷
async
savePaper
()
{
console
.
log
(
data
.
questionList
,
'questionList'
);
// data.questionList.forEach(x => {
// let obj = {
// DetailId: 0,
// ExamId: 0,
// QuestionId: 1,
// Title: "123",
// QuestionContent: "132131",
// QuestionTypeId: 1,
// QuestionTypeKey: "single",
// Answer: "",
// AnswerParse: "",
// IsAnswer: 1,
// IsWrong: 1,
// }
// })
console
.
log
(
data
.
saveMsg
,
'saveMsg'
);
data
.
questionList
.
forEach
(
x
=>
{
let
obj
=
{
DetailId
:
0
,
ExamId
:
0
,
QuestionId
:
x
.
QuestionId
,
Title
:
x
.
Title
,
QuestionContent
:
x
.
QuestionContentObj
,
QuestionTypeId
:
x
.
QuestionTypeId
,
QuestionTypeKey
:
x
.
QuestionTypeKey
,
Answer
:
x
.
Answer
,
AnswerParse
:
x
.
AnswerParse
,
IsAnswer
:
0
,
IsWrong
:
1
,
StundetAnswer
:
x
.
StundetAnswer
,
Score
:
x
.
Score
}
if
(
obj
.
StundetAnswer
.
length
>
0
){
obj
.
IsAnswer
=
1
;
}
if
(
obj
.
StundetAnswer
.
length
>
0
){
if
(
obj
.
StundetAnswer
.
toString
()
==
obj
.
Answer
){
obj
.
IsWrong
=
0
}
else
{
obj
.
IsWrong
=
1
}
}
data
.
saveMsg
.
ExamDetailsList
.
push
(
obj
);
})
SetStudentExam
(
data
.
saveMsg
).
then
(
res
=>
{
console
.
log
(
res
);
})
},
};
return
{
...
...
src/components/question/subject/listen.vue
View file @
a1fe7886
<
template
>
<!-- 听力题 -->
<view
class=
"listen"
>
<view
class=
"item"
style=
"padding: 0 20px"
>
<view
class=
"item"
>
<audio
style=
"text-align: left"
poster=
"http://pic.pimg.tw/pam86591/1408719752-3322564110_n.jpg"
:src=
"dataObj.Src"
name=
"日语听力"
:action=
"audioAction"
controls
></audio>
<view>
<text
class=
"Exam_Score"
>
(
{{
dataObj
.
Score
}}
分)
</text>
</view>
<view
class=
"item1"
:style=
"
{ height: `calc(100vh - 414rpx)` }">
<view
class=
"questionView"
>
<view
v-for=
"(item, index) in dataObj.QuestionContentObj"
:key=
"index"
class=
"item2"
>
...
...
src/components/question/subject/readingCompre.vue
View file @
a1fe7886
...
...
@@ -8,7 +8,8 @@
</view>
<view
:style=
"
{maxHeight: `calc(100vh - 730rpx)`}"
style="overflow-y: auto;">
<view
style=
"margin:30rpx;"
class=
"Exam_Score"
>
本阅读理解共
{{
dataObj
.
QuestionContentObj
.
length
}}
小题
<view
style=
"margin:30rpx;"
class=
"Exam_Score"
>
本阅读理解共
{{
dataObj
.
QuestionContentObj
.
length
}}
小题(
{{
dataObj
.
Score
}}
分)
</text>
</view>
<view
class=
"questionView"
>
<view
v-for=
"(item, index) in dataObj.QuestionContentObj"
:key=
"index"
...
...
src/components/question/subject/singlenumber.vue
View file @
a1fe7886
...
...
@@ -3,8 +3,9 @@
<view>
<view
class=
"item"
style=
"padding: 0 20px"
>
<view
class=
"item1"
>
<view
class=
"flex
flex_start_center
"
>
<view
class=
"flex"
>
<view
class=
"num"
v-html=
"dataObj.Title"
></view>
<text
class=
"Exam_Score"
>
(
{{
dataObj
.
Score
}}
分)
</text>
</view>
<view
v-for=
"(item2, index2) in dataObj.QuestionContentObj"
:key=
"index2"
class=
"flex item2 flex_start_center"
>
...
...
@@ -149,4 +150,8 @@
font-weight
:
500
;
color
:
#111111
;
}
.Exam_Score
{
color
:
#999999
;
font-size
:
28
rpx
;
}
</
style
>
src/components/subject/readingCompre.vue
View file @
a1fe7886
...
...
@@ -25,7 +25,7 @@
<!--
<view
class=
"questionBox"
:style=
"
{ height: `${questionH}rpx` }">
<view
class=
"questionTotal"
@
touchstart=
"touchstart"
@
touchmove=
"touchmove"
@
touchend=
"touchend"
>
本阅读理解共5小题
</view>
-->
<view
:style=
"
{maxHeight: `calc(100vh -
450rpx - ${statusBarHeight}
px)`}"
<view
:style=
"
{maxHeight: `calc(100vh -
800r
px)`}"
style="overflow-y: auto;">
<view
style=
"margin:30rpx;"
class=
"Exam_Score"
>
本阅读理解共
{{
item1
.
QuestionContentObj
.
length
}}
小题
</view>
<template
v-if=
"isOperate"
>
...
...
@@ -330,7 +330,7 @@
</
script
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
3
0
rpx
;
margin-top
:
7
0
rpx
;
padding
:
0
40
rpx
;
}
...
...
src/pages/exam/examGongu.vue
View file @
a1fe7886
...
...
@@ -66,7 +66,7 @@
dataList
:
[],
msg
:
{
pageIndex
:
1
,
pageSize
:
2
0
,
pageSize
:
100
0
,
BankId
:
0
},
startMsg
:
{
...
...
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