添加历史图片

hn2.0
fanluyan 2 years ago
parent ce94805059
commit 2dca3df002

@ -208,6 +208,9 @@
<el-dropdown-item command="close">关闭GPS</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-button type="primary" @click="handlehistoryPic">
历史图片</el-button
>
</div>
</div>
</div>
@ -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");

@ -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(),

Loading…
Cancel
Save