zhangxiaoxu123456
2021-12-20 301289e539c417995f95f5cb91fd1f6043bb7cfd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<template>
    <view class="zhuanhuiStauts-box">
        <view class="zhuanhuiStauts-main">
            <view class="zhuanhuiStauts-block" v-for="(item,index) in zhuanhuiList" :key="index">
                <view class="zhuanhuiStauts-time-line">
                    <h1>申请时间:{{item.createTime}}</h1>
                    <u-button class="passBtn">{{item.status == 0 ? '待审核' : item.status == 1 ? '通过' : '拒绝' }}</u-button>
                </view>
                <text class="name">姓名:{{item.userName}}</text>
                <!-- <text class="name">电话:15236598965</text> -->
                <text class="name">转入工会:{{item.newDeptName}}</text>
                <view class="zhuanhuiStauts-time-line">
                    <text class="name">转会原因:{{item.content}}</text>
                    <!-- <u-button class="deleteBtn">删除</u-button> -->
                </view>
                
            </view>
            <!-- <view class="zhuanhuiStauts-block">
                <view class="zhuanhuiStauts-time-line">
                    <h1>申请时间:2020.06.08 10:25:30</h1>
                    <u-button class="passBtn">已同意</u-button>
                </view>
                <text class="name">姓名:赵建国</text>
                <text class="name">电话:15236598965</text>
                <text class="name">转入工会:某某工会</text>
                <view class="zhuanhuiStauts-time-line">
                    <text class="name">转会原因:个人原因</text>
                </view>
                
            </view> -->
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                userId:'',
                zhuanhuiList:[], //list列表
            }
        },
        onLoad(options) {
            console.log('options',options)
            this.userId = options.userId
        }, 
        onReady() {
            this.zhuanhuifindAll()
        },
        methods: {
            zhuanhuifindAll() {
                this.$u.api.zhuanhuifindAll({userId:this.userId}).then(res => {
                    this.zhuanhuiList = res.obj
                })
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    /deep/ .u-hairline-border::after{
        border:0px;
    }
    /deep/ .u-btn{
        margin-right: 0px;
    }
    page{
        background-color: #f1f3f5;
    }
    .zhuanhuiStauts-main{
        width: 100%;
        padding: 0 38rpx;
    }
    .zhuanhuiStauts-block{
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        border-radius: 8rpx;
        padding: 40rpx;
        box-sizing: border-box;
        margin-top: 40rpx;
        .name{
            font-size: 28rpx;
            color: #333333;
            line-height: 2.4;
        }
    }
  .zhuanhuiStauts-time-line{
      width: 100%;
      display: flex;
      align-items: center;
      h1{
         font-size: 24rpx;
          color: #666666;
          font-weight: normal;
      }
      .passBtn{
          background-color:rgba(255,78,0,0.14);
          border-radius: 100rpx;
          color: #ff4e00;
          outline:none;
      }
      .deleteBtn{
          background-color:transparent;
          border-radius: 100rpx;
          color: #b6b6b6;
          outline:none;
      }
  }
</style>