812

parent dc33dd55
...@@ -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(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment