main.vue 695 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <iframe
  3. width="1626px"
  4. height="900px"
  5. :src="url"
  6. frameborder="0"
  7. scrolling="yes"
  8. ></iframe>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. getDashBoardId: false,
  15. url: "http://112.126.68.148:50401/analysis/dashboard/show/",
  16. };
  17. },
  18. created() {
  19. this.getRequest("/dashBoard/getDashBoard").then((resp) => {
  20. if (resp) {
  21. if (resp.data !== null) {
  22. this.url = this.url + resp.data.dashBoardId + "/";
  23. console.log(this.url);
  24. this.getDashBoardId = true;
  25. } else {
  26. this.$message.error("看板未发布");
  27. }
  28. }
  29. });
  30. },
  31. };
  32. </script>
  33. <style scoped></style>