depart-people.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view>
  3. <view class="inner_box">
  4. <view class="inner_title">
  5. <view class="name name_1">姓名</view>
  6. <view class="name name_2">部门</view>
  7. <view class="name name_2">当前位置</view>
  8. <view class="name name_3">下井时间</view>
  9. </view>
  10. <view class="list_item">
  11. <view class="item" v-for="(item,index) in peoples" :key="index" @click="go_downhole_statistics(item.people_num,item.depart_name,item.name)">
  12. <view class="text text_1">{{item.name}}</view>
  13. <view class="text text_2">{{item.depart_name}}</view>
  14. <view class="text text_2">{{item.station_name}}</view>
  15. <view class="text text_3">{{item.time}}</view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. peoples: [],
  26. popup: false,
  27. mine:""
  28. };
  29. },
  30. onLoad(option) {
  31. // console.log(option)
  32. uni.setNavigationBarTitle({
  33. title: option.title
  34. })
  35. this.mine = option.mine
  36. this.getPeoples(option.id,option.mine)
  37. },
  38. methods: {
  39. getPeoples(id,mine) {
  40. uni.showLoading()
  41. this.$p_api.personnel_depart_people({
  42. depart_id: id,
  43. mine: mine
  44. }).then((res) => {
  45. uni.hideLoading()
  46. console.log(res)
  47. this.peoples = res.data.data
  48. console.log(this.peoples)
  49. })
  50. },
  51. go_downhole_statistics(people_num,depart_name,name){
  52. uni.navigateTo({
  53. url:"../downhole_statistics/downhole_statistics?people_num="+people_num+"&depart_name="+depart_name+"&name="+name+"&mine="+this.mine
  54. })
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss">
  60. .inner_box {
  61. .inner_title {
  62. position: fixed;
  63. left: 0;
  64. top: 1;
  65. z-index: 999;
  66. overflow: hidden;
  67. padding: 0 25rpx;
  68. height: 94rpx;
  69. background: #F3F6FA;
  70. display: flex;
  71. align-items: center;
  72. .name {
  73. font-size: 28rpx;
  74. font-family: PingFangSC-Regular, PingFang SC;
  75. font-weight: 700;
  76. color: #232627;
  77. text-align: center;
  78. }
  79. .name_1 {
  80. width: 130rpx;
  81. }
  82. .name_2 {
  83. width: 220rpx;
  84. }
  85. .name_3 {
  86. width: 130rpx;
  87. }
  88. }
  89. .list_item {
  90. padding-top: 94rpx;
  91. .item {
  92. padding: 0 24rpx;
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. border-bottom: 1px solid #f3f3f3;
  97. .text {
  98. height: 94rpx;
  99. font-size: 25rpx;
  100. font-family: PingFangSC-Regular, PingFang SC;
  101. font-weight: 400;
  102. text-align: center;
  103. display: flex;
  104. flex-flow: column;
  105. justify-content: center;
  106. line-height: 40rpx;
  107. }
  108. .text_1 {
  109. width: 130rpx;
  110. }
  111. .text_2 {
  112. width: 220rpx;
  113. }
  114. .text_3 {
  115. width: 130rpx;
  116. }
  117. }
  118. }
  119. }
  120. </style>