Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea_resources_pc
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
张伯涛
tea_resources_pc
Commits
360d3979
Commit
360d3979
authored
Jul 25, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
5e5ae87e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
5 deletions
+21
-5
getters.js
src/store/getters.js
+2
-1
app.js
src/store/modules/app.js
+8
-1
index.vue
src/views/courseResources/courseMall/index.vue
+6
-0
examCompany.vue
src/views/learningCenter/examCompany.vue
+5
-3
No files found.
src/store/getters.js
View file @
360d3979
...
...
@@ -23,6 +23,7 @@ const getters = {
businessId
:
state
=>
state
.
user
.
businessId
,
unitUser
:
state
=>
state
.
props
.
unitUser
,
topE
:
state
=>
state
.
app
.
topE
,
scroll
:
state
=>
state
.
app
.
scroll
scroll
:
state
=>
state
.
app
.
scroll
,
answer
:
state
=>
state
.
app
.
answer
,
}
export
default
getters
src/store/modules/app.js
View file @
360d3979
...
...
@@ -8,7 +8,8 @@ const state = {
device
:
'desktop'
,
loadingCount
:
0
,
topE
:
null
,
scroll
:
null
scroll
:
null
,
answer
:
null
}
const
mutations
=
{
...
...
@@ -37,6 +38,9 @@ const mutations = {
},
SCROLL
:
(
state
,
e
)
=>
{
state
.
scroll
=
e
},
ANSWER
:
(
state
,
e
)
=>
{
state
.
answer
=
e
}
}
...
...
@@ -58,6 +62,9 @@ const actions = {
},
scroll
({
commit
},
e
)
{
commit
(
'SCROLL'
,
e
)
},
answer
({
commit
},
e
)
{
commit
(
'ANSWER'
,
e
)
}
}
...
...
src/views/courseResources/courseMall/index.vue
View file @
360d3979
...
...
@@ -481,6 +481,12 @@ export default {
}
},
startExam
(
type
=
'todo'
)
{
console
.
log
(
'type'
,
type
)
if
(
type
===
'todo'
)
{
this
.
$store
.
dispatch
(
'app/answer'
,
'1'
)
// 1: 调用answerByOneClick接口,2:不调用
}
else
{
this
.
$store
.
dispatch
(
'app/answer'
,
'2'
)
// 1: 调用answerByOneClick接口,2:不调用
}
console
.
log
(
'startExam'
,
this
.
jobClassifyOptions
,
this
.
difficultyGradeOptions
,
this
.
queryParams
)
let
jobClassifyText
=
''
let
difficultyClassifyText
=
''
...
...
src/views/learningCenter/examCompany.vue
View file @
360d3979
...
...
@@ -72,7 +72,7 @@ export default {
}
},
computed
:
{
...
mapGetters
([
'userId'
])
...
mapGetters
([
'userId'
,
'answer'
])
},
mounted
()
{
this
.
examInit
()
...
...
@@ -119,16 +119,18 @@ export default {
},
// 单选题点击选项
exeSsSelect
(
i
,
event
)
{
console
.
log
(
'----------------'
)
console
.
log
(
'----------------'
,
this
.
answer
)
this
.
qsList
[
i
].
uanswer
=
event
const
temp
=
{
questionsId
:
this
.
qsList
[
i
].
businessId
,
recordId
:
this
.
qsList
[
i
].
recordId
,
answer
:
this
.
qsList
[
i
].
uanswer
}
if
(
this
.
answer
===
'1'
)
{
answerByOneClick
(
temp
)
}
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
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