index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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="capacity">
  33. </el-table-column>
  34. <el-table-column
  35. align="center"
  36. label="现货系统偏差值"
  37. prop="capacity">
  38. </el-table-column>
  39. <el-table-column
  40. align="center"
  41. label="实测值"
  42. prop="capacity">
  43. </el-table-column>
  44. <el-table-column
  45. align="center"
  46. label="实测值偏差值"
  47. prop="capacity">
  48. </el-table-column>
  49. </el-table>
  50. </div>
  51. </div>
  52. </template>
  53. <script>
  54. export default {
  55. name: 'Article-Index',
  56. data() {
  57. return {
  58. form: {
  59. taskNumber: '',
  60. date: '',
  61. current: 1,
  62. size: 10
  63. },
  64. tableData: []
  65. }
  66. },
  67. methods: {},
  68. mounted() {
  69. const tableDataList = require('../../tabledata.json');
  70. this.tableData = tableDataList.windDataList
  71. }
  72. }
  73. </script>
  74. <style lang="less" scoped>
  75. .el-table__row > td {
  76. border: none;
  77. }
  78. .el-table::before {
  79. height: 0;
  80. }
  81. body {
  82. border: 0;
  83. background-image: url(../../Articles/img/bgc.png)
  84. }
  85. .table-wrapper {
  86. width: 97%;
  87. height: 100%;
  88. padding-left: 2%;
  89. .table-box {
  90. min-height: 600px;
  91. background-size: cover;
  92. }
  93. .title {
  94. margin-bottom: 20px;
  95. margin-left: 60px;
  96. font-size: 18px;
  97. color: #fff;
  98. }
  99. /deep/ .el-form-item__label {
  100. color: #fff;
  101. font-size: 17px;
  102. }
  103. /deep/ .el-input__inner {
  104. background-color: rgba(14, 73, 131);
  105. border: 1px solid rgb(64, 153, 255);
  106. height: 34px;
  107. font-size: 17px;
  108. }
  109. /deep/ .el-table__header {
  110. background: url(../../Articles/img/bg1.png);
  111. }
  112. /deep/ .el-table--enable-row-hover .el-table__body tr:hover > td {
  113. background-color: rgb(103, 118, 49) !important
  114. }
  115. /deep/ .el-col {
  116. padding: 0;
  117. display: inline-block;
  118. position: relative;
  119. }
  120. /deep/ .el-col:nth-child(1) {
  121. width: 19%;
  122. }
  123. /deep/ .el-col:nth-child(2) {
  124. width: 22%;
  125. }
  126. /deep/ .el-col:nth-child(3) {
  127. width: 19%;
  128. }
  129. /deep/ .el-col:nth-child(4) {
  130. width: 19%;
  131. }
  132. /deep/ .el-col:nth-child(5) {
  133. width: 11%;
  134. }
  135. /deep/ .el-input__inner {
  136. width: 100%;
  137. }
  138. /deep/ .el-icon-arrow-up {
  139. transform: rotateZ(0deg);
  140. }
  141. /deep/ .el-icon-arrow-up:before {
  142. content: url(../../Articles/img/xiala2.png);
  143. }
  144. /deep/ .el-input__prefix {
  145. left: 75%;
  146. padding-top: 3px;
  147. width: 10%;
  148. }
  149. /deep/ .el-icon-date:before {
  150. content: url(../../Articles/img/riqi.png);
  151. }
  152. /deep/ .el-table__header tr {
  153. background: url(../../Articles/img/bg1.png);
  154. height: 49px;
  155. }
  156. /deep/ .el-table th.el-table__cell {
  157. background: none;
  158. border: 0;
  159. }
  160. /deep/ .el-table__body {
  161. -webkit-border-vertical-spacing: 13px; // 垂直间距
  162. }
  163. /deep/ .el-form-item__content {
  164. text-align: left;
  165. }
  166. /deep/ .el-table, .el-table__expanded-cell {
  167. background-color: rgb(1, 40, 81);
  168. }
  169. }
  170. </style>