t-p-renjiazhuang.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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 class="tip">6268监测点</view> -->
  28. </view>
  29. </view>
  30. <view class="item_box" style="background-color: #FBB47B;" @click="go_video_monitor()">
  31. <view class="img">
  32. <image src="../t-p-icon/icon_6.png" mode=""></image>
  33. </view>
  34. <view class="text">
  35. <view class="name">视频监控</view>
  36. <view class="tip">工业视频</view>
  37. </view>
  38. </view>
  39. <view class="item_box" style="background-color: #9CE2A6;"
  40. @click="go_zdhxt('tfgl')">
  41. <view class="img">
  42. <image src="../t-p-icon/icon_5.png" mode=""></image>
  43. </view>
  44. <view class="text">
  45. <view class="name">通风管理</view>
  46. <view class="tip"></view>
  47. </view>
  48. </view>
  49. <view class="item_box" style="background-color: #8BC8DA;" @click="go_zdhxt('yfzd')">
  50. <view class="img">
  51. <image src="../t-p-icon/icon_10.png" mode=""></image>
  52. </view>
  53. <view class="text">
  54. <view class="name">压风制氮</view>
  55. </view>
  56. </view>
  57. <view class="item_box" style="background-color: #2C3E50;"
  58. @click="go_zdhxt('zys')">
  59. <view class="img">
  60. <image src="../t-p-icon/icon_8.png" mode=""></image>
  61. </view>
  62. <view class="text">
  63. <view class="name">主运输系统</view>
  64. <view class="tip"></view>
  65. </view>
  66. </view>
  67. <view class="item_box" style="background-color: #2873FF;"
  68. @click="go_zdhxt('psxt')">
  69. <view class="img">
  70. <image src="../t-p-icon/icon_9.png" mode=""></image>
  71. </view>
  72. <view class="text">
  73. <view class="name">排水系统</view>
  74. <view class="tip"></view>
  75. </view>
  76. </view>
  77. <view class="item_box" style="background-color: #005754;" @click="go_zdhxt('tsj')">
  78. <view class="img">
  79. <image src="../t-p-icon/icon_15.png" mode=""></image>
  80. </view>
  81. <view class="text">
  82. <view class="name">提升机</view>
  83. </view>
  84. </view>
  85. <view class="item_box" style="background-color: #009FE8;"
  86. @click="go_zdhxt('gsxt')">
  87. <view class="img">
  88. <image src="../t-p-icon/icon_9.png" mode=""></image>
  89. </view>
  90. <view class="text">
  91. <view class="name">供水系统</view>
  92. <view class="tip"></view>
  93. </view>
  94. </view>
  95. </view>
  96. </template>
  97. <script>
  98. export default {
  99. name: "t-p-renjiazhuang",
  100. data() {
  101. return {
  102. mine:"640181B0011010037381",
  103. org_num:"1056",
  104. mine_code:"renjiazhuang",
  105. mineall_people: "",
  106. days_output: ""
  107. };
  108. },
  109. created() {
  110. // 井下人数
  111. this.$p_api.personnel_people_now({
  112. mine: this.mine
  113. }).then((res) => {
  114. this.mineall_people = res.data.data.people_total
  115. })
  116. // 当日生产
  117. this.$p_api.coalmine_days_output({
  118. mine: this.mine,
  119. org_num: this.org_num
  120. }).then((res) => {
  121. this.days_output = res.data.data[0].total
  122. })
  123. },
  124. methods: {
  125. // 自动化统计列表
  126. go_zdhxt(zdhxt) {
  127. console.log(zdhxt)
  128. uni.navigateTo({
  129. url:"../../production/renjiazhuang/zidonghua_list/zidonghua_list?zdhxt=" + zdhxt
  130. })
  131. },
  132. // 生产报表
  133. go_production_report() {
  134. uni.navigateTo({
  135. url: "../../production/production_report/production_report?mine=" + this.mine + "&org_num=" + this.org_num,
  136. })
  137. },
  138. // 安全监测
  139. go_safety_monitoring() {
  140. uni.navigateTo({
  141. url: "../../production/safety_monitoring/safety_monitoring?mine=" + this.mine
  142. })
  143. },
  144. //人员定位
  145. go_personnel_orientation() {
  146. uni.navigateTo({
  147. url:"../../production/personnel_orientation/personnel_orientation?mine=" + this.mine
  148. })
  149. },
  150. // 视频监控
  151. go_video_monitor(){
  152. uni.navigateTo({
  153. url:"../../production/video_monitor/video_monitor?mine_code=" + this.mine_code
  154. })
  155. }
  156. }
  157. }
  158. </script>
  159. <style lang="scss">
  160. .content {
  161. box-sizing: border-box;
  162. padding: 20rpx 25rpx 0;
  163. margin-bottom: 100rpx;
  164. overflow: hidden;
  165. .item_box {
  166. float: left;
  167. width: 220rpx;
  168. height: 280rpx;
  169. margin-right: 20rpx;
  170. margin-bottom: 20rpx;
  171. border-radius: 16rpx;
  172. .img {
  173. box-sizing: border-box;
  174. padding-top: 40rpx;
  175. text-align: center;
  176. image {
  177. width: 140rpx;
  178. height: 140rpx;
  179. }
  180. }
  181. .text {
  182. text-align: center;
  183. color: #FFFFFF;
  184. line-height: 40rpx;
  185. .name {
  186. font-size: 28rpx;
  187. }
  188. .tip {
  189. font-size: 24rpx;
  190. white-space: nowrap;
  191. overflow: hidden;
  192. text-overflow: ellipsis;
  193. }
  194. }
  195. }
  196. .item_box:nth-child(3n) {
  197. margin-right: 0;
  198. }
  199. }
  200. </style>