|
@@ -528,14 +528,19 @@ export default {
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.listLoading = false
|
|
this.listLoading = false
|
|
if (res.Ret !== 200) return
|
|
if (res.Ret !== 200) return
|
|
-
|
|
|
|
- this.listFinished = res.Data.Paging.IsEnd
|
|
|
|
- this.chartList = res.Data
|
|
|
|
- ? this.chart_page === 1
|
|
|
|
- ? res.Data.List
|
|
|
|
- : [...this.chartList, ...res.Data.List]
|
|
|
|
- : [];
|
|
|
|
- this.chart_total = res.Data ? res.Data.Paging.Totals : 0;
|
|
|
|
|
|
+
|
|
|
|
+ if(res.Data) {
|
|
|
|
+ this.listFinished = res.Data.Paging.IsEnd
|
|
|
|
+ this.chartList = res.Data
|
|
|
|
+ ? this.chart_page === 1
|
|
|
|
+ ? res.Data.List
|
|
|
|
+ : [...this.chartList, ...res.Data.List]
|
|
|
|
+ : [];
|
|
|
|
+ this.chart_total = res.Data ? res.Data.Paging.Totals : 0;
|
|
|
|
+ }else {
|
|
|
|
+ this.chartList = []
|
|
|
|
+ this.chart_total = 0;
|
|
|
|
+ }
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.listLoading = false
|
|
this.listLoading = false
|
|
})
|
|
})
|