p-personnel-orientation-section-1.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <view>
  3. <view class="content">
  4. <view class="title">
  5. 当前井下人员
  6. </view>
  7. <view class="inner">
  8. <slot></slot>
  9. </view>
  10. <!-- 当前下井领导 -->
  11. <view class="list" v-if="people_list.length > 0">
  12. <!-- <view style="font-size: 30rpx;line-height: 120rpx;font-weight: 700;text-align: center;">当前井下矿领导</view> -->
  13. <view class="title">当前井下矿领导</view>
  14. <view class="label">
  15. <view class="text box_1">姓名</view>
  16. <view class="text box_2">下井时间</view>
  17. <view class="text box_3">当前位置</view>
  18. </view>
  19. <view class="item" v-for="(item,index) in people_list" :key="index" @click="go_downhole_statistics(item.people_num,item.depart_name,item.name)">
  20. <view class="text box_1">{{item.name}}</view>
  21. <view class="text box_2">{{item.down_time}}</view>
  22. <view class="text box_3">{{item.station_name}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. props: ['mine'],
  31. data() {
  32. return {
  33. // mine:"",
  34. people_list: [],
  35. }
  36. },
  37. watch: {
  38. // mine: function(newVal, oldVal) {
  39. // this.mine = newVal
  40. // console.log(newVal)
  41. // }
  42. },
  43. created() {
  44. this.$p_api.personnel_people_now({
  45. mine: this.mine
  46. }).then((res) => {
  47. console.log(res)
  48. this.people_list = res.data.data.people_list
  49. })
  50. },
  51. methods:{
  52. go_downhole_statistics(people_num,depart_name,name){
  53. uni.navigateTo({
  54. url:"./downhole_statistics/downhole_statistics?people_num="+people_num+"&depart_name="+depart_name+"&name="+name+"&mine="+this.mine
  55. })
  56. }
  57. }
  58. }
  59. </script>
  60. <style lang="scss">
  61. .content {
  62. margin-top: 16rpx;
  63. background: #FFFFFF;
  64. box-shadow: 0px 3rpx 29rpx 0px rgba(59, 74, 116, 0.14);
  65. border-radius: 20rpx;
  66. .title {
  67. line-height: 96rpx;
  68. text-align: center;
  69. font-size: 30rpx;
  70. font-family: PingFangSC-Regular, PingFang SC;
  71. font-weight: 400;
  72. color: #232627;
  73. border-bottom: 2rpx solid #f3f3f3;
  74. }
  75. .inner {
  76. // height: 500px;
  77. }
  78. }
  79. .list {
  80. padding: 0 10rpx;
  81. .label {
  82. display: flex;
  83. align-items: center;
  84. height: 82rpx;
  85. background: #F3F6FA;
  86. .text {
  87. text-align: center;
  88. font-size: 28rpx;
  89. font-family: PingFangSC-Regular, PingFang SC;
  90. font-weight: 700;
  91. color: #232627;
  92. overflow: hidden;
  93. white-space: nowrap;
  94. text-overflow: ellipsis;
  95. }
  96. .box_1 {
  97. width: 150rpx;
  98. }
  99. .box_2 {
  100. width: 150rpx;
  101. }
  102. .box_3 {
  103. text-align: right;
  104. width: 400rpx;
  105. padding-right: 15rpx;
  106. }
  107. }
  108. .item {
  109. display: flex;
  110. align-items: center;
  111. height: 82rpx;
  112. .text {
  113. text-align: center;
  114. font-size: 27rpx;
  115. font-family: PingFangSC-Regular, PingFang SC;
  116. font-weight: 400;
  117. color: #232627;
  118. overflow: hidden;
  119. white-space: nowrap;
  120. text-overflow: ellipsis;
  121. }
  122. .box_1 {
  123. width: 150rpx;
  124. }
  125. .box_2 {
  126. width: 150rpx;
  127. }
  128. .box_3 {
  129. text-align: right;
  130. width: 400rpx;
  131. padding-right: 15rpx;
  132. }
  133. }
  134. }
  135. </style>