kjky.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view class="page-body">
  3. <page-header :name="'矿井矿压监测'" :bg="'transparent'" :showLeft="true" @goBack="goBack()"></page-header>
  4. <view class="bg-wrap"></view>
  5. <view class="scroll-wrap">
  6. <view class="info-wrap">
  7. <view class="title">矿井矿压参数</view>
  8. <view class="table-wrap" style="margin-bottom: 40rpx;">
  9. <simple-table :tableHead="tableHead" :list="tableList"></simple-table>
  10. </view>
  11. <view class="table-wrap" style="margin-bottom: 40rpx;">
  12. <simple-table :tableHead="tableHead1" :list="tableList1"></simple-table>
  13. </view>
  14. <view class="table-wrap">
  15. <simple-table :tableHead="tableHead2" :list="tableList2"></simple-table>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. list: [{
  26. name: '主风机',
  27. status: {
  28. name: '风门',
  29. status: 1
  30. }
  31. }, {
  32. name: '副风机',
  33. status: {
  34. name: '风门',
  35. status: 0
  36. }
  37. }],
  38. tableHead: ['巷道', '测点', '压力', '开关量'],
  39. tableList: [{
  40. name: '运输巷',
  41. params: ['100', '60', 'false']
  42. }, {
  43. name: '运输巷',
  44. params: ['300', '5', 'false']
  45. }, {
  46. name: '0',
  47. params: ['300', '5', 'false']
  48. }, {
  49. name: '回风巷',
  50. params: ['300', '5', 'false']
  51. }],
  52. tableHead1: ['工作面名称', '开关量', '测点', '机巷', '风巷'],
  53. tableList1: [{
  54. name: '110207工作面',
  55. params: ['1', '2700', '运输巷', '回风巷']
  56. }, {
  57. name: '002工作面',
  58. params: ['0', '1000', '轨道巷', '回风巷']
  59. }, {
  60. name: '110208工作面',
  61. params: ['1', '2500', '运输巷', '回风巷']
  62. }, {
  63. name: '110209工作面联络巷',
  64. params: ['0', '1000', '运输巷', '回风巷']
  65. }],
  66. tableHead2: ['检测时间', '检测值'],
  67. tableList2: [{
  68. name: '2025-01-13 08:00:00',
  69. params: ['6767']
  70. }, {
  71. name: '2025-01-14 08:00:00',
  72. params: ['6720']
  73. }, {
  74. name: '2025-01-15 08:00:00',
  75. params: ['6842']
  76. }]
  77. }
  78. },
  79. onLoad(option) {},
  80. methods: {
  81. goBack() { // 返回上一頁面
  82. uni.navigateBack()
  83. }
  84. }
  85. }
  86. </script>
  87. <style scoped lang="scss">
  88. .page-body {
  89. position: relative;
  90. background-color: #f5f6f8;
  91. /deep/ .header-wrap {
  92. position: relative;
  93. z-index: 2;
  94. }
  95. .bg-wrap {
  96. position: absolute;
  97. z-index: 1;
  98. top: 0;
  99. width: 100vw;
  100. height: 670rpx;
  101. background: url(@/static/pg-bg-2.png);
  102. background-size: 100%;
  103. }
  104. .scroll-wrap {
  105. position: relative;
  106. z-index: 2;
  107. overflow-y: scroll;
  108. height: calc(100vh - 85rpx);
  109. padding: 60rpx 35rpx 45rpx;
  110. .status-wrap {
  111. display: flex;
  112. height: 167rpx;
  113. border-radius: 20rpx;
  114. margin-bottom: 60rpx;
  115. background: #C5EDFF;
  116. .item {
  117. flex: 1;
  118. justify-content: center;
  119. padding: 35rpx 97rpx 35rpx 97rpx;
  120. border-right: 1rpx dashed #fff;
  121. .name {
  122. font-size: 28rpx;
  123. font-weight: 700;
  124. text-align: center;
  125. margin-bottom: 25rpx;
  126. }
  127. .status {
  128. /deep/ .tip-wrap {
  129. font-size: 26rpx;
  130. .name {
  131. color: #8D8D8D;
  132. }
  133. .status-wrap {
  134. view:first-child {
  135. margin: 0 8rpx 0 30rpx;
  136. }
  137. }
  138. }
  139. }
  140. }
  141. .item:last-child {
  142. border: none;
  143. }
  144. }
  145. .info-wrap {
  146. .title {
  147. margin-bottom: 29rpx;
  148. font-weight: 700;
  149. font-size: 36rpx;
  150. color: #000000;
  151. }
  152. .table-wrap {
  153. overflow: hidden;
  154. border-radius: 20rpx;
  155. background-color: #fff;
  156. /deep/ .table-head {
  157. background-color: #F0F0F0;
  158. }
  159. }
  160. }
  161. }
  162. }
  163. </style>