t-p-zaoquan.vue 5.1 KB

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