814

parent f56be171
......@@ -213,6 +213,7 @@
}
},
searchFirstPage(){
console.log(216)
let json = {}
if(this.searchFirstFrom.dateValue){
json = {
......@@ -224,7 +225,7 @@
}
}
getTeacherRankListApi(json).then(res=>{
if(res.length>0){
// if(res.length>0){
let obj = {
teacher_name:'总计',
total_money:0,
......@@ -243,9 +244,11 @@
obj.tid+=el.tid
});
obj.total_money = obj.total_money+'.00'
res.unshift(obj)
if(res.length>0){
res.unshift(obj)
}
this.firstList = res;
}
// }
})
},
searchSecondPage(){
......@@ -260,7 +263,7 @@
}
}
getTeacherDayRankListApi(json).then(res=>{
if(res.length>0){
// if(res.length>0){
let obj = {
cur_date:'总计',
total_money:0,
......@@ -279,9 +282,11 @@
obj.tid+=el.tid
});
obj.total_money = obj.total_money+'.00'
res.unshift(obj)
if(res.length>0){
res.unshift(obj)
}
this.secondList = res;
}
// }
})
},
formatTime(date){
......
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