diff --git a/src/views/realTimeMonitor/index.vue b/src/views/realTimeMonitor/index.vue
index aa1f76c..29c7f4a 100644
--- a/src/views/realTimeMonitor/index.vue
+++ b/src/views/realTimeMonitor/index.vue
@@ -208,6 +208,9 @@
关闭GPS
+
+ 历史图片
@@ -284,6 +287,7 @@ export default {
zzstatus: "",
address: "",
towertitle: "",
+ CurrentData: "",
};
},
watch: {
@@ -367,6 +371,7 @@ export default {
this.address = this.lineTreeData[0].list[0].list[0].address;
this.cmdid = this.lineTreeData[0].list[0].list[0].cmdid;
this.zzstatus = this.lineTreeData[0].list[0].list[0].onlinestatus;
+ this.CurrentData = this.lineTreeData[0].list[0].list[0];
console.log(this.zzstatus);
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(this.currentNodekey); //一定要加这个选中了否则样式没有出来
@@ -393,6 +398,7 @@ export default {
this.address = data.address;
this.towertitle = data.name;
this.newTermId = data.id; //获取当前点击的id
+ this.CurrentData = data;
console.log(data);
this.channelValue = [];
this.channelOption = [];
@@ -813,10 +819,13 @@ export default {
},
//历史图片
- // handlehistoryPic() {
- // this.$router.push({ path: "/realTimeSearch" });
- // // sessionStorage.setItem("keyPath", " realTimeSearch");
- // },
+ handlehistoryPic() {
+ this.$router.push({
+ path: "/realTimeSearch",
+ query: { lineName: this.CurrentData },
+ });
+ // sessionStorage.setItem("keyPath", " realTimeSearch");
+ },
dragControllerDiv() {
var resize = document.getElementsByClassName("resize");
var left = document.getElementsByClassName("sideBar");
diff --git a/src/views/realTimeSearch/index.vue b/src/views/realTimeSearch/index.vue
index b1aa72d..732119e 100644
--- a/src/views/realTimeSearch/index.vue
+++ b/src/views/realTimeSearch/index.vue
@@ -227,6 +227,18 @@ export default {
signtype: 0, //0第一次查询
};
},
+ created() {
+ var that = this;
+ document.onkeydown = function (e) {
+ var key = window.event.keyCode;
+ if (key === 13) {
+ that.onSubmit(); // 触发事件
+ }
+ };
+ console.log(this.$route.query);
+ // this.formdata.search = this.$route.query.name;
+ // console.log(this.formdata.search);
+ },
mounted() {
// this.$set(this.formdata, "timeVal", [
// new Date(new Date().toLocaleDateString()).getTime(),