gzm.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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">
  9. <simple-table :tableHead="tableHead" :list="tableList"></simple-table>
  10. </view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. tableHead: ['参数', '数值'],
  20. tableList: [{
  21. name: '人员检测',
  22. params: [{
  23. status: 1
  24. }],
  25. },{
  26. name: '油泵运行',
  27. params: [{
  28. status: 1
  29. }],
  30. },{
  31. name: '高速运行',
  32. params: [{
  33. status: 1
  34. }],
  35. },{
  36. name: '油箱温度',
  37. params: ['32℃']
  38. }, {
  39. name: '油泵计时',
  40. params: ['32h32min']
  41. }, {
  42. name: '截割计时',
  43. params: ['29h29min']
  44. }, {
  45. name: '俯仰角度',
  46. params: ['30°']
  47. }, {
  48. name: '翻滚角度',
  49. params: ['01°']
  50. }, {
  51. name: '回转角度',
  52. params: ['01°']
  53. }, {
  54. name: '升降角度',
  55. params: ['30°']
  56. }, {
  57. name: '自动截取时间',
  58. params: ['29min']
  59. }, {
  60. name: '遥控截割时间',
  61. params: ['30min']
  62. }]
  63. }
  64. },
  65. onLoad(option) {
  66. this.getData()
  67. },
  68. methods: {
  69. goBack() { // 返回上一頁面
  70. uni.navigateBack()
  71. },
  72. async getData() {
  73. let res = await this.$http({
  74. url: `/qsy/dcs/transform/gzm`,
  75. method: 'POST'
  76. })
  77. this.tableList = res.data.data.tableList
  78. }
  79. }
  80. }
  81. </script>
  82. <style scoped lang="scss">
  83. .page-body {
  84. position: relative;
  85. background-color: #f5f6f8;
  86. /deep/ .header-wrap {
  87. position: relative;
  88. z-index: 2;
  89. }
  90. .bg-wrap {
  91. position: absolute;
  92. z-index: 1;
  93. top: 0;
  94. width: 100vw;
  95. height: 670rpx;
  96. background: url(@/static/pg-bg-2.png);
  97. background-size: 100%;
  98. }
  99. .scroll-wrap {
  100. position: relative;
  101. z-index: 2;
  102. overflow-y: scroll;
  103. height: calc(100vh - 85rpx);
  104. padding: 60rpx 35rpx 45rpx;
  105. .status-wrap {
  106. display: flex;
  107. height: 167rpx;
  108. border-radius: 20rpx;
  109. margin-bottom: 60rpx;
  110. background: #C5EDFF;
  111. .item {
  112. flex: 1;
  113. justify-content: center;
  114. padding: 35rpx 97rpx 35rpx 97rpx;
  115. border-right: 1rpx dashed #fff;
  116. .name {
  117. font-size: 28rpx;
  118. font-weight: 700;
  119. text-align: center;
  120. margin-bottom: 25rpx;
  121. }
  122. .status {
  123. /deep/ .tip-wrap {
  124. font-size: 26rpx;
  125. .name {
  126. color: #8D8D8D;
  127. }
  128. .status-wrap {
  129. view:first-child {
  130. margin: 0 8rpx 0 30rpx;
  131. }
  132. }
  133. }
  134. }
  135. }
  136. .item:last-child {
  137. border: none;
  138. }
  139. }
  140. .info-wrap {
  141. .title {
  142. margin-bottom: 29rpx;
  143. font-weight: 700;
  144. font-size: 36rpx;
  145. color: #000000;
  146. }
  147. .table-wrap {
  148. overflow: hidden;
  149. border-radius: 20rpx;
  150. background-color: #fff;
  151. /deep/ .table-head {
  152. background-color: #F0F0F0;
  153. }
  154. }
  155. }
  156. }
  157. }
  158. </style>