index.vue 4.6 KB

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