SwitchingRoom.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <template>
  2. <div class="view-container">
  3. <div class="date">
  4. <span>{{ date }}</span>
  5. </div>
  6. <div class="dateStatistics">
  7. <div @click="handleDayView">日统计</div>
  8. <div @click="handleMonthView">月统计</div>
  9. </div>
  10. <div class="adress">
  11. <div class="address-opt">梅康一路</div>
  12. <div>梅康三路</div>
  13. <div>梅康五路</div>
  14. </div>
  15. <div class="sb">
  16. <a-row type="flex" justify="space-between" :gutter="[20,20]">
  17. <a-col :span="6" v-for="item in 8" :key="item" @click="handleView">
  18. <div class="sb-info">
  19. <div class="sb-info-title">
  20. <span>2G04</span>
  21. <span>10KV联合动力2#变压器</span>
  22. </div>
  23. <div class="sb-info-content">
  24. <div>低压进线V</div>
  25. <div class="arrow">
  26. <div>
  27. <div>电压:32V</div>
  28. <div><img src="../../assets/bgView/jiantouBlue.png" width="65px" alt=""></div>
  29. </div>
  30. <div style="color:rgba(40, 233, 108, 1)">
  31. <div>电流:32A</div>
  32. <div><img src="../../assets/bgView/jiantouGreen.png" width="65px" alt=""></div>
  33. </div>
  34. <div style="color:rgba(255, 216, 0, 1)">
  35. <div>有功电度:34V</div>
  36. <div><img src="../../assets/bgView/jiantouYellow.png" width="65px" alt=""></div>
  37. </div>
  38. </div>
  39. <div><img src="../../assets/bgView/bianyaqi.png" width="87px" alt=""></div>
  40. <div class="arrow">
  41. <div>
  42. <div>电压:32V</div>
  43. <div><img src="../../assets/bgView/jiantouBlue.png" width="65px" alt=""></div>
  44. </div>
  45. <div style="color:rgba(40, 233, 108, 1)">
  46. <div>电压:32V</div>
  47. <div><img src="../../assets/bgView/jiantouGreen.png" width="65px" alt=""></div>
  48. </div>
  49. </div>
  50. <div>高压出线KV</div>
  51. </div>
  52. </div>
  53. </a-col>
  54. <a-col :span="6" v-for="item in 8" :key="item">
  55. <div class="sb-info">
  56. <div class="sb-info-title">
  57. <span>2G06</span>
  58. <span>10KV开山螺杆B线</span>
  59. </div>
  60. <div class="sb-info-content">
  61. <div>低压进线V</div>
  62. <div class="arrow">
  63. <div>
  64. <div>电压:32V</div>
  65. <div><img src="../../assets/bgView/jiantouBlue.png" width="65px" alt=""></div>
  66. </div>
  67. <div style="color:rgba(40, 233, 108, 1)">
  68. <div>电压:32V</div>
  69. <div><img src="../../assets/bgView/jiantouGreen.png" width="65px" alt=""></div>
  70. </div>
  71. <div style="color:rgba(255, 216, 0, 1)">
  72. <div>电压:32V</div>
  73. <div><img src="../../assets/bgView/jiantouYellow.png" width="65px" alt=""></div>
  74. </div>
  75. </div>
  76. <div><img src="../../assets/bgView/luogan.png" width="153px" alt=""></div>
  77. </div>
  78. </div>
  79. </a-col>
  80. </a-row>
  81. </div>
  82. </div>
  83. </template>
  84. <script>
  85. export default {
  86. data () {
  87. return {
  88. date: this.BaseTool.Moment().format(this.BaseTool.Date.PICKER_NORM_DATE_PATTERN_CHINESE)
  89. }
  90. },
  91. methods: {
  92. handleView () {
  93. this.$router.push('/TransformerDetailBigScreen')
  94. },
  95. handleDayView () {
  96. const a = document.createElement('a')
  97. a.href = '/DayStatistics'
  98. a.click()
  99. },
  100. handleMonthView () {
  101. const a = document.createElement('a')
  102. a.href = '/MonthStatistics'
  103. a.click()
  104. }
  105. }
  106. }
  107. </script>
  108. <style lang="less" scoped>
  109. .view-container {
  110. width:1920px;
  111. height:1080px;
  112. font-family: PingFang SC;
  113. padding: 80px 67px;
  114. &::after {
  115. content: "";
  116. width:1920px;
  117. height:1080px;
  118. background: url(../../assets/bgView/SwitchingRoomBG.png);
  119. top: 0;
  120. left: 0;
  121. bottom: 0;
  122. right: 0;
  123. position: absolute;
  124. z-index: -1;
  125. }
  126. }
  127. .dateStatistics{
  128. width: 250px;
  129. color: #FFFFFF;
  130. font-size: 20px;
  131. display: flex;
  132. justify-content: space-between;
  133. position: absolute;
  134. top:58px;
  135. right:96px;
  136. div {
  137. width: 173px;
  138. height: 58px;
  139. line-height: 50px;
  140. text-align: center;
  141. border: 2px solid #0089D8;
  142. border-radius: 9px;
  143. &:hover{
  144. cursor: pointer;
  145. }
  146. }
  147. }
  148. .date{
  149. width: 250px;
  150. color: #FFFFFF;
  151. font-size: 20px;
  152. display: flex;
  153. justify-content: space-between;
  154. position: absolute;
  155. top:58px;
  156. left:96px;
  157. }
  158. .adress{
  159. width: 660px;
  160. margin: 20px auto;
  161. font-size: 30px;
  162. font-weight: bold;
  163. color: #FFFFFF;
  164. display:flex;
  165. justify-content: space-between;
  166. div {
  167. width: 173px;
  168. height: 58px;
  169. line-height: 50px;
  170. text-align: center;
  171. border: 2px solid #0089D8;
  172. border-radius: 9px;
  173. &:hover{
  174. cursor: pointer;
  175. }
  176. }
  177. .address-opt {
  178. box-shadow: 0px 0px 40px 0px rgba(0, 137, 216, 0.8) inset;
  179. color:#28E96C;
  180. }
  181. }
  182. .sb{
  183. color:#fff;
  184. margin-top: 30px;
  185. }
  186. .sb-info{
  187. width: 424px;
  188. height:185px;
  189. background: url(../../assets/bgView/sbInfoBg.png) no-repeat;
  190. position: relative;
  191. .sb-info-title{
  192. width: 208px;
  193. font-size: 13px;
  194. font-weight: bold;
  195. color: RGBA(192, 231, 247, 1);
  196. display: flex;
  197. justify-content:space-between;
  198. position: absolute;
  199. top:16px;
  200. left:18px;
  201. &::before{
  202. content: '';
  203. width: 5px;
  204. height: 10px;
  205. background: #5ACCF8;
  206. position: absolute;
  207. top:5px;
  208. left:2px;
  209. }
  210. span:first-child{
  211. color:#5ACCF8;
  212. padding-left:10px;
  213. }
  214. }
  215. .sb-info-content{
  216. display: flex;
  217. justify-content: space-around;
  218. align-items:center;
  219. font-size: 14px;
  220. font-weight: 500;
  221. color: #5ACCF8;
  222. padding: 44px 10px 10px 7px;
  223. .arrow{
  224. font-size:12px;
  225. }
  226. }
  227. }
  228. </style>