rqgl.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <template>
  2. <view class="page-body">
  3. <page-header :name="pageData.name" :bg="'#1560e0'" :showLeft="true" @goBack="goBack()"></page-header>
  4. <view class="scroll-wrap">
  5. <view class="basic-info-wrap">
  6. <view class="img-wrap">
  7. <image src="@/static/rhb.jpg" />
  8. </view>
  9. <view class="radius-wrap"></view>
  10. </view>
  11. <view class="detail-info-wrap">
  12. <page-card style="margin-bottom: 30rpx;" :notShow="true" :name="'设备参数'">
  13. <template v-slot:content>
  14. <simple-table :tableHead="tableHead" :list="paramsList"></simple-table>
  15. </template>
  16. </page-card>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. pageData: {},
  26. tableHead: ['名称', '参数'],
  27. paramsList: [{
  28. name: 'PID自动调节设定值',
  29. params: ['0.02MPa']
  30. },{
  31. name: '2#补水流量',
  32. params: ['203.01m³/h']
  33. },{
  34. name: '锅筒水位',
  35. params: ['0.02MM']
  36. },{
  37. name: '锅筒压力',
  38. params: ['0.02MM']
  39. },{
  40. name: '排烟温度',
  41. params: ['0.02℃']
  42. },{
  43. name: '燃烧器负荷',
  44. params: ['0.02%']
  45. },{
  46. name: '起停炉设定值',
  47. params: ['0.02MPa']
  48. },{
  49. name: '主蒸汽压力',
  50. params: ['0.02MPa']
  51. },{
  52. name: '主蒸汽温度',
  53. params: ['0.02℃']
  54. },{
  55. name: '2#蒸汽电动闸',
  56. params: ['0.02%']
  57. },{
  58. name: '水箱液位',
  59. params: ['0.02m']
  60. },{
  61. name: '3#补水泵运行频率',
  62. params: ['0.02Hz']
  63. }]
  64. }
  65. },
  66. onLoad(option) {
  67. this.pageData = JSON.parse(option.data)
  68. this.getData()
  69. },
  70. methods: {
  71. goBack() { // 返回上一頁面
  72. uni.navigateBack()
  73. },
  74. async getData() {
  75. let res = await this.$http({
  76. url: `/qsy/dcs/transform/rqgl`,
  77. method: 'POST'
  78. })
  79. this.paramsList = res.data.data.paramsList
  80. }
  81. }
  82. }
  83. </script>
  84. <style scoped lang="scss">
  85. .page-body {
  86. .scroll-wrap {
  87. height: calc(100vh - 85rpx);
  88. overflow: scroll;
  89. .basic-info-wrap {
  90. position: relative;
  91. height: auto;
  92. padding: 0rpx 49rpx 0;
  93. background: url(../../../static/page_bg.png);
  94. background-size: 140%;
  95. .info-wrap {
  96. display: flex;
  97. flex-wrap: wrap;
  98. .data-item-wrap {
  99. width: 33.33%;
  100. padding: 9rpx 0;
  101. min-height: 81rpx;
  102. text-align: center;
  103. margin-top: 48rpx;
  104. border-right: 1px solid #FFFFFF;
  105. .title {
  106. font-size: 22rpx;
  107. color: #FFFFFF;
  108. margin-bottom: 14rpx;
  109. }
  110. .data {
  111. font-weight: 700;
  112. font-size: 32rpx;
  113. color: #FFF600;
  114. }
  115. }
  116. .data-item-wrap:nth-child(-n+3) {
  117. margin-top: 0;
  118. }
  119. .data-item-wrap:nth-child(3n) {
  120. border: none;
  121. }
  122. }
  123. .img-wrap {
  124. padding: 38rpx 0 57rpx;
  125. text-align: center;
  126. image {
  127. width: 100rpx;
  128. height: 120rpx;
  129. }
  130. }
  131. .radius-wrap {
  132. position: absolute;
  133. left: 0;
  134. bottom: 0;
  135. width: 100vw;
  136. height: 30rpx;
  137. background-color: #fff;
  138. border-radius: 35rpx 35rpx 0 0;
  139. }
  140. }
  141. .detail-info-wrap {
  142. padding: 40rpx 35rpx;
  143. .detail-wrap {
  144. display: flex;
  145. flex-wrap: wrap;
  146. padding: 35rpx 55rpx 18rpx 55rpx;
  147. color: #8D8D8D;
  148. .item {
  149. display: flex;
  150. font-size: 26rpx;
  151. justify-content: space-between;
  152. width: calc(50% - 61rpx);
  153. margin-bottom: 50rpx;
  154. .params {
  155. color: #00BD00;
  156. }
  157. .status-wrap {
  158. width: 100%;
  159. /deep/ .tip-wrap {
  160. width: 100%;
  161. justify-content: space-between;
  162. }
  163. }
  164. }
  165. .item:nth-child(2n) {
  166. margin-left: 120rpx;
  167. }
  168. }
  169. .params-wrap {
  170. display: flex;
  171. flex-wrap: wrap;
  172. font-size: 26rpx;
  173. padding: 35rpx 55rpx;
  174. .item {
  175. width: calc(50% - 32rpx);
  176. display: flex;
  177. justify-content: space-between;
  178. margin-top: 50rpx;
  179. view:first-child {
  180. color: #8D8D8D;
  181. }
  182. }
  183. .item:nth-child(2n) {
  184. margin-left: 62rpx;
  185. }
  186. .item:nth-child(-n+2) {
  187. margin-top: 0;
  188. }
  189. }
  190. }
  191. }
  192. }
  193. </style>