t-p-shicaocun.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <template>
  2. <view class="content">
  3. <view class="item_box" style="background-color: #638BD5;" @click="go_production_report()">
  4. <view class="img">
  5. <image src="../t-p-icon/icon_2.png" mode=""></image>
  6. </view>
  7. <view class="text">
  8. <view class="name">生产报表</view>
  9. <view class="tip">当日产量{{days_output}}吨</view>
  10. </view>
  11. </view>
  12. <view class="item_box" style="background-color: #A3A2E4;" @click="go_personnel_orientation()">
  13. <view class="img">
  14. <image src="../t-p-icon/icon_3.png" mode=""></image>
  15. </view>
  16. <view class="text">
  17. <view class="name">人员定位</view>
  18. <view class="tip">井下人数{{mineall_people}}人</view>
  19. </view>
  20. </view>
  21. <view class="item_box" style="background-color: #8BC8DA;" @click="go_safety_monitoring()">
  22. <view class="img">
  23. <image src="../t-p-icon/icon_4.png" mode=""></image>
  24. </view>
  25. <view class="text">
  26. <view class="name">安全监测</view>
  27. </view>
  28. </view>
  29. <view class="item_box" style="background-color: #FBB47B;" @click="go_video_monitor()">
  30. <view class="img">
  31. <image src="../t-p-icon/icon_6.png" mode=""></image>
  32. </view>
  33. <view class="text">
  34. <view class="name">视频监控</view>
  35. <view class="tip">工业视频</view>
  36. </view>
  37. </view>
  38. <view class="item_box" style="background-color: #56CA66;" @click="go_zdhxt('tfgl')">
  39. <view class="img">
  40. <image src="../t-p-icon/icon_5.png" mode=""></image>
  41. </view>
  42. <view class="text">
  43. <view class="name">通风管理</view>
  44. </view>
  45. </view>
  46. <view class="item_box" style="background-color: #2873FF;" @click="go_zdhxt('psxt')">
  47. <view class="img">
  48. <image src="../t-p-icon/icon_9.png" mode=""></image>
  49. </view>
  50. <view class="text">
  51. <view class="name">排水系统</view>
  52. </view>
  53. </view>
  54. <view class="item_box" style="background-color: #8BC8DA;" @click="go_zdhxt('yfzd')">
  55. <view class="img">
  56. <image src="../t-p-icon/icon_10.png" mode=""></image>
  57. </view>
  58. <view class="text">
  59. <view class="name">压风制氮</view>
  60. </view>
  61. </view>
  62. <view class="item_box" style="background-color: #2C3E50;" @click="go_zdhxt('zys')">
  63. <view class="img">
  64. <image src="../t-p-icon/icon_8.png" mode=""></image>
  65. </view>
  66. <view class="text">
  67. <view class="name">主运输</view>
  68. <view class="tip">主运输皮带</view>
  69. </view>
  70. </view>
  71. </view>
  72. </template>
  73. <script>
  74. export default {
  75. name: "t-p-shicaocun",
  76. data() {
  77. return {
  78. mine:"640181B0011010018668",
  79. org_num:"1023",
  80. mine_code:"shicaocun",
  81. mineall_people: "",
  82. days_output: ""
  83. };
  84. },
  85. created() {
  86. // 井下人数
  87. this.$p_api.personnel_people_now({
  88. mine: this.mine
  89. }).then((res) => {
  90. this.mineall_people = res.data.data.people_total
  91. })
  92. // 当日生产
  93. this.$p_api.coalmine_days_output({
  94. mine: this.mine,
  95. org_num: this.org_num
  96. }).then((res) => {
  97. this.days_output = res.data.data[0].total
  98. })
  99. },
  100. methods: {
  101. // 生产报表
  102. go_production_report() {
  103. uni.navigateTo({
  104. url: "../../production/production_report/production_report?mine=" + this.mine + "&org_num=" + this.org_num,
  105. })
  106. },
  107. // 安全监测
  108. go_safety_monitoring() {
  109. uni.navigateTo({
  110. url: "../../production/safety_monitoring/safety_monitoring?mine=" + this.mine
  111. })
  112. },
  113. //人员定位
  114. go_personnel_orientation() {
  115. uni.navigateTo({
  116. url:"../../production/personnel_orientation/personnel_orientation?mine=" + this.mine
  117. })
  118. },
  119. // 视频监控
  120. go_video_monitor(){
  121. uni.navigateTo({
  122. url:"../../production/video_monitor/video_monitor?mine_code=" + this.mine_code
  123. })
  124. },
  125. // 自动化系统列表
  126. go_zdhxt(zdhxt) {
  127. uni.navigateTo({
  128. url: "../../production/shicaocun/zidonghua_list/zidonghua_list?zdhxt=" + zdhxt
  129. })
  130. }
  131. }
  132. }
  133. </script>
  134. <style lang="scss">
  135. .content {
  136. box-sizing: border-box;
  137. padding: 20rpx 25rpx 0;
  138. margin-bottom: 100rpx;
  139. overflow: hidden;
  140. .item_box {
  141. float: left;
  142. width: 220rpx;
  143. height: 280rpx;
  144. margin-right: 20rpx;
  145. margin-bottom: 20rpx;
  146. border-radius: 16rpx;
  147. .img {
  148. box-sizing: border-box;
  149. padding-top: 40rpx;
  150. text-align: center;
  151. image {
  152. width: 140rpx;
  153. height: 140rpx;
  154. }
  155. }
  156. .text {
  157. text-align: center;
  158. color: #FFFFFF;
  159. line-height: 40rpx;
  160. .name {
  161. font-size: 28rpx;
  162. }
  163. .tip {
  164. font-size: 24rpx;
  165. white-space: nowrap;
  166. overflow: hidden;
  167. text-overflow: ellipsis;
  168. }
  169. }
  170. }
  171. .item_box:nth-child(3n) {
  172. margin-right: 0;
  173. }
  174. }
  175. </style>