t-p-lingxin.vue 3.3 KB

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