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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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="item_box" style="background-color: #FBB47B;" @click="go_h5('http://webdevelop.nxjiewei.com/assets/html/video/?mine_code=')">
  50. <view class="img">
  51. <image src="../t-p-icon/icon_6.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: #FA8B89;" @click="go_risk_precontr0l()">
  59. <view class="img">
  60. <image src="../t-p-icon/icon_7.png" mode=""></image>
  61. </view>
  62. <view class="text">
  63. <view class="name">风险预控</view>
  64. <view class="tip">分数统计</view>
  65. </view>
  66. </view>
  67. <view class="item_box" style="background-color: #2C3E50;" @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;" @click="go_zdhxt('psxt')">
  77. <view class="img">
  78. <image src="../t-p-icon/icon_9.png" mode=""></image>
  79. </view>
  80. <view class="text">
  81. <view class="name">排水系统</view>
  82. <view class="tip">中央水泵</view>
  83. </view>
  84. </view>
  85. <view class="item_box" style="background-color: #8BC8DA;" @click="go_zdhxt('yfzd')">
  86. <view class="img">
  87. <image src="../t-p-icon/icon_10.png" mode=""></image>
  88. </view>
  89. <view class="text">
  90. <view class="name">压风制氮</view>
  91. <view class="tip">压风制氮系统 </view>
  92. </view>
  93. </view>
  94. <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')">
  95. <view class="img">
  96. <image src="../t-p-icon/icon_11.png" mode=""></image>
  97. </view>
  98. <view class="text">
  99. <view class="name">设备监测</view>
  100. <view class="tip">容知设备监控</view>
  101. </view>
  102. </view>
  103. </view>
  104. </template>
  105. <script>
  106. export default {
  107. name: "t-p-n-section-1",
  108. data() {
  109. return {
  110. mine_code: "",
  111. mineall_people: "",
  112. days_output: ""
  113. };
  114. },
  115. created() {
  116. // 人员定位
  117. this.$p_api.personnel_mineall_total({
  118. mine: "all"
  119. }).then((res) => {
  120. this.mineall_people = res.data.data.total + res.data.data.mine_leader_total + res.data
  121. .data.company_leader_total
  122. })
  123. // 当日生产
  124. this.$p_api.coalmine_output({
  125. }).then((res) => {
  126. this.days_output = res.data.data.total
  127. })
  128. },
  129. methods: {
  130. // 自动化统计列表
  131. go_zdhxt(zdhxt) {
  132. uni.navigateTo({
  133. url: "../../production/zidonghua/zidonghua?url=" +
  134. "http://webdevelop.nxjiewei.com/assets/html/E-zidonghua/?zdhxt=" + zdhxt
  135. })
  136. },
  137. // 生产统计
  138. go_production_statistics() {
  139. uni.navigateTo({
  140. url: "../../ningdongyunying/production_statistics/production_statistics"
  141. })
  142. },
  143. // 人员定位
  144. go_personnel_orientation() {
  145. uni.navigateTo({
  146. url: "../../ningdongyunying/personnel_orientation/personnel_orientation"
  147. })
  148. },
  149. // 安全监测
  150. go_safety_monitoring() {
  151. uni.navigateTo({
  152. url: "../../ningdongyunying/safety_monitoring/safety_monitoring"
  153. })
  154. },
  155. // 风险预控
  156. go_risk_precontr0l() {
  157. uni.navigateTo({
  158. url: "../../ningdongyunying/risk_precontrol/risk_precontrol"
  159. })
  160. },
  161. // 视频监控
  162. go_h5(url) {
  163. uni.navigateTo({
  164. url: "../../ningdongyunying/h5/h5?url=" + url
  165. })
  166. },
  167. }
  168. }
  169. </script>
  170. <style lang="scss">
  171. .content {
  172. box-sizing: border-box;
  173. padding: 20rpx 25rpx 0;
  174. margin-bottom: 100rpx;
  175. overflow: hidden;
  176. .item_box {
  177. float: left;
  178. width: 220rpx;
  179. height: 280rpx;
  180. margin-right: 20rpx;
  181. margin-bottom: 20rpx;
  182. border-radius: 16rpx;
  183. .img {
  184. box-sizing: border-box;
  185. padding-top: 40rpx;
  186. text-align: center;
  187. image {
  188. width: 140rpx;
  189. height: 140rpx;
  190. }
  191. }
  192. .text {
  193. text-align: center;
  194. color: #FFFFFF;
  195. line-height: 40rpx;
  196. .name {
  197. font-size: 28rpx;
  198. }
  199. .tip {
  200. font-size: 24rpx;
  201. white-space: nowrap;
  202. overflow: hidden;
  203. text-overflow: ellipsis;
  204. }
  205. }
  206. }
  207. .item_box:nth-child(3n) {
  208. margin-right: 0;
  209. }
  210. }
  211. </style>