fxj_jc.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. <template>
  2. <view class="page-body">
  3. <page-header :name="'副斜井绞车'" :bg="'#1560e0'" :showLeft="true" @goBack="goBack()"></page-header>
  4. <view class="scroll-wrap">
  5. <view class="basic-info-wrap">
  6. <view class="info-wrap">
  7. <view v-for="(item,index) in list" class="data-item-wrap">
  8. <view class="title">{{ item.name }}</view>
  9. <view class="data">{{ item.params }}</view>
  10. </view>
  11. </view>
  12. <view class="radius-wrap"></view>
  13. </view>
  14. <view class="detail-info-wrap">
  15. <page-card v-for="(item, index) in itemList" :key="index" style="margin-bottom: 30rpx;" :notShow="true"
  16. :name="item.name">
  17. <template v-slot:content>
  18. <simple-table :tableHead="tableHead" :list="item.params"></simple-table>
  19. </template>
  20. </page-card>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. list: [{
  30. name: '提升高度',
  31. params: '25m'
  32. }, {
  33. name: '提升速度',
  34. params: '18m/s'
  35. }, {
  36. name: '制动油压',
  37. params: '0.07Mpa'
  38. }, {
  39. name: '电枢电流',
  40. params: '22.86A'
  41. }, {
  42. name: '励磁电流',
  43. params: '22.45A'
  44. }, {
  45. name: '润滑油压',
  46. params: '0.11Mpa'
  47. }, {
  48. name: '电机温度1',
  49. params: '82.5℃'
  50. }, {
  51. name: '电机温度2',
  52. params: '85.3℃'
  53. }],
  54. tableHead: ['名称', '深指', '行控'], // 表名
  55. itemList: [{
  56. name: '提升',
  57. params: [{
  58. name: '过卷',
  59. params: [{
  60. status: 1
  61. }, {
  62. status: 1
  63. }]
  64. }, {
  65. name: '停车',
  66. params: [{
  67. status: 1
  68. }, {
  69. status: 1
  70. }]
  71. }, {
  72. name: '校正',
  73. params: [{
  74. status: 1
  75. }, {
  76. status: 1
  77. }]
  78. }, {
  79. name: '减速',
  80. params: [{
  81. status: 1
  82. }, {
  83. status: 0
  84. }]
  85. }]
  86. }, {
  87. name: '下放',
  88. params: [{
  89. name: '过卷',
  90. params: [{
  91. status: 1
  92. }, {
  93. status: 1
  94. }]
  95. }, {
  96. name: '停车',
  97. params: [{
  98. status: 1
  99. }, {
  100. status: 1
  101. }]
  102. }, {
  103. name: '校正',
  104. params: [{
  105. status: 0
  106. }, {
  107. status: 1
  108. }]
  109. }, {
  110. name: '减速',
  111. params: [{
  112. status: 1
  113. }, {
  114. status: 1
  115. }]
  116. }]
  117. }]
  118. }
  119. },
  120. onLoad() {
  121. this.getData()
  122. },
  123. methods: {
  124. goBack() { // 返回上一頁面
  125. uni.navigateBack()
  126. },
  127. async getData() {
  128. let res = await this.$http({
  129. url: `/qsy/dcs/transform/fxjjc`,
  130. method: 'POST'
  131. })
  132. this.list = res.data.data.list
  133. this.itemList = res.data.data.itemList
  134. }
  135. }
  136. }
  137. </script>
  138. <style scoped lang="scss">
  139. .page-body {
  140. .scroll-wrap {
  141. height: calc(100vh - 85rpx);
  142. overflow: scroll;
  143. .basic-info-wrap {
  144. position: relative;
  145. height: auto;
  146. padding: 50rpx 49rpx 80rpx;
  147. background: url(../../../static/page_bg.png);
  148. background-size: 110%;
  149. .info-wrap {
  150. display: flex;
  151. flex-wrap: wrap;
  152. .data-item-wrap {
  153. width: 33.33%;
  154. padding: 9rpx 0;
  155. min-height: 81rpx;
  156. text-align: center;
  157. margin-top: 48rpx;
  158. border-right: 1px solid #FFFFFF;
  159. .title {
  160. font-size: 22rpx;
  161. color: #FFFFFF;
  162. margin-bottom: 14rpx;
  163. }
  164. .data {
  165. font-weight: 700;
  166. font-size: 32rpx;
  167. color: #FFF600;
  168. }
  169. }
  170. .data-item-wrap:nth-child(-n+3) {
  171. margin-top: 0;
  172. }
  173. .data-item-wrap:nth-child(3n) {
  174. border: none;
  175. }
  176. }
  177. .img-wrap {
  178. padding: 38rpx 0 57rpx;
  179. text-align: center;
  180. image {
  181. width: 350rpx;
  182. height: 194rpx;
  183. }
  184. }
  185. .radius-wrap {
  186. position: absolute;
  187. left: 0;
  188. bottom: 0;
  189. width: 100vw;
  190. height: 30rpx;
  191. background-color: #fff;
  192. border-radius: 35rpx 35rpx 0 0;
  193. }
  194. }
  195. .detail-info-wrap {
  196. padding: 40rpx 35rpx;
  197. .detail-wrap {
  198. display: flex;
  199. flex-wrap: wrap;
  200. padding: 35rpx 55rpx 18rpx 55rpx;
  201. color: #8D8D8D;
  202. .item {
  203. display: flex;
  204. font-size: 26rpx;
  205. justify-content: space-between;
  206. width: calc(50% - 61rpx);
  207. margin-bottom: 50rpx;
  208. .params {
  209. color: #00BD00;
  210. }
  211. .status-wrap {
  212. width: 100%;
  213. /deep/ .tip-wrap {
  214. width: 100%;
  215. justify-content: space-between;
  216. }
  217. }
  218. }
  219. .item:nth-child(2n) {
  220. margin-left: 120rpx;
  221. }
  222. }
  223. .params-wrap {
  224. display: flex;
  225. flex-wrap: wrap;
  226. font-size: 26rpx;
  227. padding: 35rpx 55rpx;
  228. .item {
  229. width: calc(50% - 32rpx);
  230. display: flex;
  231. justify-content: space-between;
  232. margin-top: 50rpx;
  233. view:first-child {
  234. color: #8D8D8D;
  235. }
  236. }
  237. .item:nth-child(2n) {
  238. margin-left: 62rpx;
  239. }
  240. .item:nth-child(-n+2) {
  241. margin-top: 0;
  242. }
  243. }
  244. }
  245. }
  246. }
  247. </style>