rqddllx.vue 5.8 KB

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