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
5c0993f3
Commit
5c0993f3
authored
Sep 10, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
458bc903
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
15 deletions
+23
-15
answer.vue
src/components/subject/answer.vue
+13
-11
examPaper.vue
src/pages/exam/examPaper.vue
+1
-1
examPaperList.vue
src/pages/exam/examPaperList.vue
+9
-3
No files found.
src/components/subject/answer.vue
View file @
5c0993f3
...
...
@@ -94,7 +94,7 @@ import { submitPaper } from "../../api/exam";
export
default
{
props
:
{
paperData
:
Object
,
ExamStuId
:
Number
ExamStuId
:
Number
,
},
setup
(
props
,
ctx
)
{
let
Gid
=
uni
.
getStorageSync
(
"userInfo"
).
Id
;
...
...
@@ -119,19 +119,21 @@ export default {
async
savePaper
()
{
let
obj
=
JSON
.
parse
(
JSON
.
stringify
(
props
.
paperData
.
Paper
));
delete
obj
.
Group_Id
;
obj
.
Exam_Student_Id
=
props
.
ExamStuId
obj
.
Exam_Student_Id
=
props
.
ExamStuId
;
let
res
=
await
submitPaper
(
obj
);
if
(
res
)
{
console
.
log
(
119
,
res
);
if
(
res
.
Code
==
1
){
uni
.
showToast
({
title
:
res
.
Message
,
icon
:
"none"
,
});
uni
.
navigateTo
({
url
:
'/pages/index/index'
});
}
if
(
res
.
Code
==
1
)
{
uni
.
showToast
({
title
:
res
.
Message
,
icon
:
"none"
,
});
setTimeout
(()
=>
{
uni
.
navigateTo
({
url
:
"/pages/index/index"
,
});
},
1000
);
}
}
},
};
...
...
src/pages/exam/examPaper.vue
View file @
5c0993f3
...
...
@@ -358,7 +358,7 @@ export default {
let
data
=
reactive
({
time
:
1
*
60
*
60
*
1000
,
statusBarHeight
:
0
,
// msg: { GuestId: Gid, PaperId: 6, Id: 3 },
// msg: { GuestId: Gid, PaperId: 6,
Publish
Id: 3 },
msg
:
{
GuestId
:
Gid
,
PaperId
:
0
,
PublishId
:
0
},
peaperDetail
:
{},
changeIndex
:
0
,
//大题序号
...
...
src/pages/exam/examPaperList.vue
View file @
5c0993f3
...
...
@@ -27,7 +27,7 @@
:key=
"index"
class=
"exam-item"
:style=
"
{ 'background-image': `url(${item.PicList[0]})` }"
@click="jumpPage(item.PaperId, item.Id)"
@click="jumpPage(item.PaperId, item.Id
, item.Exam_Student_Id
)"
>
<view
class=
"testName"
>
{{
item
.
PaperName
}}
...
...
@@ -111,9 +111,15 @@ export default {
data
.
msg
.
pageIndex
=
1
;
methods
.
getList
();
},
jumpPage
(
PaperId
,
Id
)
{
jumpPage
(
PaperId
,
Id
,
SId
)
{
uni
.
navigateTo
({
url
:
"/pages/exam/examPaper?PaperId="
+
PaperId
+
"&&Id="
+
Id
,
url
:
"/pages/exam/examPaper?PaperId="
+
PaperId
+
"&&Id="
+
Id
+
"&&Exam_Student_Id="
+
SId
,
});
},
lower
(
e
)
{
...
...
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