iframe4.vue 3.4 KB

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