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