kjsp.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <template>
  2. <view class="page-body">
  3. <page-header :name="'矿井视频智能调速'" :bg="'transparent'" :showLeft="true" @goBack="goBack()"></page-header>
  4. <view class="bg-wrap"></view>
  5. <view class="scroll-wrap">
  6. <view class="info-wrap">
  7. <view class="title">矿井视频参数</view>
  8. <view class="table-wrap">
  9. <simple-table :tableHead="tableHead" :list="tableList"></simple-table>
  10. </view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. tableHead: ['参数', '数值'],
  20. tableList: [{
  21. name: '1#内部温度',
  22. params: ['0018.00']
  23. }, {
  24. name: '1#输出功率',
  25. params: ['0174.00']
  26. }, {
  27. name: '2#绕组A温度',
  28. params: ['0174.00']
  29. }, {
  30. name: '2部皮带PLC通讯状态',
  31. params: ['0082.00']
  32. }, {
  33. name: '3部AI相机实时煤量',
  34. params: ['0000.00']
  35. }, {
  36. name: '1#输出电压',
  37. params: ['9123.00']
  38. }, {
  39. name: '2#绕组B温度',
  40. params: ['0027.00']
  41. }, {
  42. name: '1#给定频率',
  43. params: ['1800.00']
  44. }, {
  45. name: '相机煤量降速阀值1',
  46. params: ['0000.00']
  47. }, {
  48. name: '1#输出电流',
  49. params: ['0111.00']
  50. }, {
  51. name: '2#绕组c温度',
  52. params: ['0027.00']
  53. }, {
  54. name: '相机煤量提速阈值1',
  55. params: ['0000.00']
  56. }, {
  57. name: '1#母线电压1',
  58. params: ['7740.00']
  59. }, {
  60. name: '1#输出频率',
  61. params: ['1800.00']
  62. }, {
  63. name: '2#给定频率',
  64. params: ['1802.00']
  65. }, {
  66. name: '相机煤量减速阈值2',
  67. params: ['0082.00']
  68. }, {
  69. name: '1#母线电压2',
  70. params: ['7749.00']
  71. }, {
  72. name: '1部皮带速度',
  73. params: ['0000.00']
  74. }, {
  75. name: '2#输入电压',
  76. params: ['10992.00']
  77. }, {
  78. name: '3部皮带速度',
  79. params: ['0000.00']
  80. }, {
  81. name: '1#绕组A温度',
  82. params: ['0026.00']
  83. }, {
  84. name: '2#内部温度',
  85. params: ['0019.00']
  86. }, {
  87. name: '2#输出功率',
  88. params: ['0182.00']
  89. }, {
  90. name: '2部皮带速度',
  91. params: ['0000.00']
  92. }, {
  93. name: '1#绕组B温度',
  94. params: ['0026.00']
  95. }, {
  96. name: '2#前轴温度',
  97. params: ['0028.00']
  98. }, {
  99. name: '2#输出电压',
  100. params: ['9051.00']
  101. }, {
  102. name: '相机煤量减速阈值2',
  103. params: ['0000.00']
  104. }, {
  105. name: '1#绕组c温度',
  106. params: ['0026.00']
  107. }, {
  108. name: '2#后轴温度',
  109. params: ['0026.00']
  110. }, {
  111. name: '2#输出电流',
  112. params: ['0117.00']
  113. }, {
  114. name: '2#输入电抗器温度',
  115. params: ['0021.00']
  116. }, {
  117. name: '1#输入电压',
  118. params: ['10961.00']
  119. }, {
  120. name: '2#母线电压1',
  121. params: ['7726.00']
  122. }, {
  123. name: '2#输出频率',
  124. params: ['1802.00']
  125. }, {
  126. name: '1#前轴温度',
  127. params: ['0000.00']
  128. }, {
  129. name: '1#输入电抗器温度',
  130. params: ['0020.00']
  131. }]
  132. }
  133. },
  134. onLoad(option) {
  135. this.getData()
  136. },
  137. methods: {
  138. goBack() { // 返回上一頁面
  139. uni.navigateBack()
  140. },
  141. async getData() {
  142. let res = await this.$http({
  143. url: `/qsy/dcs/transform/kjsp`,
  144. method: 'POST'
  145. })
  146. this.tableList = res.data.data.tableList
  147. }
  148. }
  149. }
  150. </script>
  151. <style scoped lang="scss">
  152. .page-body {
  153. position: relative;
  154. background-color: #f5f6f8;
  155. /deep/ .header-wrap {
  156. position: relative;
  157. z-index: 2;
  158. }
  159. .bg-wrap {
  160. position: absolute;
  161. z-index: 1;
  162. top: 0;
  163. width: 100vw;
  164. height: 670rpx;
  165. background: url(@/static/pg-bg-2.png);
  166. background-size: 100%;
  167. }
  168. .scroll-wrap {
  169. position: relative;
  170. z-index: 2;
  171. overflow-y: scroll;
  172. height: calc(100vh - 85rpx);
  173. padding: 60rpx 35rpx 45rpx;
  174. .status-wrap {
  175. display: flex;
  176. height: 167rpx;
  177. border-radius: 20rpx;
  178. margin-bottom: 60rpx;
  179. background: #C5EDFF;
  180. .item {
  181. flex: 1;
  182. justify-content: center;
  183. padding: 35rpx 97rpx 35rpx 97rpx;
  184. border-right: 1rpx dashed #fff;
  185. .name {
  186. font-size: 28rpx;
  187. font-weight: 700;
  188. text-align: center;
  189. margin-bottom: 25rpx;
  190. }
  191. .status {
  192. /deep/ .tip-wrap {
  193. font-size: 26rpx;
  194. .name {
  195. color: #8D8D8D;
  196. }
  197. .status-wrap {
  198. view:first-child {
  199. margin: 0 8rpx 0 30rpx;
  200. }
  201. }
  202. }
  203. }
  204. }
  205. .item:last-child {
  206. border: none;
  207. }
  208. }
  209. .info-wrap {
  210. .title {
  211. margin-bottom: 29rpx;
  212. font-weight: 700;
  213. font-size: 36rpx;
  214. color: #000000;
  215. }
  216. .table-wrap {
  217. overflow: hidden;
  218. border-radius: 20rpx;
  219. background-color: #fff;
  220. /deep/ .table-head {
  221. background-color: #F0F0F0;
  222. }
  223. }
  224. }
  225. }
  226. }
  227. </style>