t-p-n-section-1.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <template>
  2. <view class="content">
  3. <view class="item_box" style="background-color: #009FE8;" @click="go_h5('http://ningdongyunying.nxjiewei.com:8011/web/monitor/performanceRanking/performanceRanking')">
  4. <view class="img">
  5. <image src="../t-p-icon/icon_1.png" mode=""></image>
  6. </view>
  7. <view class="text">
  8. <view class="name">绩效排名</view>
  9. <view class="tip">绩效考核分数统计</view>
  10. </view>
  11. </view>
  12. <view class="item_box" style="background-color: #638BD5;" @click="go_production_statistics()">
  13. <view class="img">
  14. <image src="../t-p-icon/icon_2.png" mode=""></image>
  15. </view>
  16. <view class="text">
  17. <view class="name">生产报表</view>
  18. <view class="tip">当日产量{{days_output}}吨</view>
  19. </view>
  20. </view>
  21. <view class="item_box" style="background-color: #A3A2E4;" @click="go_personnel_orientation()">
  22. <view class="img">
  23. <image src="../t-p-icon/icon_3.png" mode=""></image>
  24. </view>
  25. <view class="text">
  26. <view class="name">人员定位</view>
  27. <view class="tip">井下人数{{mineall_people}}人</view>
  28. </view>
  29. </view>
  30. <view class="item_box" style="background-color: #8BC8DA;" @click="go_safety_monitoring()">
  31. <view class="img">
  32. <image src="../t-p-icon/icon_4.png" mode=""></image>
  33. </view>
  34. <view class="text">
  35. <view class="name">安全监测</view>
  36. <!-- <view class="tip">6268监测点</view> -->
  37. </view>
  38. </view>
  39. <view class="item_box" style="background-color: #9AE2A2;" @click="go_zdhxt('tfgl')">
  40. <view class="img">
  41. <image src="../t-p-icon/icon_5.png" mode=""></image>
  42. </view>
  43. <view class="text">
  44. <view class="name">通风管理</view>
  45. <view class="tip">共40个通风机</view>
  46. </view>
  47. </view>
  48. <view class="item_box" style="background-color: #FBB47B;" @click="go_h5('http://nmjt.nxjiewei.com:8011/web/monitor/video/videoList?mine_code=')">
  49. <view class="img">
  50. <image src="../t-p-icon/icon_6.png" mode=""></image>
  51. </view>
  52. <view class="text">
  53. <view class="name">视频监控</view>
  54. <view class="tip">工业视频</view>
  55. </view>
  56. </view>
  57. <view class="item_box" style="background-color: #FA8B89;" @click="go_risk_precontr0l()">
  58. <view class="img">
  59. <image src="../t-p-icon/icon_7.png" mode=""></image>
  60. </view>
  61. <view class="text">
  62. <view class="name">风险预控</view>
  63. <view class="tip">分数统计</view>
  64. </view>
  65. </view>
  66. <view class="item_box" style="background-color: #2C3E50;" @click="go_zdhxt('zys')">
  67. <view class="img">
  68. <image src="../t-p-icon/icon_8.png" mode=""></image>
  69. </view>
  70. <view class="text">
  71. <view class="name">主运输</view>
  72. <view class="tip">主运输皮带</view>
  73. </view>
  74. </view>
  75. <view class="item_box" style="background-color: #2873FF;" @click="go_zdhxt('psxt')">
  76. <view class="img">
  77. <image src="../t-p-icon/icon_9.png" mode=""></image>
  78. </view>
  79. <view class="text">
  80. <view class="name">排水系统</view>
  81. <view class="tip">中央水泵</view>
  82. </view>
  83. </view>
  84. <view class="item_box" style="background-color: #8BC8DA;" @click="go_zdhxt('yfzd')">
  85. <view class="img">
  86. <image src="../t-p-icon/icon_10.png" mode=""></image>
  87. </view>
  88. <view class="text">
  89. <view class="name">压风制氮</view>
  90. <view class="tip">压风制氮系统 </view>
  91. </view>
  92. </view>
  93. <view class="item_box" style="background-color: #A3A2E4;" @click="go_h5('http://ningdongyunying.nxjiewei.com:8011/web/monitor/productData/equipmentMonitor?title=%E8%AE%BE%E5%A4%87%E7%9B%91%E6%B5%8B')">
  94. <view class="img">
  95. <image src="../t-p-icon/icon_11.png" mode=""></image>
  96. </view>
  97. <view class="text">
  98. <view class="name">设备监测</view>
  99. <view class="tip">容知设备监控</view>
  100. </view>
  101. </view>
  102. </view>
  103. </template>
  104. <script>
  105. export default {
  106. name: "t-p-n-section-1",
  107. data() {
  108. return {
  109. mine_code: "",
  110. mineall_people: "",
  111. days_output: ""
  112. };
  113. },
  114. created() {
  115. // 人员定位
  116. this.$p_api.personnel_mineall_total({
  117. mine: "all"
  118. }).then((res) => {
  119. this.mineall_people = res.data.data.total + res.data.data.mine_leader_total + res.data
  120. .data.company_leader_total
  121. })
  122. // 当日生产
  123. this.$p_api.coalmine_output({
  124. }).then((res) => {
  125. this.days_output = res.data.data.total
  126. })
  127. },
  128. methods: {
  129. // 自动化统计列表
  130. go_zdhxt(zdhxt) {
  131. uni.navigateTo({
  132. url: "../../production/zidonghua/zidonghua?url=" +
  133. "http://webdevelop.nxjiewei.com/assets/html/E-zidonghua/?zdhxt=" + zdhxt
  134. })
  135. },
  136. // 生产统计
  137. go_production_statistics() {
  138. uni.navigateTo({
  139. url: "../../ningdongyunying/production_statistics/production_statistics"
  140. })
  141. },
  142. // 人员定位
  143. go_personnel_orientation() {
  144. uni.navigateTo({
  145. url: "../../ningdongyunying/personnel_orientation/personnel_orientation"
  146. })
  147. },
  148. // 安全监测
  149. go_safety_monitoring() {
  150. uni.navigateTo({
  151. url: "../../ningdongyunying/safety_monitoring/safety_monitoring"
  152. })
  153. },
  154. // 风险预控
  155. go_risk_precontr0l() {
  156. uni.navigateTo({
  157. url: "../../ningdongyunying/risk_precontrol/risk_precontrol"
  158. })
  159. },
  160. // 视频监控
  161. go_h5(url) {
  162. uni.navigateTo({
  163. url: "../../ningdongyunying/h5/h5?url=" + url
  164. })
  165. },
  166. }
  167. }
  168. </script>
  169. <style lang="scss">
  170. .content {
  171. box-sizing: border-box;
  172. padding: 20rpx 25rpx 0;
  173. margin-bottom: 100rpx;
  174. overflow: hidden;
  175. .item_box {
  176. float: left;
  177. width: 220rpx;
  178. height: 280rpx;
  179. margin-right: 20rpx;
  180. margin-bottom: 20rpx;
  181. border-radius: 16rpx;
  182. .img {
  183. box-sizing: border-box;
  184. padding-top: 40rpx;
  185. text-align: center;
  186. image {
  187. width: 140rpx;
  188. height: 140rpx;
  189. }
  190. }
  191. .text {
  192. text-align: center;
  193. color: #FFFFFF;
  194. line-height: 40rpx;
  195. .name {
  196. font-size: 28rpx;
  197. }
  198. .tip {
  199. font-size: 24rpx;
  200. white-space: nowrap;
  201. overflow: hidden;
  202. text-overflow: ellipsis;
  203. }
  204. }
  205. }
  206. .item_box:nth-child(3n) {
  207. margin-right: 0;
  208. }
  209. }
  210. </style>