hrz.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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="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="img-wrap">
  13. <image src="@/static/rhb.jpg" />
  14. </view>
  15. <view class="radius-wrap"></view>
  16. </view>
  17. <view class="detail-info-wrap">
  18. <page-card style="margin-bottom: 30rpx;" :notShow="true" :name="'进气压力'">
  19. <template v-slot:content>
  20. <simple-table :tableHead="tableHead" :list="paramsList"></simple-table>
  21. </template>
  22. </page-card>
  23. <page-card style="margin-bottom: 30rpx;" :notShow="true" :name="'泵压力'">
  24. <template v-slot:content>
  25. <simple-table :tableHead="tableHead1" :list="paramsList1"></simple-table>
  26. </template>
  27. </page-card>
  28. <page-card style="margin-bottom: 30rpx;" :notShow="true" :name="'压力/温度'">
  29. <template v-slot:content>
  30. <simple-table :tableHead="tableHead2" :list="paramsList2"></simple-table>
  31. </template>
  32. </page-card>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. list: [{
  42. name: '水箱液位高报值',
  43. params: '0.0m'
  44. }, {
  45. name: '水箱液位低报值',
  46. params: '0.0m'
  47. }, {
  48. name: '软化水箱液位',
  49. params: '1.30m'
  50. }],
  51. pageData: {},
  52. tableHead: ['名称', '进气压力'],
  53. paramsList: [{
  54. name: '1#板式换热器',
  55. params: ['00.00MPa']
  56. },{
  57. name: '2#板式换热器',
  58. params: ['00.00MPa']
  59. }],
  60. tableHead1: ['名称', '压力'],
  61. paramsList1: [{
  62. name: '1#泵',
  63. params: ['00.55MPa']
  64. },{
  65. name: '2#泵',
  66. params: ['00.39MPa']
  67. },{
  68. name: '补水泵',
  69. params: ['0.36MPa']
  70. }],
  71. tableHead2: ['名称', '温度', '压力'],
  72. paramsList2: [{
  73. name: '回水罐',
  74. params: ['0.38MPa', '-03.09℃']
  75. },{
  76. name: '供水罐',
  77. params: ['0.45MPa', '50.08℃']
  78. }]
  79. }
  80. },
  81. onLoad(option) {
  82. this.pageData = JSON.parse(option.data)
  83. this.getData()
  84. },
  85. methods: {
  86. goBack() { // 返回上一頁面
  87. uni.navigateBack()
  88. },
  89. async getData() {
  90. let res = await this.$http({
  91. url: `/qsy/dcs/transform/hrz`,
  92. method: 'POST'
  93. })
  94. this.list = res.data.data.list
  95. this.paramsList = res.data.data.paramsList
  96. this.paramsList1 = res.data.data.paramsList1
  97. this.paramsList2 = res.data.data.paramsList2
  98. }
  99. }
  100. }
  101. </script>
  102. <style scoped lang="scss">
  103. .page-body {
  104. .scroll-wrap {
  105. height: calc(100vh - 85rpx);
  106. overflow: scroll;
  107. .basic-info-wrap {
  108. position: relative;
  109. height: auto;
  110. padding: 50rpx 49rpx 0;
  111. background: url(../../../static/page_bg.png);
  112. background-size: 140%;
  113. .info-wrap {
  114. display: flex;
  115. flex-wrap: wrap;
  116. .data-item-wrap {
  117. width: 33.33%;
  118. padding: 9rpx 0;
  119. min-height: 81rpx;
  120. text-align: center;
  121. margin-top: 48rpx;
  122. border-right: 1px solid #FFFFFF;
  123. .title {
  124. font-size: 22rpx;
  125. color: #FFFFFF;
  126. margin-bottom: 14rpx;
  127. }
  128. .data {
  129. font-weight: 700;
  130. font-size: 32rpx;
  131. color: #FFF600;
  132. }
  133. }
  134. .data-item-wrap:nth-child(-n+3) {
  135. margin-top: 0;
  136. }
  137. .data-item-wrap:nth-child(3n) {
  138. border: none;
  139. }
  140. }
  141. .img-wrap {
  142. padding: 38rpx 0 57rpx;
  143. text-align: center;
  144. image {
  145. width: 100rpx;
  146. height: 120rpx;
  147. }
  148. }
  149. .radius-wrap {
  150. position: absolute;
  151. left: 0;
  152. bottom: 0;
  153. width: 100vw;
  154. height: 30rpx;
  155. background-color: #fff;
  156. border-radius: 35rpx 35rpx 0 0;
  157. }
  158. }
  159. .detail-info-wrap {
  160. padding: 40rpx 35rpx;
  161. .detail-wrap {
  162. display: flex;
  163. flex-wrap: wrap;
  164. padding: 35rpx 55rpx 18rpx 55rpx;
  165. color: #8D8D8D;
  166. .item {
  167. display: flex;
  168. font-size: 26rpx;
  169. justify-content: space-between;
  170. width: calc(50% - 61rpx);
  171. margin-bottom: 50rpx;
  172. .params {
  173. color: #00BD00;
  174. }
  175. .status-wrap {
  176. width: 100%;
  177. /deep/ .tip-wrap {
  178. width: 100%;
  179. justify-content: space-between;
  180. }
  181. }
  182. }
  183. .item:nth-child(2n) {
  184. margin-left: 120rpx;
  185. }
  186. }
  187. .params-wrap {
  188. display: flex;
  189. flex-wrap: wrap;
  190. font-size: 26rpx;
  191. padding: 35rpx 55rpx;
  192. .item {
  193. width: calc(50% - 32rpx);
  194. display: flex;
  195. justify-content: space-between;
  196. margin-top: 50rpx;
  197. view:first-child {
  198. color: #8D8D8D;
  199. }
  200. }
  201. .item:nth-child(2n) {
  202. margin-left: 62rpx;
  203. }
  204. .item:nth-child(-n+2) {
  205. margin-top: 0;
  206. }
  207. }
  208. }
  209. }
  210. }
  211. </style>