compress-system.vue 2.8 KB

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