index.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <template>
  2. <div class="company-home">
  3. <div class="top-bg">
  4. <div class="main-title">{{ mainTitle }}</div>
  5. </div>
  6. <mapComponent @open-detail="showDetail" />
  7. <div class="company-content">
  8. <div class="area-content">
  9. <div class="left-area">
  10. <!-- 矿井通风状态监测 -->
  11. <div class="area-card">
  12. <mineWind />
  13. </div>
  14. <!-- 一通三防风险分析与预警 -->
  15. <div class="area-card1">
  16. <riskWarn />
  17. </div>
  18. </div>
  19. <div class="center-area">
  20. <!-- 榆家梁矿 -->
  21. <!-- <div class="area-card2">
  22. </div> -->
  23. <!-- 文件共享中心 -->
  24. <div class="area-card3">
  25. <fileShare />
  26. </div>
  27. </div>
  28. <div class="right-area">
  29. <!-- 关键场景通防综合监测 -->
  30. <div class="area-card">
  31. <sceneKey />
  32. </div>
  33. <!-- 通风巷道长度统计 -->
  34. <div class="area-card1">
  35. <windRoad />
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </template>
  42. <script lang="ts" setup>
  43. import { ref } from 'vue';
  44. import mineWind from './components/mine-wind.vue';
  45. import riskWarn from './components/risk-warn.vue';
  46. import fileShare from './components/file-share.vue';
  47. import windRoad from './components/wind-road.vue';
  48. import sceneKey from './components/scene-key.vue';
  49. import mapComponent from './components/3Dmap/index.vue';
  50. let mainTitle = ref('国家能源神东煤炭集团');
  51. function showDetail(code) {
  52. if (code) {
  53. // isShowDialog.value = true;
  54. }
  55. }
  56. </script>
  57. <style lang="less" scoped>
  58. @font-face {
  59. font-family: 'douyuFont';
  60. src: url('../../../../assets/font/douyuFont.otf');
  61. }
  62. // @font-face {
  63. // font-family: 'yjsz';
  64. // src: url('../../../../assets/font/yjsz.TTF');
  65. // }
  66. .company-home {
  67. width: 100%;
  68. height: 100%;
  69. position: relative;
  70. .top-bg {
  71. width: 100%;
  72. height: 97px;
  73. background: url('../../../../assets/images/company/top-bg.png') no-repeat center;
  74. position: absolute;
  75. z-index: 1;
  76. .main-title {
  77. height: 96px;
  78. color: #fff;
  79. font-family: 'douyuFont';
  80. font-size: 20px;
  81. letter-spacing: 2px;
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. }
  86. }
  87. .company-content {
  88. position: absolute;
  89. left: 0;
  90. top: 0;
  91. width: 100%;
  92. height: 100%;
  93. background: url('../../../../assets/images/company/content-bg.png') no-repeat;
  94. background-size: 100% 100%;
  95. pointer-events: none;
  96. .area-content {
  97. position: absolute;
  98. top: 45px;
  99. width: 100%;
  100. height: calc(100% - 45px);
  101. padding: 0px 20px 20px 20px;
  102. box-sizing: border-box;
  103. display: flex;
  104. justify-content: space-between;
  105. // pointer-events: none;
  106. .left-area {
  107. width: 23%;
  108. height: 100%;
  109. margin-right: 15px;
  110. display: flex;
  111. flex-direction: column;
  112. justify-content: space-between;
  113. align-items: center;
  114. // pointer-events: auto;
  115. .area-card {
  116. width: 100%;
  117. height: calc(60% - 15px);
  118. margin-bottom: 15px;
  119. background: url('../../../../assets/images/company/area-card.png') no-repeat;
  120. background-size: 100% 100%;
  121. }
  122. .area-card1 {
  123. width: 100%;
  124. height: 40%;
  125. background: url('../../../../assets/images/company/area-card1.png') no-repeat;
  126. background-size: 100% 100%;
  127. }
  128. }
  129. .center-area {
  130. width: calc(54% - 30px);
  131. height: 100%;
  132. position: relative;
  133. .area-card2 {
  134. position: absolute;
  135. right: 0;
  136. top: 62px;
  137. width: 568px;
  138. height: 437px;
  139. background: url('../../../../assets/images/company/area-card2.png') no-repeat;
  140. background-size: 100% 100%;
  141. // pointer-events: auto;
  142. }
  143. .area-card3 {
  144. position: absolute;
  145. right: 0;
  146. bottom: 0px;
  147. width: 100%;
  148. height: 269px;
  149. background: url('../../../../assets/images/company/area-card3.png') no-repeat;
  150. background-size: 100% 100%;
  151. }
  152. }
  153. .right-area {
  154. width: 23%;
  155. height: 100%;
  156. margin-left: 15px;
  157. display: flex;
  158. flex-direction: column;
  159. justify-content: space-between;
  160. align-items: center;
  161. // pointer-events: auto;
  162. .area-card {
  163. width: 100%;
  164. height: calc(60% - 15px);
  165. margin-bottom: 15px;
  166. background: url('../../../../assets/images/company/area-card.png') no-repeat;
  167. background-size: 100% 100%;
  168. }
  169. .area-card1 {
  170. width: 100%;
  171. height: 40%;
  172. background: url('../../../../assets/images/company/area-card1.png') no-repeat;
  173. background-size: 100% 100%;
  174. }
  175. }
  176. }
  177. }
  178. }
  179. </style>