diff --git a/src/views/homePage/components/tableMain.vue b/src/views/homePage/components/tableMain.vue index 88e26e1..e21f962 100644 --- a/src/views/homePage/components/tableMain.vue +++ b/src/views/homePage/components/tableMain.vue @@ -180,7 +180,12 @@ 在线 - 离线 + 离线 + 异常 +
+ 选择线路 + +
+ + + + {{ item.name }} + + +
+ + 取 消 + 确 定 + +
+
+ + + diff --git a/src/views/picReport/index.vue b/src/views/picReport/index.vue index ecebacc..68be7f7 100644 --- a/src/views/picReport/index.vue +++ b/src/views/picReport/index.vue @@ -371,15 +371,21 @@ export default { this.picLoading = true; picRportApi(params) .then((res) => { - this.picLoading = false; - if (res.data.length !== 0) { - console.log(res.data); - this.tableData = res.data; + if (res.code == 200) { + this.picLoading = false; + if (res.data.length !== 0) { + console.log(res.data); + this.tableData = res.data; + } else { + this.tableData = []; + } } else { - this.tableData = []; + this.picLoading = false; } }) - .catch((err) => {}); + .catch((err) => { + this.picLoading = false; + }); }, 100); },