You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

51 lines
1.1 KiB

<template>
<div>
<iframe :src="address" class="fullscreen-iframe"></iframe>
</div>
</template>
<script>
import {
searchBIAddress,
} from "@/api/outReport/outReport.js"
export default {
name: "report55",
data() {
return {
searchData:{
//获取自身的menuid
menuId:this.$route.meta.menuId,
},
address:'',
}
},
methods: {
searchAddress(){
//根据自身的menuid查询bi地址
searchBIAddress(this.searchData).then(({data}) => {
//区分请求成功和失败的状况
if (data && data.code == 0) {
this.address = data.row.address
} else {
this.address = '';
}
});
},
},
created() {
this.searchAddress();
},
}
</script>
<style scoped>
.fullscreen-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none; /* 可选,根据需要设置边框 */
}
</style>