Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
bcf74f68
Commit
bcf74f68
authored
Aug 13, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
812
parent
dc33dd55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
index.vue
src/components/achievement/index.vue
+22
-1
No files found.
src/components/achievement/index.vue
View file @
bcf74f68
...
@@ -224,7 +224,28 @@
...
@@ -224,7 +224,28 @@
}
}
}
}
getTeacherRankListApi
(
json
).
then
(
res
=>
{
getTeacherRankListApi
(
json
).
then
(
res
=>
{
this
.
firstList
=
res
;
if
(
res
.
length
>
0
){
let
obj
=
{
teacher_name
:
'总计'
,
total_money
:
0
,
one_to_two
:
0
,
one_year
:
0
,
three_month
:
0
,
two_year
:
0
,
tid
:
0
}
res
.
forEach
(
el
=>
{
obj
.
total_money
+=
Number
(
el
.
total_money
)
obj
.
one_to_two
+=
el
.
one_to_two
obj
.
one_year
+=
el
.
one_year
obj
.
three_month
+=
el
.
three_month
obj
.
two_year
+=
el
.
two_year
obj
.
tid
+=
el
.
tid
});
obj
.
total_money
=
obj
.
total_money
+
'.00'
res
.
unshift
(
obj
)
this
.
firstList
=
res
;
}
})
})
},
},
searchSecondPage
(){
searchSecondPage
(){
...
...
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