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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <template>
  2. <view class="content">
  3. <view class="item_box" style="background-color: #34495D;" @click="go_zdhxt('xdt')">
  4. <view class="img">
  5. <image src="../t-p-icon/icon_13.png" mode=""></image>
  6. </view>
  7. <view class="text">
  8. <view class="name">巷道图</view>
  9. </view>
  10. </view>
  11. <view class="item_box" style="background-color: #638BD5;" @click="go_production_statistics()">
  12. <view class="img">
  13. <image src="../t-p-icon/icon_2.png" mode=""></image>
  14. </view>
  15. <view class="text">
  16. <view class="name">生产报表</view>
  17. <view class="tip">当日产量{{days_output}}吨</view>
  18. </view>
  19. </view>
  20. <view class="item_box" style="background-color: #A3A2E4;" @click="go_personnel_orientation()">
  21. <view class="img">
  22. <image src="../t-p-icon/icon_3.png" mode=""></image>
  23. </view>
  24. <view class="text">
  25. <view class="name">人员定位</view>
  26. <view class="tip">井下人数{{mineall_people}}人</view>
  27. </view>
  28. </view>
  29. <view class="item_box" style="background-color: #8BC8DA;" @click="go_safety_monitoring()">
  30. <view class="img">
  31. <image src="../t-p-icon/icon_4.png" mode=""></image>
  32. </view>
  33. <view class="text">
  34. <view class="name">安全监测</view>
  35. <!-- <view class="tip">6268监测点</view> -->
  36. </view>
  37. </view>
  38. <view class="item_box" style="background-color: #9AE2A2;" @click="go_zdhxt('tfgl')">
  39. <view class="img">
  40. <image src="../t-p-icon/icon_5.png" mode=""></image>
  41. </view>
  42. <view class="text">
  43. <view class="name">通风管理</view>
  44. <view class="tip">共40个通风机</view>
  45. </view>
  46. </view>
  47. <!-- <view class="item_box" style="background-color: #FBB47B;" @click="go_h5('http://nmjt.nxjiewei.com:8011/web/monitor/video/videoList?mine_code=')"> -->
  48. <view class="item_box" style="background-color: #FBB47B;" @click="go_h5('http://webdevelop.nxjiewei.com/assets/html/video/?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: #009FE8;" @click="go_h5('http://ningdongyunying.nxjiewei.com:8011/web/monitor/performanceRanking/performanceRanking')">
  67. <view class="img">
  68. <image src="../t-p-icon/icon_1.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: #2C3E50;" @click="go_zdhxt('zys')">
  76. <view class="img">
  77. <image src="../t-p-icon/icon_8.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: #2873FF;" @click="go_zdhxt('psxt')">
  85. <view class="img">
  86. <image src="../t-p-icon/icon_9.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: #8BC8DA;" @click="go_zdhxt('yfzd')">
  94. <view class="img">
  95. <image src="../t-p-icon/icon_10.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 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')">
  103. <view class="img">
  104. <image src="../t-p-icon/icon_11.png" mode=""></image>
  105. </view>
  106. <view class="text">
  107. <view class="name">设备监测</view>
  108. <view class="tip">容知设备监控</view>
  109. </view>
  110. </view>
  111. <view class="item_box" style="background-color: #5175E3;" @click="go_shangtang()">
  112. <view class="img">
  113. <image src="../t-p-icon/icon_4.png" mode=""></image>
  114. </view>
  115. <view class="text">
  116. <view class="name">视频分析</view>
  117. </view>
  118. </view>
  119. </view>
  120. </template>
  121. <script>
  122. export default {
  123. name: "t-p-n-section-1",
  124. data() {
  125. return {
  126. mine_code: "",
  127. mineall_people: "",
  128. days_output: ""
  129. };
  130. },
  131. created() {
  132. // 人员定位
  133. this.$p_api.personnel_mineall_total({
  134. mine: "all"
  135. }).then((res) => {
  136. this.mineall_people = res.data.data.total + res.data.data.mine_leader_total + res.data
  137. .data.company_leader_total
  138. })
  139. // 当日生产
  140. this.$p_api.coalmine_output({
  141. }).then((res) => {
  142. this.days_output = res.data.data.total
  143. })
  144. },
  145. methods: {
  146. // 自动化统计列表
  147. go_zdhxt(zdhxt) {
  148. uni.navigateTo({
  149. url: "../../production/zidonghua/zidonghua?url=" +
  150. "http://webdevelop.nxjiewei.com/assets/html/E-zidonghua/?zdhxt=" + zdhxt
  151. })
  152. },
  153. // 生产统计
  154. go_production_statistics() {
  155. uni.navigateTo({
  156. url: "../../ningdongyunying/production_statistics/production_statistics"
  157. })
  158. },
  159. // 人员定位
  160. go_personnel_orientation() {
  161. uni.navigateTo({
  162. url: "../../ningdongyunying/personnel_orientation/personnel_orientation"
  163. })
  164. },
  165. // 安全监测
  166. go_safety_monitoring() {
  167. uni.navigateTo({
  168. url: "../../ningdongyunying/safety_monitoring/safety_monitoring"
  169. })
  170. },
  171. // 风险预控
  172. go_risk_precontr0l() {
  173. uni.navigateTo({
  174. url: "../../ningdongyunying/risk_precontrol/risk_precontrol"
  175. })
  176. },
  177. // 视频监控
  178. go_h5(url) {
  179. uni.navigateTo({
  180. url: "../../ningdongyunying/h5/h5?url=" + url
  181. })
  182. },
  183. // 商汤
  184. go_shangtang(){
  185. uni.navigateTo({
  186. url:"../../production/shangtang/shangtang"
  187. })
  188. }
  189. }
  190. }
  191. </script>
  192. <style lang="scss">
  193. .content {
  194. box-sizing: border-box;
  195. padding: 20rpx 25rpx 0;
  196. margin-bottom: 100rpx;
  197. overflow: hidden;
  198. .item_box {
  199. float: left;
  200. width: 220rpx;
  201. height: 280rpx;
  202. margin-right: 20rpx;
  203. margin-bottom: 20rpx;
  204. border-radius: 16rpx;
  205. .img {
  206. box-sizing: border-box;
  207. padding-top: 40rpx;
  208. text-align: center;
  209. image {
  210. width: 140rpx;
  211. height: 140rpx;
  212. }
  213. }
  214. .text {
  215. text-align: center;
  216. color: #FFFFFF;
  217. line-height: 40rpx;
  218. .name {
  219. font-size: 28rpx;
  220. }
  221. .tip {
  222. font-size: 24rpx;
  223. white-space: nowrap;
  224. overflow: hidden;
  225. text-overflow: ellipsis;
  226. }
  227. }
  228. }
  229. .item_box:nth-child(3n) {
  230. margin-right: 0;
  231. }
  232. }
  233. </style>