compress-system.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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>
  8. <view class="img-wrap">
  9. <image src="@/static/nitrogen-static.png" />
  10. </view>
  11. <view class="radius-wrap"></view>
  12. </view>
  13. <view class="detail-info-wrap">
  14. <page-card v-for="(item,index) in paramsList" :key="index" style="margin-bottom: 30rpx;" :notShow="true"
  15. :name="`${index + 1}#制氮机`">
  16. <template v-slot:content>
  17. <simple-table :tableHead="tableHead" :list="item.params"></simple-table>
  18. </template>
  19. </page-card>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. pageData: {}, // 页面数据
  29. tableHead: ['名称', '参数状态'], // 页头
  30. paramsList: [{
  31. params: [{ // 参数列表
  32. name: '1号阀',
  33. params: [{
  34. status: 1
  35. }]
  36. },
  37. {
  38. name: '2号阀',
  39. params: [{
  40. status: 0
  41. }]
  42. },
  43. {
  44. name: '3号阀',
  45. params: [{
  46. status: 1
  47. }]
  48. },
  49. {
  50. name: '排空阀',
  51. params: [{
  52. status: 1
  53. }]
  54. },
  55. {
  56. name: '系统阀',
  57. params: [{
  58. status: 1
  59. }]
  60. },
  61. {
  62. name: '送气阀',
  63. params: [{
  64. status: 1
  65. }]
  66. },
  67. {
  68. name: '4号阀',
  69. params: [{
  70. status: 0
  71. }]
  72. },
  73. {
  74. name: '空气罐压力(Mpa)',
  75. params: ['0.00']
  76. },
  77. {
  78. name: '氨气罐压力(Mpa)',
  79. params: ['0.00']
  80. },
  81. {
  82. name: '氧气含量(%)',
  83. params: ['0.00']
  84. },
  85. {
  86. name: '瞬时流量(m³/h)',
  87. params: ['00.00']
  88. }
  89. ]
  90. }]
  91. }
  92. },
  93. onLoad(option) {
  94. this.pageData = JSON.parse(option.data)
  95. this.getData()
  96. },
  97. methods: {
  98. goBack() { // 返回上一頁面
  99. uni.navigateBack()
  100. },
  101. activeChange(item) { // 状态切换
  102. this.activeData = item
  103. },
  104. async getData() {
  105. let res = await this.$http({
  106. url: `/qsy/dcs/transform/zdjk`,
  107. method: 'POST'
  108. })
  109. this.paramsList = res.data.data.data
  110. }
  111. }
  112. }
  113. </script>
  114. <style scoped lang="scss">
  115. .page-body {
  116. .scroll-wrap {
  117. height: calc(100vh - 85rpx);
  118. overflow: scroll;
  119. .basic-info-wrap {
  120. position: relative;
  121. height: 244rpx;
  122. padding: 0 49rpx 0;
  123. background: url(../../../../static/page_bg.png);
  124. background-size: 120%;
  125. .info-wrap {
  126. border-bottom: 1rpx dashed #fff;
  127. }
  128. .img-wrap {
  129. padding: 49rpx 0;
  130. text-align: center;
  131. image {
  132. width: 310rpx;
  133. height: 138rpx;
  134. }
  135. }
  136. .radius-wrap {
  137. position: absolute;
  138. left: 0;
  139. bottom: 0;
  140. width: 100vw;
  141. height: 30rpx;
  142. background-color: #fff;
  143. border-radius: 35rpx 35rpx 0 0;
  144. }
  145. }
  146. .detail-info-wrap {
  147. padding: 40rpx 35rpx;
  148. /deep/ .card-wrap:last-child {
  149. margin-bottom: 0 !important;
  150. }
  151. }
  152. }
  153. }
  154. </style>