t-p-zaoquan.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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('http://webdevelop.nxjiewei.com/assets/html/zaoquan/djtf/#/')">
  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: #9CE2A6;"
  70. @click="go_zdhxt('http://webdevelop.nxjiewei.com/assets/html/zaoquan/xjtf/#/')">
  71. <view class="img">
  72. <image src="../t-p-icon/icon_5.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 class="item_box" style="background-color: #2873FF;"
  80. @click="go_zdhxt('http://webdevelop.nxjiewei.com/assets/html/zaoquan/720bf/#/')">
  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">720泵房</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/980bf/#/')">
  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">980泵房</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/950bf/#/')">
  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">950泵房</view>
  107. </view>
  108. </view>
  109. <view class="item_box" style="background-color: #9FD4FF;"
  110. @click="go_zdhxt('http://webdevelop.nxjiewei.com/assets/html/zaoquan/880bf/#/')">
  111. <view class="img">
  112. <image src="../t-p-icon/icon_9.png" mode=""></image>
  113. </view>
  114. <view class="text">
  115. <view class="name">排水系统</view>
  116. <view class="tip">880泵房</view>
  117. </view>
  118. </view>
  119. <view class="item_box" style="background-color: #2873FF;"
  120. @click="go_zdhxt('http://webdevelop.nxjiewei.com/assets/html/zaoquan/929bf/#/')">
  121. <view class="img">
  122. <image src="../t-p-icon/icon_9.png" mode=""></image>
  123. </view>
  124. <view class="text">
  125. <view class="name">排水系统</view>
  126. <view class="tip">929泵房</view>
  127. </view>
  128. </view>
  129. </view>
  130. </template>
  131. <script>
  132. export default {
  133. name: "t-p-zaoquan",
  134. data() {
  135. return {
  136. mine: "640181B0011010037723",
  137. org_num: "1014",
  138. mine_code: "zaoquan",
  139. mineall_people: "",
  140. days_output: ""
  141. };
  142. },
  143. created() {
  144. // 井下人数
  145. this.$p_api.personnel_people_now({
  146. mine: this.mine
  147. }).then((res) => {
  148. this.mineall_people = res.data.data.people_total
  149. })
  150. // 当日生产
  151. this.$p_api.coalmine_days_output({
  152. mine: this.mine,
  153. org_num: this.org_num
  154. }).then((res) => {
  155. this.days_output = res.data.data[0].total
  156. })
  157. },
  158. methods: {
  159. // 自动化统计列表
  160. go_zdhxt(zdhxt) {
  161. uni.navigateTo({
  162. url: "../../production/zidonghua/zidonghua?url=" + zdhxt
  163. })
  164. },
  165. // 生产报表
  166. go_production_report() {
  167. uni.navigateTo({
  168. url: "../../production/production_report/production_report?mine=" + this.mine + "&org_num=" +
  169. this.org_num,
  170. })
  171. },
  172. // 安全监测
  173. go_safety_monitoring() {
  174. uni.navigateTo({
  175. url: "../../production/safety_monitoring/safety_monitoring?mine=" + this.mine
  176. })
  177. },
  178. //人员定位
  179. go_personnel_orientation() {
  180. uni.navigateTo({
  181. url: "../../production/personnel_orientation/personnel_orientation?mine=" + this.mine
  182. })
  183. },
  184. // 视频监控
  185. go_video_monitor() {
  186. uni.navigateTo({
  187. url: "../../production/video_monitor/video_monitor?mine_code=" + this.mine_code
  188. })
  189. },
  190. // 电力监控
  191. go_power_monitoring(){
  192. uni.navigateTo({
  193. url: "../../production/zaoquan/power_monitoring/power_monitoring"
  194. })
  195. },
  196. // 矿井水处理
  197. go_mine_water_treatment(){
  198. uni.navigateTo({
  199. url: "../../production/zaoquan/mine_water_treatment/mine_water_treatment"
  200. })
  201. }
  202. }
  203. }
  204. </script>
  205. <style lang="scss">
  206. .content {
  207. box-sizing: border-box;
  208. padding: 20rpx 25rpx 0;
  209. margin-bottom: 100rpx;
  210. overflow: hidden;
  211. .item_box {
  212. float: left;
  213. width: 220rpx;
  214. height: 280rpx;
  215. margin-right: 20rpx;
  216. margin-bottom: 20rpx;
  217. border-radius: 16rpx;
  218. .img {
  219. box-sizing: border-box;
  220. padding-top: 40rpx;
  221. text-align: center;
  222. image {
  223. width: 140rpx;
  224. height: 140rpx;
  225. }
  226. }
  227. .text {
  228. text-align: center;
  229. color: #FFFFFF;
  230. line-height: 40rpx;
  231. .name {
  232. font-size: 28rpx;
  233. }
  234. .tip {
  235. font-size: 24rpx;
  236. white-space: nowrap;
  237. overflow: hidden;
  238. text-overflow: ellipsis;
  239. }
  240. }
  241. }
  242. .item_box:nth-child(3n) {
  243. margin-right: 0;
  244. }
  245. }
  246. </style>