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

  1. <template>
  2. <div>
  3. <iframe :src="address" class="fullscreen-iframe"></iframe>
  4. </div>
  5. </template>
  6. <script>
  7. import {
  8. searchBIAddress,
  9. } from "@/api/outReport/outReport.js"
  10. export default {
  11. name: "report20",
  12. data() {
  13. return {
  14. searchData:{
  15. //获取自身的menuid
  16. menuId:this.$route.meta.menuId,
  17. },
  18. address:'',
  19. }
  20. },
  21. methods: {
  22. searchAddress(){
  23. //根据自身的menuid查询bi地址
  24. searchBIAddress(this.searchData).then(({data}) => {
  25. //区分请求成功和失败的状况
  26. if (data && data.code == 0) {
  27. this.address = data.row.address
  28. } else {
  29. this.address = '';
  30. }
  31. });
  32. },
  33. },
  34. created() {
  35. this.searchAddress();
  36. },
  37. }
  38. </script>
  39. <style scoped>
  40. .fullscreen-iframe {
  41. position: absolute;
  42. top: 0;
  43. left: 0;
  44. width: 100%;
  45. height: 100%;
  46. border: none; /* 可选,根据需要设置边框 */
  47. }
  48. </style>