| | |
| | | </div> |
| | | <div class="r-b-map"> |
| | | <el-row> |
| | | <iframe |
| | | <!-- <iframe |
| | | id="supervisoryMap" |
| | | ref="supervisoryMap" |
| | | :src="baseUrl" |
| | | frameborder="0" |
| | | width="100%" |
| | | height="100%" |
| | | ></iframe> |
| | | ></iframe> --> |
| | | <iframe |
| | | id="mapL" |
| | | ref="mapL" |
| | | :src="baseUrl" |
| | | frameborder="0" |
| | | width="100%" |
| | | height="100%" |
| | | ></iframe> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | a: '', |
| | | myDeviceNumber: "", |
| | | |
| | | //折线图 |
| | |
| | | }, |
| | | created() { |
| | | // let loadingInstance1 = Loading.service({ fullscreen: true }); |
| | | this.baseUrl = `/map/index.html?openid=SupervisoryMap`; |
| | | // this.baseUrl = `/map/index.html?openid=SupervisoryMap`; |
| | | this.a = this.$route.query; |
| | | console.log(this.a); |
| | | this.baseUrl = `/map/index.html?ISinit=1&openid=AlertSecurity&id=${this.a.id}&jd=${this.a.jd}&wd=${this.a.wd}&pid=${this.a.deptId}&deptId=${this.a.deptId}&oneId=${this.a.oneId}`; |
| | | this.myDeviceNumber = this.$route.query.deviceNumber; |
| | | |
| | | var a = this.$route.query; |
| | | console.log(a); |
| | | |
| | | // console.log(this.myDeviceNumber); |
| | | this.getdata(); |
| | |
| | | mounted() { |
| | | this.loginEcharts01(); //载入折线图等待数据 |
| | | // this.eventDetails = this.eventDetaill;//载入历史事件数据 |
| | | // this.doEvents();//cc |
| | | // this.doEvents();//cc\ |
| | | this.$refs.mapL.onload = () => { |
| | | window.frames[0].init("AlertSecurity", { |
| | | x: this.a.jd, |
| | | y: this.a.wd, |
| | | }); |
| | | }; |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | .r-b-map { |
| | | height: 550px; |
| | | border: 1px solid rgba(109, 109, 109, 0.2); |
| | | #supervisoryMap { |
| | | #mapL { |
| | | width: 100%; |
| | | height: 550px; |
| | | } |