index.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. .el-table__row > td {
  66. border: none;
  67. }
  68. .el-table::before {
  69. height: 0;
  70. }
  71. body {
  72. border: 0;
  73. background-image: url(../../Articles/img/bgc.png)
  74. }
  75. .table-wrapper {
  76. width: 97%;
  77. height: 100%;
  78. padding-left: 2%;
  79. .table-box {
  80. min-height: 600px;
  81. background-size: cover;
  82. }
  83. .title {
  84. margin-bottom: 20px;
  85. margin-left: 60px;
  86. font-size: 18px;
  87. color: #fff;
  88. }
  89. /deep/ .el-form-item__label {
  90. color: #fff;
  91. font-size: 17px;
  92. }
  93. /deep/ .el-input__inner {
  94. background-color: rgba(14, 73, 131);
  95. border: 1px solid rgb(64, 153, 255);
  96. height: 34px;
  97. font-size: 17px;
  98. }
  99. /deep/ .el-table__header {
  100. background: url(../../Articles/img/bg1.png);
  101. }
  102. /deep/ .el-table--enable-row-hover .el-table__body tr:hover > td {
  103. background-color: rgb(103, 118, 49) !important
  104. }
  105. /deep/ .el-col {
  106. padding: 0;
  107. display: inline-block;
  108. position: relative;
  109. }
  110. /deep/ .el-col:nth-child(1) {
  111. width: 19%;
  112. }
  113. /deep/ .el-col:nth-child(2) {
  114. width: 22%;
  115. }
  116. /deep/ .el-col:nth-child(3) {
  117. width: 19%;
  118. }
  119. /deep/ .el-col:nth-child(4) {
  120. width: 19%;
  121. }
  122. /deep/ .el-col:nth-child(5) {
  123. width: 11%;
  124. }
  125. /deep/ .el-input__inner {
  126. width: 100%;
  127. }
  128. /deep/ .el-icon-arrow-up {
  129. transform: rotateZ(0deg);
  130. }
  131. /deep/ .el-icon-arrow-up:before {
  132. content: url(../../Articles/img/xiala2.png);
  133. }
  134. /deep/ .el-input__prefix {
  135. left: 75%;
  136. padding-top: 3px;
  137. width: 10%;
  138. }
  139. /deep/ .el-icon-date:before {
  140. content: url(../../Articles/img/riqi.png);
  141. }
  142. /deep/ .el-table__header tr {
  143. background: url(../../Articles/img/bg1.png);
  144. height: 49px;
  145. }
  146. /deep/ .el-table th.el-table__cell {
  147. background: none;
  148. border: 0;
  149. }
  150. /deep/ .el-table__body {
  151. -webkit-border-vertical-spacing: 13px; // 垂直间距
  152. }
  153. /deep/ .el-form-item__content {
  154. text-align: left;
  155. }
  156. /deep/ .el-table, .el-table__expanded-cell {
  157. background-color: rgb(1, 40, 81);
  158. }
  159. }
  160. </style>