panlinlin
2021-04-11 a4ab9a0a6cd22b11b52200b66c0417d9379e3960
web_src/src/components/devicePosition.vue
@@ -81,7 +81,7 @@
            parentChannelId: this.$route.params.parentChannelId,
            updateLooper: 0, //数据刷新轮训标志
            total: 0,
            beforeUrl: "/videoList",
            beforeUrl: "/deviceList",
            isLoging: false,
            autoList: false,
        };
@@ -111,7 +111,7 @@
            // this.currentPage = parseInt(this.$route.params.page);
            // this.count = parseInt(this.$route.params.count);
            // if (this.parentChannelId == "" || this.parentChannelId == 0) {
            //     this.beforeUrl = "/videoList";
            //     this.beforeUrl = "/deviceList";
            // }
        },
        initBaiduMap() {
@@ -181,10 +181,17 @@
                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 @@
                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);