center-bottom.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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="background: none"
  15. >
  16. <el-table-column align="center" label="断面名称" prop="name" width="100px"></el-table-column>
  17. <el-table-column align="center" label="状态" prop="state">
  18. <template slot-scope="scope">
  19. <img src="../../../assets/images/r-green.png" height="16px">
  20. </template>
  21. </el-table-column>
  22. <el-table-column align="center" label="有功" prop="ap"></el-table-column>
  23. <el-table-column align="center" label="负限" prop="lower"></el-table-column>
  24. <el-table-column align="center" label="正限" prop="upper"></el-table-column>
  25. <el-table-column align="center" label="区间" prop="range">
  26. <template slot-scope="scope">
  27. <div style="color:#92fc53">正常</div>
  28. </template>
  29. </el-table-column>
  30. </el-table>
  31. </div>
  32. </div>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. form: {
  39. taskNumber: '',
  40. date: '',
  41. current: 1,
  42. size: 10
  43. },
  44. tableData: []
  45. }
  46. },
  47. methods: {},
  48. mounted() {
  49. this.tableData = [
  50. {
  51. "name": "汗海-庆云断面",
  52. "state": "1",
  53. "ap": "500",
  54. "lower": "450",
  55. "upper": "550",
  56. "range": "1"
  57. },
  58. {
  59. "name": "汗海-庆云断面",
  60. "state": "1",
  61. "ap": "500",
  62. "lower": "450",
  63. "upper": "550",
  64. "range": "1"
  65. },
  66. {
  67. "name": "汗海-庆云断面",
  68. "state": "1",
  69. "ap": "500",
  70. "lower": "450",
  71. "upper": "550",
  72. "range": "1"
  73. },
  74. {
  75. "name": "汗海-庆云断面",
  76. "state": "1",
  77. "ap": "500",
  78. "lower": "450",
  79. "upper": "550",
  80. "range": "1"
  81. },
  82. {
  83. "name": "汗海-庆云断面",
  84. "state": "1",
  85. "ap": "500",
  86. "lower": "450",
  87. "upper": "550",
  88. "range": "1"
  89. },
  90. ]
  91. }
  92. }
  93. </script>
  94. <style lang="less" scoped>
  95. .circle {
  96. width: 50px;
  97. height: 50px;
  98. border-radius: 50%;
  99. background-color: #4ded68;
  100. }
  101. @font-face {
  102. font-family: AliMaMa;//自定义字体名称
  103. src: url("../../Articles/font/AlimamaDaoLiTi.ttf")
  104. }
  105. .table-wrapper {
  106. //width: 1483px;
  107. //padding-left: 20px;
  108. .table-box {
  109. //min-height: 600px;
  110. margin-left: 6%;
  111. margin-top: 5%;
  112. width: 550px;
  113. background-size: cover;
  114. }
  115. /deep/ .el-form-item__label {
  116. color: #fff;
  117. //font-size: 17px;
  118. }
  119. /deep/ .el-input__inner {
  120. background-color: rgba(14, 73, 131);
  121. border: 1px solid rgb(64, 153, 255);
  122. //height: 34px;
  123. //font-size: 17px;
  124. }
  125. /deep/ .el-table__header {
  126. background: url(../../Articles/img/bg1.png);
  127. }
  128. ///deep/ .el-table th.el-table__cell.is-leaf {
  129. // border-bottom: none;
  130. //}
  131. /deep/ .el-table--enable-row-hover .el-table__body tr:hover > td {
  132. background-color: rgb(103, 118, 49) !important
  133. }
  134. /deep/ .el-col {
  135. padding: 0;
  136. display: inline-block;
  137. position: relative;
  138. }
  139. /deep/ .el-col:nth-child(1) {
  140. width: 19%;
  141. }
  142. /deep/ .el-col:nth-child(2) {
  143. width: 22%;
  144. }
  145. /deep/ .el-col:nth-child(3) {
  146. width: 19%;
  147. }
  148. /deep/ .el-col:nth-child(4) {
  149. width: 19%;
  150. }
  151. /deep/ .el-col:nth-child(5) {
  152. width: 15%;
  153. }
  154. /deep/ .el-input__inner:nth-child(1) {
  155. //width: 176px;
  156. }
  157. /deep/ .el-input__inner:nth-child(2) {
  158. //width: 176px;
  159. }
  160. /deep/ .el-input__inner:nth-child(2) {
  161. //width: 126px;
  162. }
  163. /deep/ .el-input__inner:nth-child(2) {
  164. //width: 175px;
  165. }
  166. /deep/ .el-icon-arrow-up {
  167. transform: rotateZ(0deg);
  168. }
  169. /deep/ .el-icon-arrow-up:before {
  170. content: url(../../Articles/img/xiala2.png);
  171. }
  172. /deep/ .el-input__prefix {
  173. right: -60px;
  174. padding-top: 3px;
  175. }
  176. /deep/ .el-icon-date:before {
  177. content: url(../../Articles/img/riqi.png);
  178. }
  179. /deep/ .el-table__header tr {
  180. background: url(../../Articles/img/bg1.png);
  181. //height: 49px;
  182. }
  183. /deep/ .el-table th.el-table__cell {
  184. background: none;
  185. }
  186. /deep/ .el-table__body {
  187. //-webkit-border-vertical-spacing: 13px; // 垂直间距
  188. }
  189. /deep/ .el-form-item__content {
  190. text-align: left;
  191. }
  192. /deep/ .el-table, .el-table__expanded-cell {
  193. background-color: rgb(1, 40, 81);
  194. }
  195. }
  196. </style>