t-p-lingxin.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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>
  40. </template>
  41. <script>
  42. export default {
  43. name: "t-p-lingxin",
  44. data() {
  45. return {
  46. mine:"640181B0011010037973",
  47. org_num:"1015",
  48. mine_code:"lingxin",
  49. mineall_people: "",
  50. days_output: ""
  51. };
  52. },
  53. mounted() {
  54. // 井下人数
  55. this.$p_api.personnel_people_now({
  56. mine: this.mine
  57. }).then((res) => {
  58. console.log(res)
  59. this.mineall_people = res.data.data.people_total
  60. })
  61. // 当日生产
  62. this.$p_api.coalmine_days_output({
  63. mine: this.mine,
  64. org_num: this.org_num
  65. }).then((res) => {
  66. this.days_output = res.data.data[0].total
  67. })
  68. },
  69. methods: {
  70. // 生产报表
  71. go_production_report() {
  72. uni.navigateTo({
  73. url: "../../production/production_report/production_report?mine=" + this.mine + "&org_num=" + this.org_num,
  74. })
  75. },
  76. // 安全监测
  77. go_safety_monitoring() {
  78. uni.navigateTo({
  79. url: "../../production/safety_monitoring/safety_monitoring?mine=" + this.mine
  80. })
  81. },
  82. //人员定位
  83. go_personnel_orientation() {
  84. uni.navigateTo({
  85. url:"../../production/personnel_orientation/personnel_orientation?mine=" + this.mine
  86. })
  87. },
  88. // 视频监控
  89. go_video_monitor(){
  90. uni.navigateTo({
  91. url:"../../production/video_monitor/video_monitor?mine_code=" + this.mine_code
  92. })
  93. }
  94. }
  95. }
  96. </script>
  97. <style lang="scss">
  98. .content {
  99. box-sizing: border-box;
  100. padding: 20rpx 25rpx 0;
  101. margin-bottom: 100rpx;
  102. overflow: hidden;
  103. .item_box {
  104. float: left;
  105. width: 220rpx;
  106. height: 280rpx;
  107. margin-right: 20rpx;
  108. margin-bottom: 20rpx;
  109. border-radius: 16rpx;
  110. .img {
  111. box-sizing: border-box;
  112. padding-top: 40rpx;
  113. text-align: center;
  114. image {
  115. width: 140rpx;
  116. height: 140rpx;
  117. }
  118. }
  119. .text {
  120. text-align: center;
  121. color: #FFFFFF;
  122. line-height: 40rpx;
  123. .name {
  124. font-size: 28rpx;
  125. }
  126. .tip {
  127. font-size: 24rpx;
  128. white-space: nowrap;
  129. overflow: hidden;
  130. text-overflow: ellipsis;
  131. }
  132. }
  133. }
  134. .item_box:nth-child(3n) {
  135. margin-right: 0;
  136. }
  137. }
  138. </style>