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
0c7fc8ef
Commit
0c7fc8ef
authored
Mar 08, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
856df887
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
311 additions
and
292 deletions
+311
-292
exam.js
src/api/exam.js
+12
-0
word.vue
src/components/question/word.vue
+282
-263
MyExam.vue
src/pages/exam/MyExam.vue
+1
-1
examStart.vue
src/pages/exam/examStart.vue
+16
-28
No files found.
src/api/exam.js
View file @
0c7fc8ef
...
@@ -107,4 +107,16 @@ export function GetQuestionWords(data) {
...
@@ -107,4 +107,16 @@ export function GetQuestionWords(data) {
method
:
'post'
,
method
:
'post'
,
data
data
})
})
}
/**
* 点击答案提交答题
* @param {JSON参数} data
*/
export
function
SetStudentPractice
(
data
)
{
return
request
({
url
:
'/Exam/SetStudentPractice'
,
method
:
'post'
,
data
})
}
}
\ No newline at end of file
src/components/question/word.vue
View file @
0c7fc8ef
This diff is collapsed.
Click to expand it.
src/pages/exam/MyExam.vue
View file @
0c7fc8ef
...
@@ -216,7 +216,7 @@
...
@@ -216,7 +216,7 @@
<view
class=
"Ques_Num"
>
{{
TypeObj
.
listeningFinishCount
}}
/
{{
TypeObj
.
listeningTotalCount
}}
</view>
<view
class=
"Ques_Num"
>
{{
TypeObj
.
listeningFinishCount
}}
/
{{
TypeObj
.
listeningTotalCount
}}
</view>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word3.png"
alt=
""
/>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word3.png"
alt=
""
/>
</view>
</view>
<view
class=
"Ques_Circle"
style=
"margin-right:0;"
@
click=
"goExam()"
>
<view
class=
"Ques_Circle"
style=
"margin-right:0;"
@
click=
"goExam(
4
)"
>
<view
class=
"Ques_Top"
>
阅读
</view>
<view
class=
"Ques_Top"
>
阅读
</view>
<view
class=
"Ques_Num"
>
{{
TypeObj
.
readingFinishCount
}}
/
{{
TypeObj
.
readingTotalCount
}}
</view>
<view
class=
"Ques_Num"
>
{{
TypeObj
.
readingFinishCount
}}
/
{{
TypeObj
.
readingTotalCount
}}
</view>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word4.png"
alt=
""
/>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word4.png"
alt=
""
/>
...
...
src/pages/exam/examStart.vue
View file @
0c7fc8ef
...
@@ -9,19 +9,10 @@
...
@@ -9,19 +9,10 @@
</
template
>
</
template
>
</van-nav-bar>
</van-nav-bar>
<view
class=
"exam-con"
>
<view
class=
"exam-con"
>
<!-- <view v-for="(item, index) in dataList" :key="index">
<readingCompre
:startIndex="item.startIndex"
:paperData="dataList"
:sort="index"
:isOperate="isOperate"
:ExamStatus="ExamStatus"
@answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'reading-comprehensio' && index === changeIndex"
/>
</view> -->
<!-- 单词 -->
<!-- 单词 -->
<word
v-if=
"Type==1"
:paperData=
"dataList"
/>
<word
:paperData=
"dataList"
v-if=
"Type==1"
/>
<!-- 阅读理解 -->
<readingCompre
:paperData=
"dataList"
v-if=
"Type==4"
/>
</view>
</view>
<van-toast
id=
"van-toast"
/>
<van-toast
id=
"van-toast"
/>
</view>
</view>
...
@@ -54,11 +45,6 @@ export default {
...
@@ -54,11 +45,6 @@ export default {
console
.
log
(
refs
);
console
.
log
(
refs
);
let
data
=
reactive
({
let
data
=
reactive
({
statusBarHeight
:
0
,
statusBarHeight
:
0
,
msg
:
{
pageIndex
:
1
,
pageSize
:
10
},
dataList
:
[],
dataList
:
[],
changeIndex
:
0
,
//大题序号
changeIndex
:
0
,
//大题序号
isOperate
:
true
,
//考试状态 判断是考试还是查看答案
isOperate
:
true
,
//考试状态 判断是考试还是查看答案
...
@@ -86,20 +72,20 @@ export default {
...
@@ -86,20 +72,20 @@ export default {
if
(
res
)
{
if
(
res
)
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
dataList
=
res
.
Data
.
PageData
;
console
.
log
(
data
.
dataList
,
'数据'
);
console
.
log
(
data
.
dataList
,
'数据'
);
}
}
}
}
});
});
},
},
async
GetMyQuestionReading
()
{
GetMyQuestionReading
()
{
let
res
=
await
GetQuestionReading
(
data
.
msg
);
let
res
=
GetQuestionReading
(
data
.
examMsg
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
console
.
log
(
res
,
'数据'
);
console
.
log
(
res
,
'数据'
);
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
dataList
=
res
.
Data
.
PageData
;
}
}
}
}
});
},
},
//获取答案改变后的数据
//获取答案改变后的数据
getAnswerChange
(
val
,
index
)
{
getAnswerChange
(
val
,
index
)
{
...
@@ -130,7 +116,9 @@ export default {
...
@@ -130,7 +116,9 @@ export default {
if
(
this
.
Type
==
1
){
if
(
this
.
Type
==
1
){
this
.
GetWords
();
this
.
GetWords
();
}
}
// await this.GetMyQuestionReading();
if
(
this
.
Type
==
4
){
this
.
GetMyQuestionReading
();
}
},
},
};
};
</
script
>
</
script
>
...
...
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