xgl.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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: '1#锅炉',
  29. params: ['105℃']
  30. },{
  31. name: '2#锅炉',
  32. params: ['105℃']
  33. },{
  34. name: '3#锅炉',
  35. params: ['106℃']
  36. },{
  37. name: '4#锅炉',
  38. params: ['100℃']
  39. },{
  40. name: '锅炉供水管',
  41. params: ['120℃']
  42. },{
  43. name: '二次供水管',
  44. params: ['121℃']
  45. },{
  46. name: '实际目标水温',
  47. params: ['130℃']
  48. },{
  49. name: '当前室内水温',
  50. params: ['100℃']
  51. },{
  52. name: '低低控制温度',
  53. params: ['50℃']
  54. },{
  55. name: '最低控制温度',
  56. params: ['50℃']
  57. },{
  58. name: '最高控制温度',
  59. params: ['200℃']
  60. },{
  61. name: '出水超温',
  62. params: ['110℃']
  63. },{
  64. name: '二次供水超温',
  65. params: ['115℃']
  66. },{
  67. name: '二次回水低压',
  68. params: ['0.57MPa']
  69. },{
  70. name: '水箱液位高',
  71. params: ['60M']
  72. },{
  73. name: '水箱液位低',
  74. params: ['20M']
  75. }]
  76. }
  77. },
  78. onLoad(option) {
  79. this.pageData = JSON.parse(option.data)
  80. this.getData()
  81. },
  82. methods: {
  83. goBack() { // 返回上一頁面
  84. uni.navigateBack()
  85. },
  86. async getData() {
  87. let res = await this.$http({
  88. url: `/qsy/dcs/transform/xgl`,
  89. method: 'POST'
  90. })
  91. this.paramsList = res.data.data.paramsList
  92. }
  93. }
  94. }
  95. </script>
  96. <style scoped lang="scss">
  97. .page-body {
  98. .scroll-wrap {
  99. height: calc(100vh - 85rpx);
  100. overflow: scroll;
  101. .basic-info-wrap {
  102. position: relative;
  103. height: auto;
  104. padding: 50rpx 49rpx 0;
  105. background: url(../../../static/page_bg.png);
  106. background-size: 140%;
  107. .info-wrap {
  108. display: flex;
  109. flex-wrap: wrap;
  110. .data-item-wrap {
  111. width: 33.33%;
  112. padding: 9rpx 0;
  113. min-height: 81rpx;
  114. text-align: center;
  115. margin-top: 48rpx;
  116. border-right: 1px solid #FFFFFF;
  117. .title {
  118. font-size: 22rpx;
  119. color: #FFFFFF;
  120. margin-bottom: 14rpx;
  121. }
  122. .data {
  123. font-weight: 700;
  124. font-size: 32rpx;
  125. color: #FFF600;
  126. }
  127. }
  128. .data-item-wrap:nth-child(-n+3) {
  129. margin-top: 0;
  130. }
  131. .data-item-wrap:nth-child(3n) {
  132. border: none;
  133. }
  134. }
  135. .img-wrap {
  136. padding: 38rpx 0 57rpx;
  137. text-align: center;
  138. image {
  139. width: 100rpx;
  140. height: 120rpx;
  141. }
  142. }
  143. .radius-wrap {
  144. position: absolute;
  145. left: 0;
  146. bottom: 0;
  147. width: 100vw;
  148. height: 30rpx;
  149. background-color: #fff;
  150. border-radius: 35rpx 35rpx 0 0;
  151. }
  152. }
  153. .detail-info-wrap {
  154. padding: 40rpx 35rpx;
  155. .detail-wrap {
  156. display: flex;
  157. flex-wrap: wrap;
  158. padding: 35rpx 55rpx 18rpx 55rpx;
  159. color: #8D8D8D;
  160. .item {
  161. display: flex;
  162. font-size: 26rpx;
  163. justify-content: space-between;
  164. width: calc(50% - 61rpx);
  165. margin-bottom: 50rpx;
  166. .params {
  167. color: #00BD00;
  168. }
  169. .status-wrap {
  170. width: 100%;
  171. /deep/ .tip-wrap {
  172. width: 100%;
  173. justify-content: space-between;
  174. }
  175. }
  176. }
  177. .item:nth-child(2n) {
  178. margin-left: 120rpx;
  179. }
  180. }
  181. .params-wrap {
  182. display: flex;
  183. flex-wrap: wrap;
  184. font-size: 26rpx;
  185. padding: 35rpx 55rpx;
  186. .item {
  187. width: calc(50% - 32rpx);
  188. display: flex;
  189. justify-content: space-between;
  190. margin-top: 50rpx;
  191. view:first-child {
  192. color: #8D8D8D;
  193. }
  194. }
  195. .item:nth-child(2n) {
  196. margin-left: 62rpx;
  197. }
  198. .item:nth-child(-n+2) {
  199. margin-top: 0;
  200. }
  201. }
  202. }
  203. }
  204. }
  205. </style>