t-p-shicaocun.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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">当日产量140517.8吨</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">井下人数3892人</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-shicaocun",
  44. data() {
  45. return {
  46. mine:"640181B0011010018668",
  47. org_num:"1023",
  48. mine_code:"shicaocun"
  49. };
  50. },
  51. methods: {
  52. // 生产报表
  53. go_production_report() {
  54. uni.navigateTo({
  55. url: "../../production/production_report/production_report?mine=" + this.mine + "&org_num=" + this.org_num,
  56. })
  57. },
  58. // 安全监测
  59. go_safety_monitoring() {
  60. uni.navigateTo({
  61. url: "../../production/safety_monitoring/safety_monitoring?mine=" + this.mine
  62. })
  63. },
  64. //人员定位
  65. go_personnel_orientation() {
  66. uni.navigateTo({
  67. url:"../../production/personnel_orientation/personnel_orientation?mine=" + this.mine
  68. })
  69. },
  70. // 视频监控
  71. go_video_monitor(){
  72. uni.navigateTo({
  73. url:"../../production/video_monitor/video_monitor?mine_code=" + this.mine_code
  74. })
  75. }
  76. }
  77. }
  78. </script>
  79. <style lang="scss">
  80. .content {
  81. box-sizing: border-box;
  82. padding: 20rpx 25rpx 0;
  83. margin-bottom: 100rpx;
  84. overflow: hidden;
  85. .item_box {
  86. float: left;
  87. width: 220rpx;
  88. height: 280rpx;
  89. margin-right: 20rpx;
  90. margin-bottom: 20rpx;
  91. border-radius: 16rpx;
  92. .img {
  93. box-sizing: border-box;
  94. padding-top: 40rpx;
  95. text-align: center;
  96. image {
  97. width: 140rpx;
  98. height: 140rpx;
  99. }
  100. }
  101. .text {
  102. text-align: center;
  103. color: #FFFFFF;
  104. line-height: 40rpx;
  105. .name {
  106. font-size: 28rpx;
  107. }
  108. .tip {
  109. font-size: 24rpx;
  110. white-space: nowrap;
  111. overflow: hidden;
  112. text-overflow: ellipsis;
  113. }
  114. }
  115. }
  116. .item_box:nth-child(3n) {
  117. margin-right: 0;
  118. }
  119. }
  120. </style>