Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
8d8e885c
Commit
8d8e885c
authored
Jul 26, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 已做题数目更新
parent
ede5d1ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
index.vue
src/pages/index/index.vue
+13
-11
No files found.
src/pages/index/index.vue
View file @
8d8e885c
...
@@ -114,6 +114,7 @@ export default {
...
@@ -114,6 +114,7 @@ export default {
relationId
:
0
,
// 绑卡用
relationId
:
0
,
// 绑卡用
loading
:
false
,
loading
:
false
,
canExperience
:
false
,
// 体验资格
canExperience
:
false
,
// 体验资格
finishCount
:
0
,
}
}
},
},
computed
:
{
computed
:
{
...
@@ -147,17 +148,6 @@ export default {
...
@@ -147,17 +148,6 @@ export default {
},
},
]
]
},
},
finishCount
()
{
return
this
.
questionList
[
this
.
questionWarehouseId
]
?
this
.
questionList
[
this
.
questionWarehouseId
].
reduce
(
(
accumulator
,
currentValue
)
=>
{
if
(
currentValue
.
submitStatus
)
accumulator
++
return
accumulator
},
0
)
:
0
},
examText
()
{
examText
()
{
return
this
.
info
.
cardId
?
'/'
+
this
.
info
.
totalExam
:
'题库进阶练习'
return
this
.
info
.
cardId
?
'/'
+
this
.
info
.
totalExam
:
'题库进阶练习'
},
},
...
@@ -260,6 +250,7 @@ export default {
...
@@ -260,6 +250,7 @@ export default {
}
else
{
}
else
{
this
.
queryMyQuestionWarehouseDetail
(
this
.
info
.
id
||
0
)
this
.
queryMyQuestionWarehouseDetail
(
this
.
info
.
id
||
0
)
}
}
this
.
chagefinishCount
()
},
},
methods
:
{
methods
:
{
initData
()
{
initData
()
{
...
@@ -504,6 +495,17 @@ export default {
...
@@ -504,6 +495,17 @@ export default {
page
.
info
=
info
page
.
info
=
info
}
}
},
},
chagefinishCount
()
{
this
.
finishCount
=
this
.
questionList
[
this
.
questionWarehouseId
]
?
this
.
questionList
[
this
.
questionWarehouseId
].
reduce
(
(
accumulator
,
currentValue
)
=>
{
if
(
currentValue
.
submitStatus
)
accumulator
++
return
accumulator
},
0
)
:
0
},
},
},
}
}
</
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