t-p-renjiazhuang.vue 5.7 KB

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