814

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