冷凝胶前端
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.

49 lines
993 B

2 years ago
  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/project/project.js"
  10. export default {
  11. name: "report1",
  12. data() {
  13. return {
  14. searchData:{
  15. menuId:this.$route.meta.menuId,
  16. },
  17. address:'',
  18. }
  19. },
  20. methods: {
  21. searchAddress(){
  22. searchBIAddress(this.searchData).then(({data}) => {
  23. //区分请求成功和失败的状况
  24. if (data && data.code == 0) {
  25. this.address = data.row.address
  26. } else {
  27. this.address = '';
  28. }
  29. });
  30. },
  31. },
  32. created() {
  33. this.searchAddress();
  34. },
  35. }
  36. </script>
  37. <style scoped>
  38. .fullscreen-iframe {
  39. position: absolute;
  40. top: 0;
  41. left: 0;
  42. width: 100%;
  43. height: 100%;
  44. border: none; /* 可选,根据需要设置边框 */
  45. }
  46. </style>