123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <template>
- <view>
- <view class="inner_box">
- <view class="inner_title">
- <view class="name name_1">姓名</view>
- <view class="name name_2">部门</view>
- <view class="name name_2">当前位置</view>
- <view class="name name_3">下井时间</view>
- </view>
- <view class="list_item">
- <view class="item" v-for="(item,index) in peoples" :key="index">
- <view class="text text_1">{{item.name}}</view>
- <view class="text text_2">{{item.depart_name}}</view>
- <view class="text text_2">{{item.station_name}}</view>
- <view class="text text_3">{{item.time}}</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- peoples:[]
- };
- },
- onLoad(option) {
- // console.log(option)
- uni.setNavigationBarTitle({
- title:option.title
- })
-
- this.getPeoples(option.id)
- },
- methods:{
- async getPeoples(id){
- const res = await this.$myRequest({
- method:"POST",
- url: '/personnel/depart/people',
- header: {
- 'Content-Type': 'application/json',
- },
- data:{
- depart_id:id
- }
- })
- const data = res.data.data
- this.peoples = data
- console.log(this.peoples)
- },
- }
-
- }
- </script>
- <style lang="scss">
- .inner_box{
- .inner_title{
-
- padding: 0 25rpx;
-
- height: 94rpx;
- background: #F3F6FA;
-
- display: flex;
- align-items: center;
- .name{
- font-size: 27rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #232627;
- text-align: center;
- }
- .name_1{
- width: 125rpx;
- }
- .name_2{
- width: 220rpx;
- }
- .name_3{
- width: 125rpx;
- }
- }
- .list_item{
- .item{
- padding: 0 24rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
-
- border-bottom: 1px solid #f3f3f3;
- .text{
- font-size: 25rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- line-height: 94rpx;
- text-align: center;
- }
- .text_1{
- width: 125rpx;
- }
- .text_2{
- width: 220rpx;
- }
- .text_3{
- width: 125rpx;
- }
- }
- }
- }
- </style>
|