linwe
2024-08-08 3c738f4fe2762bba8087e5a22fc0dc06560eab0e
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<template>
    <view class="">
        <view class="box bgc-ff">
            <view class="item-row flex j-c-s-b a-i-c">
                <text>地址</text>
                <text class="address">{{detail.address}}</text>
            </view>
            <view class="item-row flex j-c-s-b a-i-c" v-if="detail.pubContent">
                <text>宣防内容</text>
                <text class="address">{{detail.pubContent}}</text>
            </view>
 
            <view class="item-row flex j-c-s-b a-i-c">
                <text>时间</text>
                <text>{{detail.createTime}}</text>
            </view>
        </view>
 
        <view class="box images bgc-ff" v-if="images.length">
            <caption-row title="宣防佐证照片" />
            <view class="ml-20 mt-10">
                <u-album :urls="images" singleSize="100" multipleSize="100"></u-album>
            </view>
 
        </view>
 
        <view class="box bgc-ff">
            <caption-row title="宣防对象" />
            <view class="" v-for="(i,k) in detail.backblastPubPersonEntityList" :key="k">
                <view class="index-name f-28 fw">
                    人员-#{{k+ 1}}
                </view>
                <view class="item-row flex j-c-s-b a-i-c">
                    <text>姓名</text>
                    <text>{{i.name}}</text>
                </view>
                <view class="item-row flex j-c-s-b a-i-c">
                    <text>手机号</text>
                    <text>{{i.telephone}}</text>
                </view>
                <view class="item-row flex j-c-s-b a-i-c">
                    <text>身份证号</text>
                    <text>{{i.idCard}}</text>
                </view>
                <view class="item-row flex j-c-s-b a-i-c">
                    <text>职业</text>
                    <text>{{i.occupation}}</text>
                </view>
                <view class="item-row flex j-c-s-b a-i-c">
                    <text>居住地</text>
                    <text class="address">{{i.address}}</text>
                </view>
            </view>
        </view>
        <view class="blank"></view>
 
    </view>
 
</template>
 
<script>
    import {
        getCounterfraudDetail
    } from "@/api/counterfraud/counterfraud.js"
    import {
 
        minioBaseUrl
    }
    from "@/common/setting.js"
    import captionRow from "@/components/caption/caption.vue"
    export default {
        components: {
            captionRow
        },
        data() {
            return {
                detail: {},
                images: []
            }
        },
 
        onLoad(option) {
            this.getDetail(option.id)
        },
 
        methods: {
            getDetail(id) {
                getCounterfraudDetail({
                    id
                }).then(res => {
                    this.detail = res.data;
                    if (res.data.pubUrls) {
                        this.images = this.setImageUrl(res.data.pubUrls);
                    }
                })
            },
 
            setImageUrl(str) {
                let urls = str.split(",")
                let temp = [];
                for (let i of urls) {
                    temp.push(`${minioBaseUrl}${i}`)
                }
                return temp
            }
        }
    }
</script>
 
<style lang="scss">
    page {
        background-color: #f5f5f5;
    }
 
    .item-row {
        width: 100%;
        padding: 20rpx;
        box-sizing: border-box;
        border-bottom: 1px solid #f5f5f5;
        font-size: 28rpx;
    }
 
    .address {
        width: 70%;
        text-align: right;
    }
 
    .box {
        padding: 0 20rpx;
        margin: 20rpx 20rpx 0;
    }
 
    .images {
        padding-bottom: 20rpx;
    }
 
    .caption {
        padding: 30rpx 0;
    }
 
    .index-name {
        padding: 20rpx 0;
        margin-left: 20rpx;
    }
 
    .blank {
        width: 100%;
        height: 100rpx;
    }
</style>