ssddjh.vue 3.8 KB

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