kjky.vue 3.7 KB

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