diff --git a/web_src/src/components/devicePosition.vue b/web_src/src/components/devicePosition.vue index 29106234..f6cf19e4 100644 --- a/web_src/src/components/devicePosition.vue +++ b/web_src/src/components/devicePosition.vue @@ -181,10 +181,17 @@ export default { self.total = res.data.length; self.mobilePositionList = res.data; console.log(self.mobilePositionList); - // 防止出现表格错位 - self.$nextTick(() => { - self.showMarkPoints(self); - }); + if (self.total == 0) { + self.$message({ + showClose: true, + message: '未找到符合条件的移动位置信息', + type: 'error' + }); + } else { + self.$nextTick(() => { + self.showMarkPoints(self); + }); + } }) .catch(function (error) { console.log(error); @@ -201,10 +208,17 @@ export default { self.total = res.data.length; self.mobilePositionList.push(res.data); console.log(self.mobilePositionList); - // 防止出现表格错位 - self.$nextTick(() => { - self.showMarkPoints(self); - }); + if (self.total == 0) { + self.$message({ + showClose: true, + message: '未找到符合条件的移动位置信息', + type: 'error' + }); + } else { + self.$nextTick(() => { + self.showMarkPoints(self); + }); + } }) .catch(function (error) { console.log(error); diff --git a/web_src/src/components/videoList.vue b/web_src/src/components/videoList.vue index 450d736f..8a3f1c0e 100644 --- a/web_src/src/components/videoList.vue +++ b/web_src/src/components/videoList.vue @@ -51,10 +51,13 @@ + 刷新 + + 通道 + 定位 + 控制 + +