|
@@ -99,20 +99,28 @@ export default {
|
|
this.$toast.clear();
|
|
this.$toast.clear();
|
|
console.log(res);
|
|
console.log(res);
|
|
console.log(res.data.data.data);
|
|
console.log(res.data.data.data);
|
|
- // 加载状态结束
|
|
|
|
|
|
+ // 加载状态结束
|
|
this.loading = false;
|
|
this.loading = false;
|
|
this.page++;
|
|
this.page++;
|
|
|
|
|
|
- console.log(res.data.data.data.length)
|
|
|
|
|
|
+ console.log(res.data.data.length);
|
|
|
|
+
|
|
|
|
+ if (res.data.data.length < 10) {
|
|
|
|
+ this.finished = true;
|
|
|
|
+ }
|
|
|
|
+
|
|
// 数据全部加载完成
|
|
// 数据全部加载完成
|
|
if (res.data.data.data.length < 10) {
|
|
if (res.data.data.data.length < 10) {
|
|
this.finished = true;
|
|
this.finished = true;
|
|
|
|
+ this.TroubleshootData_list = this.TroubleshootData_list.concat(
|
|
|
|
+ res.data.data.data
|
|
|
|
+ );
|
|
|
|
+ } else {
|
|
|
|
+ this.TroubleshootData_list = this.TroubleshootData_list.concat(
|
|
|
|
+ res.data.data.data
|
|
|
|
+ );
|
|
}
|
|
}
|
|
|
|
|
|
- // this.TroubleshootData_list = res.data.data.data;
|
|
|
|
- this.TroubleshootData_list = this.TroubleshootData_list.concat(res.data.data.data)
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|