|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<div class="home">
|
|
|
- <div v-wechat-title="$route.meta.title"></div>
|
|
|
+ <div v-wechat-title="$route.meta.title" ></div>
|
|
|
+ <div class="btn" @click="btn2" >消防互联网</div>
|
|
|
<el-row class="contentClass contnetLift">
|
|
|
<template>
|
|
|
<info class="info" :resInfo="data.info" :websocket="data.winfo" />
|
|
@@ -9,7 +10,7 @@
|
|
|
<monitor class="monitor" />
|
|
|
<!-- <conference-room class="conferenceRoom" v-else-if="item.styleValue === 5" :key="item.styleValue" :resInfo="item"></conference-room>
|
|
|
<give-an-alarm class="giveAnAlarm" v-else-if="item.styleValue === 6" :key="item.styleValue" :resInfo="item"></give-an-alarm> -->
|
|
|
- </template>
|
|
|
+ </template>
|
|
|
</el-row>
|
|
|
<el-row class="contnetCenter" >
|
|
|
<iframe src="https://www.thingjs.com/s/cd7b1592538e0f4a9572c55e?params=105b0f77fd24654d4eebc434e9" frameborder="0" id="iframe" ></iframe>
|
|
@@ -35,6 +36,7 @@ import computerRoom from "../components/SD-school/computer-room"; // 机房温
|
|
|
import giveAnAlarm from "../components/SD-school/give-an-alarm"; // 综合告警列表
|
|
|
|
|
|
import SpringFrame from "../components/SD-school/Spring-frame"; // 弹框
|
|
|
+import { encrypt } from '../util/jsencrypt';
|
|
|
import {
|
|
|
accessControlAllApi,
|
|
|
computerRoomApi,
|
|
@@ -124,7 +126,6 @@ export default {
|
|
|
mounted() {
|
|
|
var that = this;
|
|
|
window.addEventListener("message",function (event) {
|
|
|
- console.log(event)
|
|
|
var isDOM = typeof event.data === "object";
|
|
|
// // 监听父窗口发送过来的数据向服务器发送post请求
|
|
|
var data = event.data;
|
|
@@ -219,6 +220,12 @@ export default {
|
|
|
},false)
|
|
|
},
|
|
|
methods: {
|
|
|
+ btn2(){
|
|
|
+ let parmas = encrypt(123)
|
|
|
+ let url = window.location.host
|
|
|
+ console.log(url)
|
|
|
+ window.location.href = `http://10.108.34.2/fire/company.html?params=${parmas}`
|
|
|
+ },
|
|
|
mouseclick(event){
|
|
|
if (event.button == 0) {
|
|
|
|
|
@@ -377,6 +384,14 @@ export default {
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.home {
|
|
|
+ width:100%;
|
|
|
+ height:100%;
|
|
|
+ .btn{
|
|
|
+ position: absolute;
|
|
|
+ z-index: 10;
|
|
|
+ right:20px;
|
|
|
+ top:-40px;
|
|
|
+ }
|
|
|
.iframe{
|
|
|
position: absolute;
|
|
|
width:100%;
|