|
@@ -300,6 +300,7 @@ export default {
|
|
|
/** 查询列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
+ this.dataList = []
|
|
|
pageList(this.addDateRange(this.queryParams, this.dateRange))
|
|
|
.then(response => {
|
|
|
this.dataList = response.data.rows;
|
|
@@ -309,7 +310,11 @@ export default {
|
|
|
this.total = response.data.total;
|
|
|
this.loading = false;
|
|
|
}
|
|
|
- );
|
|
|
+ ).catch(()=>{
|
|
|
+ this.dataList = []
|
|
|
+ this.total = 0
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
},
|
|
|
// 取消按钮
|
|
|
cancel() {
|