|
@@ -1107,7 +1107,7 @@ export default {
|
|
|
this.rules = {}
|
|
|
search(this.queryParameter).then(response => {
|
|
|
this.chargeList_s = response.rows
|
|
|
- this.$message.success('查询成功1');
|
|
|
+ this.$message.success('查询成功');
|
|
|
for (let item in this.chargeList_s){
|
|
|
this.totAL += Number(this.chargeList_s[item].fAmt)
|
|
|
this.Ttime += Number(this.chargeList_s[item].fAmtdr)
|
|
@@ -1127,12 +1127,16 @@ export default {
|
|
|
if (valid) {
|
|
|
search(this.queryParameter).then(response => {
|
|
|
this.chargeList_s = response.rows
|
|
|
- this.$message.success('查询成功');
|
|
|
- this.totAL = 0
|
|
|
- this.Ttime = 0
|
|
|
- for (let item in this.chargeList_s){
|
|
|
- this.totAL += Number(this.chargeList_s[item].fAmt)
|
|
|
- this.Ttime += Number(this.chargeList_s[item].fAmtdr)
|
|
|
+ if(this.chargeList_s.length !== 0){
|
|
|
+ this.$message.success('查询成功');
|
|
|
+ this.totAL = 0
|
|
|
+ this.Ttime = 0
|
|
|
+ for (let item in this.chargeList_s) {
|
|
|
+ this.totAL += Number(this.chargeList_s[item].fAmt)
|
|
|
+ this.Ttime += Number(this.chargeList_s[item].fAmtdr)
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.$message.error('暂无数据')
|
|
|
}
|
|
|
})
|
|
|
}
|