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.
|
|
<template> <div> <iframe :src="address" class="fullscreen-iframe"></iframe> </div></template>
<script> import { searchBIAddress, } from "@/api/project/project.js" export default { name: "report1", data() { return { searchData:{ menuId:this.$route.meta.menuId, }, address:'',
} }, methods: { searchAddress(){ 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>
|