TransformerDetail.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <template>
  2. <div class="view-container">
  3. <div class="title"><span>2G04</span><span>10KV联合动力2#变压器</span></div>
  4. <div class="content">
  5. <div class="info">
  6. <span class="top-left"></span><span class="top-right"></span><span class="bottom-left"></span><span class="bottom-right"></span>
  7. <div style="font-size: 40px;font-weight: bold; margin-bottom:50px;"><span style="padding-right:30px;">2G04</span><span> 变压器详细信息</span></div>
  8. <div style="text-align:center;">
  9. <img src="../../assets/bgView/luogan.png" width="400px" alt="">
  10. </div>
  11. <div style="padding-top:70px">
  12. <a-row type="flex" justify="space-around" :gutter="[0,25]">
  13. <a-col :span="5" v-for="(detail, index) in details" :key="index">
  14. <div class="sb-proportion-info">
  15. <span class="top-left-two"></span><span class="top-right-two"></span><span class="bottom-left-two"></span><span class="bottom-right-two"></span>
  16. <div style="font-size: 36px;color: #BDD4FF;">
  17. {{ detail.value }}
  18. </div>
  19. <div> {{ detail.title }}</div>
  20. </div>
  21. </a-col>
  22. </a-row>
  23. </div>
  24. </div>
  25. <div class="history">
  26. <span class="top-left"></span><span class="top-right"></span><span class="bottom-left"></span><span class="bottom-right"></span>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. export default {
  33. data () {
  34. return {
  35. time: '',
  36. dateVisual: true,
  37. details: [{ 'title': '状态', 'value': '开机' }, { 'title': '总电压', 'value': '220V' },
  38. { 'title': '电流', 'value': '30A' }, { 'title': '总能耗', 'value': '3256kwh' },
  39. { 'title': '日能耗', 'value': '300kwh' }, { 'title': '月能耗', 'value': '300kwh' },
  40. { 'title': '温度', 'value': '56度' }, { 'title': '预警次数', 'value': '10次' }]
  41. }
  42. },
  43. methods: {
  44. onDateChange (value, dateString) {
  45. this.dateVisual = true
  46. },
  47. onMonthChange (value, dateString) {
  48. this.dateVisual = false
  49. },
  50. onOk (value) {
  51. console.log('onOk: ', value)
  52. }
  53. }
  54. }
  55. </script>
  56. <style lang="less" scoped>
  57. .view-container {
  58. width:1920px;
  59. height:1080px;
  60. font-family: PingFang SC;
  61. padding: 15px 37px;
  62. &::after {
  63. content: "";
  64. width:1920px;
  65. height:1080px;
  66. background: url(../../assets/bgView/TransformerDetail.png);
  67. top: 0;
  68. left: 0;
  69. bottom: 0;
  70. right: 0;
  71. position: absolute;
  72. z-index: -1;
  73. }
  74. }
  75. .title{
  76. display: flex;
  77. justify-content: space-between;
  78. width: 600px;
  79. margin:0 auto;
  80. font-size: 42px;
  81. font-weight: bold;
  82. text-shadow: 0px 2px 4px rgba(4,0,0,0.3);
  83. background: linear-gradient(0deg, #BCBCBC 1.123046875%, #FFFFFF 100%);
  84. -webkit-background-clip: text;
  85. -webkit-text-fill-color: transparent;
  86. }
  87. .content{
  88. display: flex;
  89. justify-content: space-between;
  90. }
  91. .info{
  92. color:#5ACCF8;
  93. width: 766px;
  94. height:950px;
  95. position: relative;
  96. border: 2px solid #045693;
  97. padding:30px;
  98. margin-top:30px;
  99. .sb-proportion-info{
  100. position: relative;
  101. display: flex;
  102. flex-direction:column;
  103. align-items: center;
  104. justify-content:center;
  105. position: relative;
  106. // width: 141px;
  107. height: 150px;
  108. background: rgba(0, 186, 255, 0.1);
  109. }
  110. }
  111. .history{
  112. color:#A8E6F3 ;
  113. width: 1041px;
  114. height:950px;
  115. position: relative;
  116. border: 2px solid #045693;
  117. padding:30px;
  118. margin-top:30px;
  119. .list-header{
  120. margin:0;
  121. padding: 0;
  122. width: 180px;
  123. height: 35px;
  124. font-size: 16px;
  125. font-weight: bold;
  126. margin-bottom: 12px;
  127. font-family: Microsoft YaHei;
  128. background: rgba(2, 205, 255, 0);
  129. box-shadow: 0px 0px 40px 0px rgba(0, 122, 162, 0.8) inset;
  130. display: flex;
  131. justify-content: center;
  132. align-items: center;
  133. }
  134. }
  135. .top-left{
  136. width: 12px;
  137. height: 12px;
  138. display: block;
  139. background-color: rgba(4, 8, 20, 0.8);
  140. border: 2px solid #02E8FF;
  141. position: absolute;
  142. top: -6px;
  143. left: -6px;
  144. }
  145. .bottom-left{
  146. width: 12px;
  147. height: 12px;
  148. display: block;
  149. background-color: rgba(4, 8, 20, 0.8);
  150. border: 2px solid #02E8FF;
  151. position: absolute;
  152. bottom: -6px;
  153. left: -6px;
  154. }
  155. .top-right{
  156. width: 12px;
  157. height: 12px;
  158. display: block;
  159. background-color: rgba(4, 8, 20, 0.8);
  160. border: 2px solid #02E8FF;
  161. position: absolute;
  162. top: -6px;
  163. right: -6px;
  164. }
  165. .bottom-right {
  166. width: 12px;
  167. height: 12px;
  168. display: block;
  169. background-color: rgba(4, 8, 20, 0.8);
  170. border: 2px solid #02E8FF;
  171. position: absolute;
  172. bottom: -6px;
  173. right: -6px;
  174. }
  175. .top-left-two{
  176. width: 15px;
  177. height: 15px;
  178. display: block;
  179. border-top: 2px solid #02E8FF;
  180. border-left: 2px solid #02E8FF;
  181. position: absolute;
  182. top: -2px;
  183. left: -2px;
  184. }
  185. .bottom-left-two{
  186. width: 15px;
  187. height: 15px;
  188. display: block;
  189. border-bottom: 2px solid #02E8FF;
  190. border-left: 2px solid #02E8FF;
  191. position: absolute;
  192. bottom: -2px;;
  193. left: -2px;;
  194. }
  195. .top-right-two{
  196. width: 15px;
  197. height: 15px;
  198. display: block;
  199. border-top: 2px solid #02E8FF;
  200. border-right: 2px solid #02E8FF;
  201. position: absolute;
  202. top: -2px;;
  203. right: -2px;;
  204. }
  205. .bottom-right-two {
  206. width: 15px;
  207. height: 15px;
  208. display: block;
  209. border-bottom: 2px solid #02E8FF;
  210. border-right: 2px solid #02E8FF;
  211. position: absolute;
  212. bottom: -2px;;
  213. right: -2px;;
  214. }
  215. ::-webkit-scrollbar { width: 0; height: 0; color: transparent; }
  216. </style>