index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <template>
  2. <div class="table-wrapper">
  3. <div class="table-box">
  4. <div class="title"
  5. style="font-family: AliMaMa;font-size: 30px;font-weight: 1000;text-align: left;height: 40px">
  6. <span style="position: absolute;top:-3px;left: 70px">风电、光伏电站</span>
  7. </div>
  8. <el-table
  9. :cell-style="{border:0,color:'#fff'}"
  10. :data="tableData"
  11. :header-cell-style="{color:'#fff'}"
  12. :row-style="{backgroundColor:'rgb(4,66,115,0.3)'}"
  13. size="mini"
  14. style="width: 1429px;font-size: 17px;background: none"
  15. >
  16. <el-table-column
  17. align="center"
  18. label="场站名称"
  19. prop="stationName"
  20. width="270px"
  21. >
  22. </el-table-column>
  23. <el-table-column
  24. align="center"
  25. label="实发值"
  26. prop="capacity"
  27. >
  28. </el-table-column>
  29. <el-table-column
  30. align="center"
  31. label="测量时间"
  32. prop="time">
  33. </el-table-column>
  34. <el-table-column
  35. align="center"
  36. label="数据接收时间"
  37. prop="date">
  38. </el-table-column>
  39. </el-table>
  40. </div>
  41. </div>
  42. </template>
  43. <script>
  44. export default {
  45. name: 'Article-Index',
  46. data() {
  47. return {
  48. form: {
  49. taskNumber: '',
  50. date: '',
  51. current: 1,
  52. size: 10
  53. },
  54. tableData: []
  55. }
  56. },
  57. methods: {},
  58. mounted() {
  59. const tableDataList = require('../../tabledata.json');
  60. this.tableData = tableDataList.windDataList
  61. }
  62. }
  63. </script>
  64. <style lang="less" scoped>
  65. body {
  66. border: 0;
  67. background-image: url(../../Articles/img/bgc.png)
  68. }
  69. .table-wrapper {
  70. width: 97%;
  71. height: 100%;
  72. padding-left: 2%;
  73. .table-box {
  74. min-height: 600px;
  75. background-size: cover;
  76. }
  77. .title {
  78. margin-bottom: 20px;
  79. margin-left: 60px;
  80. font-size: 18px;
  81. color: #fff;
  82. }
  83. /deep/ .el-form-item__label {
  84. color: #fff;
  85. font-size: 17px;
  86. }
  87. /deep/ .el-input__inner {
  88. background-color: rgba(14, 73, 131);
  89. border: 1px solid rgb(64, 153, 255);
  90. height: 34px;
  91. font-size: 17px;
  92. }
  93. /deep/ .el-table__header {
  94. background: url(../../Articles/img/bg1.png);
  95. }
  96. /deep/ .el-table--enable-row-hover .el-table__body tr:hover > td {
  97. background-color: rgb(103, 118, 49) !important
  98. }
  99. /deep/ .el-col {
  100. padding: 0;
  101. display: inline-block;
  102. position: relative;
  103. }
  104. /deep/ .el-col:nth-child(1) {
  105. width: 19%;
  106. }
  107. /deep/ .el-col:nth-child(2) {
  108. width: 22%;
  109. }
  110. /deep/ .el-col:nth-child(3) {
  111. width: 19%;
  112. }
  113. /deep/ .el-col:nth-child(4) {
  114. width: 19%;
  115. }
  116. /deep/ .el-col:nth-child(5) {
  117. width: 11%;
  118. }
  119. /deep/ .el-input__inner {
  120. width: 100%;
  121. }
  122. /deep/ .el-icon-arrow-up {
  123. transform: rotateZ(0deg);
  124. }
  125. /deep/ .el-icon-arrow-up:before {
  126. content: url(../../Articles/img/xiala2.png);
  127. }
  128. /deep/ .el-input__prefix {
  129. left: 75%;
  130. padding-top: 3px;
  131. width: 10%;
  132. }
  133. /deep/ .el-icon-date:before {
  134. content: url(../../Articles/img/riqi.png);
  135. }
  136. /deep/ .el-table__header tr {
  137. background: url(../../Articles/img/bg1.png);
  138. height: 49px;
  139. }
  140. /deep/ .el-table th.el-table__cell {
  141. background: none;
  142. }
  143. /deep/ .el-table__body {
  144. -webkit-border-vertical-spacing: 13px; // 垂直间距
  145. }
  146. /deep/ .el-form-item__content {
  147. text-align: left;
  148. }
  149. /deep/ .el-table, .el-table__expanded-cell {
  150. background-color: rgb(1, 40, 81);
  151. }
  152. }
  153. </style>