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
30a32cb2
Commit
30a32cb2
authored
Sep 14, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e86dddd6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
327 additions
and
241 deletions
+327
-241
Cloze.vue
src/components/subject/Cloze.vue
+233
-220
SharingChoose.vue
src/components/subject/SharingChoose.vue
+35
-11
SortingProblem.vue
src/components/subject/SortingProblem.vue
+57
-10
examPaper.vue
src/pages/exam/examPaper.vue
+2
-0
No files found.
src/components/subject/Cloze.vue
View file @
30a32cb2
This diff is collapsed.
Click to expand it.
src/components/subject/SharingChoose.vue
View file @
30a32cb2
...
@@ -30,17 +30,19 @@
...
@@ -30,17 +30,19 @@
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
template
v-if=
"item1.QuestionContentObj[1]&&item1.QuestionContentObj[1].length>0"
>
<
template
v-if=
"isOperate"
>
<view
v-for=
"(item3, index3) in item1.QuestionContentObj[1]"
:key=
"index3"
>
<template
v-if=
"item1.QuestionContentObj[1]&&item1.QuestionContentObj[1].length>0"
>
<view
class=
"flex item2 flex_start_center"
>
<view
v-for=
"(item3, index3) in item1.QuestionContentObj[1]"
:key=
"index3"
>
<view
class=
"num"
>
{{
index3
+
1
}}
.
</view>
<view
class=
"flex item2 flex_start_center"
>
<view
class=
"chooseName"
v-html=
"item3.Content"
></view>
<view
class=
"num"
>
{{
index3
+
1
}}
.
</view>
<view
class=
"chooseName"
v-html=
"item3.Content"
></view>
</view>
<van-button
type=
"primary"
size=
"small"
@
click=
"alertMenu(item3)"
>
{{
item3
.
Name
==
''
?
'请选择'
:
item3
.
Name
}}
</van-button>
<van-action-sheet
:show=
"item3.isShow"
@
click-overlay=
"hideVan(item3)"
:actions=
"getSelect(item1.QuestionContentObj[0])"
@
select=
"onSelect($event,item3,item1)"
/>
</view>
</view>
<van-button
type=
"primary"
size=
"small"
@
click=
"alertMenu(item3)"
>
</
template
>
{{
item3
.
Name
==
''
?
'请选择'
:
item3
.
Name
}}
</van-button>
<van-action-sheet
:show=
"item3.isShow"
@
click-overlay=
"hideVan(item3)"
:actions=
"getSelect(item1.QuestionContentObj[0])"
@
select=
"onSelect($event,item3,item1)"
/>
</view>
</template>
</template>
</view>
</view>
</swiper-item>
</swiper-item>
...
@@ -70,7 +72,8 @@
...
@@ -70,7 +72,8 @@
paperData
:
Object
,
paperData
:
Object
,
sort
:
Number
,
sort
:
Number
,
sortTotal
:
Number
,
sortTotal
:
Number
,
isLast
:
Boolean
isLast
:
Boolean
,
isOperate
:
Boolean
},
},
setup
(
props
,
context
)
{
setup
(
props
,
context
)
{
let
{
ctx
}
=
getCurrentInstance
();
let
{
ctx
}
=
getCurrentInstance
();
...
@@ -87,6 +90,7 @@
...
@@ -87,6 +90,7 @@
sortTotal
:
props
.
sortTotal
,
sortTotal
:
props
.
sortTotal
,
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
ExamIndex
:
1
,
//第几题
ExamIndex
:
1
,
//第几题
isOperate
:
props
.
isOperate
});
});
let
methods
=
{
let
methods
=
{
...
@@ -165,6 +169,26 @@
...
@@ -165,6 +169,26 @@
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.isTrueAnswer
{
color
:
green
!important
;
}
.isNotAnswer
{
color
:
red
!important
;
}
.AnswerContent
{
font-size
:
30
rpx
;
padding
:
25
rpx
;
background-color
:
#F4F4F4
;
border-radius
:
5px
;
}
.viewAnswerContent
{
width
:
100%
;
border-bottom
:
1px
solid
#d1d1d1
;
padding-bottom
:
5px
;
}
.Exam_Total
{
.Exam_Total
{
font-size
:
25
rpx
;
font-size
:
25
rpx
;
color
:
gray
;
color
:
gray
;
...
...
src/components/subject/SortingProblem.vue
View file @
30a32cb2
...
@@ -28,15 +28,41 @@
...
@@ -28,15 +28,41 @@
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
template
v-if=
"item1.QuestionContentObj[1] && item1.QuestionContentObj[1].length > 0"
>
<
template
v-if=
"isOperate"
>
<view
v-for=
"(item3, index3) in item1.QuestionContentObj[1]"
:key=
"index3"
<template
v-if=
"item1.QuestionContentObj[1] && item1.QuestionContentObj[1].length > 0"
>
style=
"margin-bottom: 20px"
>
<view
v-for=
"(item3, index3) in item1.QuestionContentObj[1]"
:key=
"index3"
<van-button
type=
"primary"
size=
"small"
@
click=
"alertMenu(item3)"
>
style=
"margin-bottom: 20px"
>
{{
item3
.
Name
==
""
?
"请选择"
:
item3
.
Name
}}
<van-button
type=
"primary"
size=
"small"
@
click=
"alertMenu(item3)"
>
</van-button>
{{
item3
.
Name
==
""
?
"请选择"
:
item3
.
Name
}}
<van-action-sheet
:show=
"item3.isShow"
@
click-overlay=
"hideVan(item3)"
</van-button>
:actions=
"getSelect(item1.QuestionContentObj[0])"
<van-action-sheet
:show=
"item3.isShow"
@
click-overlay=
"hideVan(item3)"
@
select=
"onSelect($event, item3, item1)"
/>
:actions=
"getSelect(item1.QuestionContentObj[0])"
@
select=
"onSelect($event, item3, item1)"
/>
</view>
</
template
>
</template>
<
template
v-else
>
<view
class=
"AnswerContent"
>
<view>
<text
style=
"color:#8c8a94"
>
正确答案:
</text>
<text
class=
"isTrueAnswer"
>
{{
item1
.
Answer
}}
</text>
,
<text>
您的答案:
<template
v-if=
"item1.StundetAnswer!=''"
>
<text
v-if=
"item1.Answer==item1.StundetAnswer"
class=
"isTrueAnswer"
>
{{
item1
.
StundetAnswer
}}
</text>
<text
v-else
class=
"isNotAnswer"
>
{{
item1
.
StundetAnswer
}}
,回答错误
</text>
</
template
>
<
template
v-else
>
<text>
未作答
</text>
</
template
>
</text>
</view>
<view
style=
"margin-top:20rpx;word-wrap:break-word;"
>
<text
style=
"color:#8c8a94"
>
解析:
</text>
<view
style=
"color:#000;display:inline-block;"
v-html=
"item1.AnswerParse"
></view>
</view>
</view>
</view>
</template>
</template>
</view>
</view>
...
@@ -69,6 +95,7 @@
...
@@ -69,6 +95,7 @@
sortTotal
:
Number
,
sortTotal
:
Number
,
isLast
:
Boolean
,
isLast
:
Boolean
,
startIndex
:
Number
,
startIndex
:
Number
,
isOperate
:
Boolean
},
},
setup
(
props
,
context
)
{
setup
(
props
,
context
)
{
let
{
let
{
...
@@ -88,6 +115,7 @@
...
@@ -88,6 +115,7 @@
sortTotal
:
props
.
sortTotal
,
sortTotal
:
props
.
sortTotal
,
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
ExamIndex
:
1
,
//第几题
ExamIndex
:
1
,
//第几题
isOperate
:
props
.
isOperate
});
});
if
(
props
.
startIndex
)
{
if
(
props
.
startIndex
)
{
data
.
current
=
props
.
startIndex
;
data
.
current
=
props
.
startIndex
;
...
@@ -174,7 +202,26 @@
...
@@ -174,7 +202,26 @@
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.isTrueAnswer
{
color
:
green
!important
;
}
.isNotAnswer
{
color
:
red
!important
;
}
.AnswerContent
{
font-size
:
30
rpx
;
padding
:
25
rpx
;
background-color
:
#F4F4F4
;
border-radius
:
5px
;
}
.viewAnswerContent
{
width
:
100%
;
border-bottom
:
1px
solid
#d1d1d1
;
padding-bottom
:
5px
;
}
.Exam_Total
{
.Exam_Total
{
font-size
:
25
rpx
;
font-size
:
25
rpx
;
color
:
gray
;
color
:
gray
;
...
...
src/pages/exam/examPaper.vue
View file @
30a32cb2
...
@@ -236,6 +236,7 @@
...
@@ -236,6 +236,7 @@
:isLast=
"isLast"
:isLast=
"isLast"
:sort=
"index"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
@
getAfterTopic=
"getAfterTopic()"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
@
answerChange=
"getAnswerChange($event, index)"
...
@@ -263,6 +264,7 @@
...
@@ -263,6 +264,7 @@
:isLast=
"isLast"
:isLast=
"isLast"
:sort=
"index"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
:isOperate=
"isOperate"
@
getAfterTopic=
"getAfterTopic()"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
@
answerChange=
"getAnswerChange($event, index)"
...
...
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