iframe4.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <div class="iframe4">
  3. <!-- <iframe src="http://10.75.17.10/doc/page/preview.asp" frameborder="0" class="iframe-2"></iframe> -->
  4. <div class="iframe-1">
  5. <personnel></personnel>
  6. </div>
  7. <div class="iframe-2">
  8. <div v-for="(pItem, pIndex) in videoArray" :key="pIndex" width="95%" height="48vh" @click="openVideoDialog(pItem)">
  9. <div class="mask"></div>
  10. <iframe :src="pItem.url + pItem.token" />
  11. </div>
  12. </div>
  13. <div class="iframe-3">
  14. <iframe src="http://192.168.1.52/webiui/#/online" frameborder="0"></iframe>
  15. </div>
  16. <div class="iframe-4">
  17. <!-- <personnel></personnel> -->
  18. </div>
  19. <el-dialog top="50px" v-model="showVideoDialog" width="80vw" :destroy-on-close="true" :custom-class="videoDialogClass">
  20. <iframe class="videoBoxiframe" width="100%" height="600px" :src="dialogVideoUrl" />
  21. </el-dialog>
  22. </div>
  23. </template>
  24. <script>
  25. import personnel from "./personnel.vue";
  26. import PanelSand from "@com/coms/panel/panel-sand.vue";
  27. export default {
  28. setup() {},
  29. components: { personnel, PanelSand },
  30. data() {
  31. return {
  32. showVideoDialog: false,
  33. dialogVideoUrl: "",
  34. videoArray: [
  35. {
  36. url: "http://10.155.32.4:9984/ws.html",
  37. token: "?token=SBQ_FDC_SC&autoplay=true",
  38. switch: true,
  39. },
  40. {
  41. url: "http://10.155.32.4:9984/ws.html",
  42. token: "?token=NSS_FDC_SC&autoplay=true",
  43. switch: true,
  44. },
  45. {
  46. url: "http://10.155.32.4:9984/ws.html",
  47. token: "?token=QS_FDC_SC&autoplay=true",
  48. switch: true,
  49. },
  50. {
  51. url: "http://10.155.32.4:9984/ws.html",
  52. token: "?token=MHS_FDC_SC&autoplay=true",
  53. switch: true,
  54. },
  55. {
  56. url: "http://10.155.32.4:9984/ws.html",
  57. token: "?token=XS_FDC_SC&autoplay=true",
  58. switch: true,
  59. },
  60. {
  61. url: "http://10.155.32.4:9984/ws.html",
  62. token: "?token=PL_GDC_SC&autoplay=true",
  63. switch: true,
  64. },
  65. ],
  66. };
  67. },
  68. methods: {
  69. openVideoDialog(item) {
  70. if (item.url && item.token) {
  71. this.dialogVideoUrl = item.url + item.token;
  72. this.showVideoDialog = true;
  73. }
  74. },
  75. },
  76. created() {},
  77. };
  78. </script>
  79. <style lang="less">
  80. .iframe4 {
  81. // width: 98.5vw;
  82. // height: 98.5vh;
  83. background: url(../../assets/background-iframe4.png) no-repeat;
  84. background-size: 100% 100%;
  85. background-position-y: -5.1vh;
  86. display: flex;
  87. flex-wrap: wrap;
  88. height: 98vh;
  89. .iframe-1,
  90. .iframe-2,
  91. .iframe-3,
  92. .iframe-4 {
  93. // position: fixed;
  94. // z-index: 1;
  95. width: 36.8vw;
  96. height: 37.31vh;
  97. }
  98. .iframe-1 {
  99. margin-left: 6.5vw;
  100. margin-top: 5.3vh;
  101. .personnel {
  102. height: calc(36.6vh);
  103. .personnel-box-item {
  104. width: 11.5vw;
  105. }
  106. }
  107. }
  108. .iframe-2 {
  109. flex: 0 0 36.69vw;
  110. margin-left: 11.9vw;
  111. margin-top: 5.5vh;
  112. position: relative;
  113. div {
  114. display: flex;
  115. height: 18.2vh;
  116. width: 12.2vw;
  117. float: left;
  118. position: relative;
  119. iframe {
  120. height: 18.2vh;
  121. width: 12.2vw;
  122. // float: left;
  123. }
  124. .mask {
  125. flex: 0 0 100%;
  126. position: absolute;
  127. left: 0;
  128. top: 0;
  129. width: 100%;
  130. height: 100%;
  131. z-index: 5;
  132. }
  133. }
  134. }
  135. .iframe-3 {
  136. height: calc(36.6vh);
  137. margin-left: 6.5vw;
  138. margin-top: -0.7vh;
  139. background-color:seashell;
  140. iframe {
  141. height: 100%;
  142. width: 100%;
  143. }
  144. }
  145. .modal.el-dialog {
  146. background: rgba(18, 29, 28, 0.95);
  147. }
  148. }
  149. </style>