detailDialog.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <div>
  3. <headerTitle title="Bom审批"></headerTitle>
  4. <div class="iframe_box" ref="iframeBox">
  5. <!-- src="http://aiot.zoomwin.com.cn:51001/page-main-data/product/oneProduct?isWt=true&businessId=1895440590572208130" -->
  6. <!-- {{ location + '/page-main-data/product/oneProduct?isWt=true&businessId=' + businessId }} -->
  7. <iframe
  8. :src="location + '/page-main-data/product/oneProduct?isWt=true&isBtn=false&businessId=' + businessId"
  9. width="100%"
  10. height="600"
  11. frameborder="0"
  12. allowfullscreen
  13. ></iframe>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. export default {
  19. components: {
  20. },
  21. props: {
  22. businessId: {
  23. default: ''
  24. }
  25. },
  26. mixins: [],
  27. data() {
  28. return {
  29. visible: false,
  30. title: '',
  31. location: window.location.origin,
  32. };
  33. },
  34. created() {},
  35. mounted() {
  36. // 在组件挂载后显示加载提示
  37. this.loading = this.$loading({
  38. lock: true,
  39. text: 'Loading',
  40. spinner: 'el-icon-loading',
  41. background: '#fff',
  42. target: this.$refs.iframeBox // 将加载提示绑定到iframeBox上
  43. });
  44. // 模拟异步数据加载
  45. setTimeout(() => {
  46. // 数据加载完成后关闭加载提示
  47. this.loading.close();
  48. }, 4000); // 假设数据加载需要3秒
  49. },
  50. methods: {}
  51. };
  52. </script>
  53. <style lang="scss" scoped>
  54. :deep(.el-table__expanded-cell) {
  55. padding-bottom: 30px !important;
  56. border-bottom: 12px solid #ccffcc !important;
  57. }
  58. .iframe_box{
  59. height: 600px;
  60. width: 100%;
  61. }
  62. </style>