DayStatistics.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <template>
  2. <div class="view-container">
  3. <div class="title"><span>时代思康用电量日报</span></div>
  4. <div class="content">
  5. <div class="history">
  6. <span class="top-left"></span><span class="top-right"></span><span class="bottom-left"></span><span class="bottom-right"></span>
  7. <div class="history-title">
  8. <div>
  9. <a-date-picker
  10. v-model="time"
  11. :format="BaseTool.Date.PICKER_NORM_DATE_PATTERN"
  12. @change="onDateChange"
  13. @ok="onOk">
  14. <span class="date">
  15. <a-icon type="calendar" theme="filled" />
  16. </span>
  17. </a-date-picker>
  18. {{ BaseTool.Date.formatter(time,dateVisual?BaseTool.Date.PICKER_NORM_DATE_PATTERN:BaseTool.Date.PICKER_NORM_YEAR_MONTH) }}
  19. </div>
  20. </div>
  21. <div class="body">
  22. <table>
  23. <thead>
  24. <tr >
  25. <th rowspan="2" class="list-header" style="color:#fff">时间</th>
  26. <th colspan="2" class="list-header" style="color:#fff" v-for="i in 6" :key="i"> 1G0{{ i }}时代思康{{ i }}回</th>
  27. </tr>
  28. <tr>
  29. <template v-for="i in 6 ">
  30. <th class="list-header" style="color:#fff">正向有功(kwh)</th>
  31. <th class="list-header" style="color:#fff">正向无功(kwh)</th>
  32. </template>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <tr v-for="i in 24" :key="i">
  37. <td class="list-header" style="box-shadow:none; background: rgba(2, 205, 255, 0.1);font-size: 16px;font-weight: 400;">{{ (i-1) + ':00' }}</td>
  38. <template v-for="i in 6 ">
  39. <td class="list-header" style="box-shadow:none; background: rgba(2, 205, 255, 0.1);font-size: 16px;font-weight: 400;">{{ 443520.00 }}</td>
  40. <td class="list-header" style="box-shadow:none; background: rgba(2, 205, 255, 0.1);font-size: 16px;font-weight: 400;">{{ 219040.00 }}</td>
  41. </template>
  42. </tr>
  43. <tr>
  44. <td class="list-header" style="box-shadow:none; background: rgba(2, 205, 255, 0.1);font-size: 16px;font-weight: 400;">日用电总</td>
  45. <template v-for="i in 6 ">
  46. <td class="list-header" style="box-shadow:none; background: rgba(2, 205, 255, 0.1);font-size: 16px;font-weight: 400;">{{ 219040.00*24 }}</td>
  47. <td class="list-header" style="box-shadow:none; background: rgba(2, 205, 255, 0.1);font-size: 16px;font-weight: 400;"></td>
  48. </template>
  49. </tr>
  50. </tbody>
  51. </table>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </template>
  57. <script>
  58. export default {
  59. data () {
  60. return {
  61. time: '',
  62. dateVisual: true,
  63. details: [{ 'title': '状态', 'value': '开机' }, { 'title': '总电压', 'value': '220V' },
  64. { 'title': '电流', 'value': '30A' }, { 'title': '总能耗', 'value': '3256kwh' },
  65. { 'title': '日能耗', 'value': '300kwh' }, { 'title': '月能耗', 'value': '300kwh' },
  66. { 'title': '温度', 'value': '56度' }, { 'title': '预警次数', 'value': '10次' }]
  67. }
  68. },
  69. methods: {
  70. onDateChange (value, dateString) {
  71. this.dateVisual = true
  72. },
  73. onMonthChange (value, dateString) {
  74. this.dateVisual = false
  75. },
  76. onOk (value) {
  77. console.log('onOk: ', value)
  78. }
  79. }
  80. }
  81. </script>
  82. <style lang="less" scoped>
  83. .view-container {
  84. width:1920px;
  85. height:1080px;
  86. font-family: PingFang SC;
  87. padding: 15px 37px;
  88. &::after {
  89. content: "";
  90. width:1920px;
  91. height:1080px;
  92. background: url(../../assets/bgView/TransformerDetail.png);
  93. top: 0;
  94. left: 0;
  95. bottom: 0;
  96. right: 0;
  97. position: absolute;
  98. z-index: -1;
  99. }
  100. }
  101. .title{
  102. display: flex;
  103. justify-content: center;
  104. width: 600px;
  105. margin:0 auto;
  106. font-size: 42px;
  107. font-weight: bold;
  108. text-shadow: 0px 2px 4px rgba(4,0,0,0.3);
  109. background: linear-gradient(0deg, #BCBCBC 1.123046875%, #FFFFFF 100%);
  110. -webkit-background-clip: text;
  111. -webkit-text-fill-color: transparent;
  112. }
  113. .content{
  114. display: flex;
  115. justify-content: space-between;
  116. }
  117. .info{
  118. color:#5ACCF8;
  119. width: 766px;
  120. height:950px;
  121. position: relative;
  122. border: 2px solid #045693;
  123. padding:30px;
  124. margin-top:30px;
  125. .sb-proportion-info{
  126. position: relative;
  127. display: flex;
  128. flex-direction:column;
  129. align-items: center;
  130. justify-content:center;
  131. position: relative;
  132. // width: 141px;
  133. height: 150px;
  134. background: rgba(0, 186, 255, 0.1);
  135. }
  136. }
  137. .history{
  138. color:#A8E6F3 ;
  139. width: 100%;
  140. height:950px;
  141. position: relative;
  142. border: 2px solid #045693;
  143. padding:0 30px;
  144. margin-top:28px;
  145. .history-title{
  146. display: flex;
  147. justify-content: space-between;
  148. font-size: 30px;
  149. font-weight: bold;
  150. margin:18px 0;
  151. color: #fff;
  152. .month{
  153. color:#01D4F9;
  154. font-size:40px;
  155. position: relative;
  156. &::before{
  157. content:'月';
  158. color:#fff;
  159. font-size:16px;
  160. top: 23px;
  161. left: 12px;
  162. bottom: 0;
  163. right: 0;
  164. position: absolute;
  165. }
  166. }
  167. .date{
  168. color:#01D4F9;
  169. font-size:40px;
  170. position: relative;
  171. &::before{
  172. content:'日';
  173. color:#fff;
  174. font-size:16px;
  175. top: 23px;
  176. left: 12px;
  177. bottom: 0;
  178. right: 0;
  179. position: absolute;
  180. }
  181. }
  182. }
  183. table{
  184. width: 100%;
  185. margin: 0 auto;
  186. border: 1px solid #01D4F9;
  187. border-collapse: collapse;
  188. th,
  189. td {
  190. border: 1px solid #01D4F9;
  191. }
  192. }
  193. .list-header{
  194. padding: 0;
  195. width: 180px;
  196. height: 30px;
  197. line-height:30px;
  198. font-size: 16px;
  199. font-weight: bold;
  200. margin: 10px;
  201. font-family: Microsoft YaHei;
  202. background: rgba(2, 205, 255, 0);
  203. box-shadow: 0px 0px 40px 0px rgba(0, 122, 162, 0.8) inset;
  204. text-align: center;
  205. }
  206. }
  207. .top-left{
  208. width: 12px;
  209. height: 12px;
  210. display: block;
  211. background-color: rgba(4, 8, 20, 0.8);
  212. border: 2px solid #02E8FF;
  213. position: absolute;
  214. top: -6px;
  215. left: -6px;
  216. }
  217. .bottom-left{
  218. width: 12px;
  219. height: 12px;
  220. display: block;
  221. background-color: rgba(4, 8, 20, 0.8);
  222. border: 2px solid #02E8FF;
  223. position: absolute;
  224. bottom: -6px;
  225. left: -6px;
  226. }
  227. .top-right{
  228. width: 12px;
  229. height: 12px;
  230. display: block;
  231. background-color: rgba(4, 8, 20, 0.8);
  232. border: 2px solid #02E8FF;
  233. position: absolute;
  234. top: -6px;
  235. right: -6px;
  236. }
  237. .bottom-right {
  238. width: 12px;
  239. height: 12px;
  240. display: block;
  241. background-color: rgba(4, 8, 20, 0.8);
  242. border: 2px solid #02E8FF;
  243. position: absolute;
  244. bottom: -6px;
  245. right: -6px;
  246. }
  247. .top-left-two{
  248. width: 15px;
  249. height: 15px;
  250. display: block;
  251. border-top: 2px solid #02E8FF;
  252. border-left: 2px solid #02E8FF;
  253. position: absolute;
  254. top: -2px;
  255. left: -2px;
  256. }
  257. .bottom-left-two{
  258. width: 15px;
  259. height: 15px;
  260. display: block;
  261. border-bottom: 2px solid #02E8FF;
  262. border-left: 2px solid #02E8FF;
  263. position: absolute;
  264. bottom: -2px;;
  265. left: -2px;;
  266. }
  267. .top-right-two{
  268. width: 15px;
  269. height: 15px;
  270. display: block;
  271. border-top: 2px solid #02E8FF;
  272. border-right: 2px solid #02E8FF;
  273. position: absolute;
  274. top: -2px;;
  275. right: -2px;;
  276. }
  277. .bottom-right-two {
  278. width: 15px;
  279. height: 15px;
  280. display: block;
  281. border-bottom: 2px solid #02E8FF;
  282. border-right: 2px solid #02E8FF;
  283. position: absolute;
  284. bottom: -2px;;
  285. right: -2px;;
  286. }
  287. ::-webkit-scrollbar { width: 0; height: 0; color: transparent; }
  288. </style>