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
702d38ae
Commit
702d38ae
authored
Sep 08, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e36903fd
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
61 additions
and
24 deletions
+61
-24
Calculation.vue
src/components/subject/Calculation.vue
+5
-5
Cloze.vue
src/components/subject/Cloze.vue
+4
-2
Dataquestion.vue
src/components/subject/Dataquestion.vue
+4
-2
Other.vue
src/components/subject/Other.vue
+4
-2
SortingProblem.vue
src/components/subject/SortingProblem.vue
+4
-2
Spoken.vue
src/components/subject/Spoken.vue
+4
-2
easyQuestion.vue
src/components/subject/easyQuestion.vue
+4
-2
judge.vue
src/components/subject/judge.vue
+1
-1
nounExplanation.vue
src/components/subject/nounExplanation.vue
+4
-2
shortAnswer.vue
src/components/subject/shortAnswer.vue
+4
-2
examPaper.vue
src/pages/exam/examPaper.vue
+23
-2
No files found.
src/components/subject/Calculation.vue
View file @
702d38ae
...
...
@@ -13,7 +13,7 @@
</view>
</view>
<swiper
class=
"swiper-box"
:autoplay=
"autoplay"
:current=
"current"
@
change=
"onchange"
>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"item1.id"
>
<view
class=
"item1"
>
<view
class=
"flex flex_start_center"
>
...
...
@@ -26,7 +26,7 @@
</view>
</view>
</swiper-item>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</view>
<van-toast
id=
"van-toast"
/>
...
...
@@ -51,12 +51,11 @@
props
:
{
paperData
:
Object
,
sort
:
Number
,
sortTotal
:
Number
,
isLast
:
Boolean
},
setup
(
props
,
context
)
{
let
{
ctx
}
=
getCurrentInstance
();
let
{
ctx
}
=
getCurrentInstance
();
props
.
paperData
.
DetailsList
.
forEach
((
item
,
index
)
=>
{
item
.
myAnswer
=
""
;
});
...
...
@@ -64,6 +63,7 @@
data
:
props
.
paperData
,
autoplay
:
false
,
sortIndex
:
props
.
sort
+
1
,
sortTotal
:
props
.
sortTotal
,
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
ExamIndex
:
1
,
//第几题
});
...
...
src/components/subject/Cloze.vue
View file @
702d38ae
...
...
@@ -13,7 +13,7 @@
</view>
</view>
<swiper
class=
"swiper-box"
:autoplay=
"autoplay"
:current=
"current"
@
change=
"onchange"
>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"item1.id"
>
<view
class=
"item1"
>
<view
class=
"flex flex_start_center"
>
...
...
@@ -26,7 +26,7 @@
</view>
</view>
</swiper-item>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</view>
<van-toast
id=
"van-toast"
/>
...
...
@@ -51,6 +51,7 @@
props
:
{
paperData
:
Object
,
sort
:
Number
,
sortTotal
:
Number
,
isLast
:
Boolean
},
setup
(
props
,
context
)
{
...
...
@@ -64,6 +65,7 @@
data
:
props
.
paperData
,
autoplay
:
false
,
sortIndex
:
props
.
sort
+
1
,
sortTotal
:
props
.
sortTotal
,
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
ExamIndex
:
1
,
//第几题
});
...
...
src/components/subject/Dataquestion.vue
View file @
702d38ae
...
...
@@ -13,7 +13,7 @@
</view>
</view>
<swiper
class=
"swiper-box"
:autoplay=
"autoplay"
:current=
"current"
@
change=
"onchange"
>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"item1.id"
>
<view
class=
"item1"
>
<view
class=
"flex flex_start_center"
>
...
...
@@ -26,7 +26,7 @@
</view>
</view>
</swiper-item>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</view>
<van-toast
id=
"van-toast"
/>
...
...
@@ -51,6 +51,7 @@
props
:
{
paperData
:
Object
,
sort
:
Number
,
sortTotal
:
Number
,
isLast
:
Boolean
},
setup
(
props
,
context
)
{
...
...
@@ -64,6 +65,7 @@
data
:
props
.
paperData
,
autoplay
:
false
,
sortIndex
:
props
.
sort
+
1
,
sortTotal
:
props
.
sortTotal
,
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
ExamIndex
:
1
,
//第几题
});
...
...
src/components/subject/Other.vue
View file @
702d38ae
...
...
@@ -13,7 +13,7 @@
</view>
</view>
<swiper
class=
"swiper-box"
:autoplay=
"autoplay"
:current=
"current"
@
change=
"onchange"
>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"item1.id"
>
<view
class=
"item1"
>
<view
class=
"flex flex_start_center"
>
...
...
@@ -26,7 +26,7 @@
</view>
</view>
</swiper-item>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</view>
<van-toast
id=
"van-toast"
/>
...
...
@@ -51,6 +51,7 @@
props
:
{
paperData
:
Object
,
sort
:
Number
,
sortTotal
:
Number
,
isLast
:
Boolean
},
setup
(
props
,
context
)
{
...
...
@@ -64,6 +65,7 @@
data
:
props
.
paperData
,
autoplay
:
false
,
sortIndex
:
props
.
sort
+
1
,
sortTotal
:
props
.
sortTotal
,
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
ExamIndex
:
1
,
//第几题
});
...
...
src/components/subject/SortingProblem.vue
View file @
702d38ae
...
...
@@ -13,7 +13,7 @@
</view>
</view>
<swiper
class=
"swiper-box"
:autoplay=
"autoplay"
:current=
"current"
@
change=
"onchange"
>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"item1.id"
>
<view
class=
"item1"
>
<view
class=
"flex flex_start_center"
>
...
...
@@ -26,7 +26,7 @@
</view>
</view>
</swiper-item>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</view>
<van-toast
id=
"van-toast"
/>
...
...
@@ -51,6 +51,7 @@
props
:
{
paperData
:
Object
,
sort
:
Number
,
sortTotal
:
Number
,
isLast
:
Boolean
},
setup
(
props
,
context
)
{
...
...
@@ -64,6 +65,7 @@
data
:
props
.
paperData
,
autoplay
:
false
,
sortIndex
:
props
.
sort
+
1
,
sortTotal
:
props
.
sortTotal
,
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
ExamIndex
:
1
,
//第几题
});
...
...
src/components/subject/Spoken.vue
View file @
702d38ae
...
...
@@ -13,7 +13,7 @@
</view>
</view>
<swiper
class=
"swiper-box"
:autoplay=
"autoplay"
:current=
"current"
@
change=
"onchange"
>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"item1.id"
>
<view
class=
"item1"
>
<view
class=
"flex flex_start_center"
>
...
...
@@ -26,7 +26,7 @@
</view>
</view>
</swiper-item>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</view>
<van-toast
id=
"van-toast"
/>
...
...
@@ -51,6 +51,7 @@
props
:
{
paperData
:
Object
,
sort
:
Number
,
sortTotal
:
Number
,
isLast
:
Boolean
},
setup
(
props
,
context
)
{
...
...
@@ -64,6 +65,7 @@
data
:
props
.
paperData
,
autoplay
:
false
,
sortIndex
:
props
.
sort
+
1
,
sortTotal
:
props
.
sortTotal
,
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
ExamIndex
:
1
,
//第几题
});
...
...
src/components/subject/easyQuestion.vue
View file @
702d38ae
...
...
@@ -13,7 +13,7 @@
</view>
</view>
<swiper
class=
"swiper-box"
:autoplay=
"autoplay"
:current=
"current"
@
change=
"onchange"
>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"item1.id"
>
<view
class=
"item1"
>
<view
class=
"flex flex_start_center"
>
...
...
@@ -26,7 +26,7 @@
</view>
</view>
</swiper-item>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</view>
<van-toast
id=
"van-toast"
/>
...
...
@@ -51,6 +51,7 @@
props
:
{
paperData
:
Object
,
sort
:
Number
,
sortTotal
:
Number
,
isLast
:
Boolean
},
setup
(
props
,
context
)
{
...
...
@@ -64,6 +65,7 @@
data
:
props
.
paperData
,
autoplay
:
false
,
sortIndex
:
props
.
sort
+
1
,
sortTotal
:
props
.
sortTotal
,
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
ExamIndex
:
1
,
//第几题
});
...
...
src/components/subject/judge.vue
View file @
702d38ae
...
...
@@ -4,7 +4,7 @@
<view
class=
"item"
style=
"padding: 0 20px"
>
<view
class=
"name"
>
<view>
{{
changeNumToHan
(
data
.
GSortNum
+
1
)
}}
、
{{
data
.
GroupName
}}
{{
changeNumToHan
(
sortIndex
)
}}
、
{{
data
.
GroupName
}}
<text
style=
"color: #999999"
>
(共
{{
data
.
DetailsList
.
length
}}
道,
{{
data
.
GScore
}}
分)
</text
>
...
...
src/components/subject/nounExplanation.vue
View file @
702d38ae
...
...
@@ -13,7 +13,7 @@
</view>
</view>
<swiper
class=
"swiper-box"
:autoplay=
"autoplay"
:current=
"current"
@
change=
"onchange"
>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"item1.id"
>
<view
class=
"item1"
>
<view
class=
"flex flex_start_center"
>
...
...
@@ -26,7 +26,7 @@
</view>
</view>
</swiper-item>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</view>
<van-toast
id=
"van-toast"
/>
...
...
@@ -51,6 +51,7 @@
props
:
{
paperData
:
Object
,
sort
:
Number
,
sortTotal
:
Number
,
isLast
:
Boolean
},
setup
(
props
,
context
)
{
...
...
@@ -64,6 +65,7 @@
data
:
props
.
paperData
,
autoplay
:
false
,
sortIndex
:
props
.
sort
+
1
,
sortTotal
:
props
.
sortTotal
,
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
ExamIndex
:
1
,
//第几题
});
...
...
src/components/subject/shortAnswer.vue
View file @
702d38ae
...
...
@@ -13,7 +13,7 @@
</view>
</view>
<swiper
class=
"swiper-box"
:autoplay=
"autoplay"
:current=
"current"
@
change=
"onchange"
>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"item1.id"
>
<view
class=
"item1"
>
<view
class=
"flex flex_start_center"
>
...
...
@@ -26,7 +26,7 @@
</view>
</view>
</swiper-item>
<swiper-item></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</view>
<van-toast
id=
"van-toast"
/>
...
...
@@ -51,6 +51,7 @@
props
:
{
paperData
:
Object
,
sort
:
Number
,
sortTotal
:
Number
,
isLast
:
Boolean
},
setup
(
props
,
context
)
{
...
...
@@ -63,6 +64,7 @@
let
data
=
reactive
({
data
:
props
.
paperData
,
autoplay
:
false
,
sortTotal
:
props
.
sortTotal
,
sortIndex
:
props
.
sort
+
1
,
current
:
1
,
//默认从第几个开始-用于从快捷菜单点入
ExamIndex
:
1
,
//第几题
...
...
src/pages/exam/examPaper.vue
View file @
702d38ae
...
...
@@ -106,6 +106,7 @@
:paperData=
"item"
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
v-if=
"
...
...
@@ -117,6 +118,7 @@
:paperData=
"item"
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
v-if=
"
...
...
@@ -128,6 +130,7 @@
:paperData=
"item"
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
v-if=
"
...
...
@@ -139,6 +142,7 @@
:paperData=
"item"
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
v-if=
"item.QuestionTypeKey === 'calculation' && index === changeIndex"
...
...
@@ -148,15 +152,27 @@
:paperData=
"item"
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
v-if=
"item.QuestionTypeKey === 'spoken' && index === changeIndex"
/>
<!-- 分录题 -->
<EntryProblem
:paperData=
"item"
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
v-if=
"item.QuestionTypeKey === 'entry-problem' && index === changeIndex"
/>
<!-- 其他 -->
<Other
:paperData=
"item"
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
v-if=
"item.QuestionTypeKey === 'other' && index === changeIndex"
...
...
@@ -166,6 +182,7 @@
:paperData=
"item"
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
v-if=
"item.QuestionTypeKey === 'cloze' && index === changeIndex"
...
...
@@ -175,6 +192,7 @@
:paperData=
"item"
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
v-if=
"
...
...
@@ -186,6 +204,7 @@
:paperData=
"item"
:isLast=
"isLast"
:sort=
"index"
:sortTotal=
"peaperDetail.Paper.GroupList.length"
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
v-if=
"
...
...
@@ -193,14 +212,15 @@
"
/>
<!-- 连线题待完善 -->
<Connect
<!--
<Connect
:paperData="item"
:isLast="isLast"
:sort="index"
:sortTotal="peaperDetail.Paper.GroupList.length"
@getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()"
v-if="item.QuestionTypeKey === 'matching' && index === changeIndex"
/>
/>
-->
</view>
</view>
<van-toast
id=
"van-toast"
/>
...
...
@@ -231,6 +251,7 @@ import ShortAnswer from "../../components/subject/shortAnswer.vue";
import
nounExplanation
from
"../../components/subject/nounExplanation.vue"
;
import
easyQuestion
from
"../../components/subject/easyQuestion.vue"
;
import
Calculation
from
"../../components/subject/Calculation.vue"
;
import
EntryProblem
from
"../../components/subject/EntryProblem.vue"
;
import
Spoken
from
"../../components/subject/Spoken.vue"
;
import
Other
from
"../../components/subject/Other.vue"
;
import
Cloze
from
"../../components/subject/Cloze.vue"
;
...
...
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