zhanghua
2024-01-21 e1aa0ecffbabd618c71e4ad94370fb8dffe6ee1c
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<template>
    <div class="view">
        <div class="view-data">
            <el-descriptions class="margin-top" :column="2"  border>
                <el-descriptions-item label="问题类型">{{
                    getCategoryLabel(baseCase.category)
                }}</el-descriptions-item>
 
                <el-descriptions-item label="事发地点">{{
                    baseCase.site
                }}</el-descriptions-item>
 
                <el-descriptions-item label="大类名称"
                    ><span class="data-detail">{{
                        baseCase.violationsVO.categoryText
                    }}</span></el-descriptions-item
                >
                <el-descriptions-item label="商铺名称"
                    ><span class="data-detail">{{
                        baseCase.violationsVO.shopName
                    }}</span></el-descriptions-item
                >
                <el-descriptions-item label="小类名称"
                    ><span class="data-detail">{{
                        baseCase.violationsVO.typeText
                    }}</span></el-descriptions-item
                >
 
                <el-descriptions-item label="反映人"
                    ><span class="data-detail">{{
                        baseCase.violationsVO.informant
                    }}</span></el-descriptions-item
                >
                <el-descriptions-item label="事件等级"
                    ><span class="data-detail">{{
                        baseCase.violationsVO.gradeText
                    }}</span></el-descriptions-item
                >
                <el-descriptions-item label="联系方式"
                    ><span class="data-detail">{{
                        baseCase.violationsVO.informantPhoneCode
                    }}</span></el-descriptions-item
                >
 
                <el-descriptions-item label="案由"
                    ><span class="data-detail">{{
                        baseCase.violationsVO.actionCause
                    }}</span></el-descriptions-item
                >
 
                <el-descriptions-item label="身份证号"
                    ><span class="data-detail">{{
                        baseCase.violationsVO.informantIdCard
                    }}</span></el-descriptions-item
                >
                <el-descriptions-item label="所属街道"
                    ><span class="data-detail">{{
                        baseCase.streetText
                    }}</span></el-descriptions-item
                >
                <el-descriptions-item label="所属社区"
                    ><span class="data-detail">{{
                        baseCase.communityText
                    }}</span></el-descriptions-item
                >
                <el-descriptions-item label="问题描述"
                    ><span class="data-detail">{{
                        baseCase.violationsVO.description
                    }}</span></el-descriptions-item
                >
            </el-descriptions>
        </div>
        <div class="view-process">
            <div class="process-header">
                <el-button
                    :type="activeIndex === item.index ? 'primary' : ''"
                    v-for="item in titleList"
                    :key="item.title"
                    @click="changeComponent(item.index)"
                >
                    {{ item.title }}</el-button
                >
            </div>
            <div class="show-item">
                <div class="show-wrap">
                    <MyProcess
                        v-if="activeIndex === 1"
                        :handlePassVo="handlePassVo"
                        :baseCase="baseCase"
                    ></MyProcess>
                    <MyFilePicture
                        v-else-if="activeIndex === 2"
                        :filesPictureVo="filesPictureVo"
                        :mycode="mycode"
                    ></MyFilePicture>
                    <MySovleProblem
                        v-else-if="activeIndex === 3"
                        :baseCase="baseCase"
                        :handlePassVo="handlePassVo"
                    ></MySovleProblem>
                    <MyScene
                        v-else
                        :currentSitVo="currentSitVo"
                        :baseCase="baseCase"
                    ></MyScene>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
import MyProcess from "@/components/process";
import MyFilePicture from "@/components/filePictrue";
import MySovleProblem from "@/components/solveProblem";
import MyScene from "@/components/scene";
import { CATEGOTY } from "@/utils/helper";
 
export default {
    components: {
        MyProcess,
        MyFilePicture,
        MySovleProblem,
        MyScene,
    },
    data() {
        return {
            myInfo: {},
            activeIndex: 1,
            titleList: [
                {
                    title: "办理经过",
                    index: 1,
                },
                {
                    title: "案卷图片",
                    index: 2,
                },
                {
                    title: "问题处理",
                    index: 3,
                },
                {
                    title: "现场情况",
                    index: 4,
                },
            ],
            baseCase: {},
            handlePassVo: {},
            currentSitVo: {},
            filesPictureVo: {},
        };
    },
    created() {
        this.baseCase = this.info.baseCase;
        this.handlePassVo = this.info.handlePassVo;
        this.currentSitVo = this.info.currentSitVo;
        this.filesPictureVo = this.info.filesPictureVo;
    },
    methods: {
        changeComponent(index) {
            this.activeIndex = index;
        },
        getCategoryLabel(category) {
            return CATEGOTY.find((item) => item.value === category).label;
        },
    },
    props: ["info", "mycode"],
};
</script>
<style lang="scss" scoped>
.view {
    // display: flex;
    padding: 20px;
 
    .view-data {
        color: #4b9bb7;
        // flex: 4;
        padding: 0 30px 0 20px;
        // width: 480px;
        .data-item {
            display: flex;
            justify-content: space-between;
            line-height: 40px;
        }
 
        // border: 2px solid #ccc;
        border-radius: 5px;
        .data-title {
            line-height: 1.8;
            width: 70px;
            text-align: right;
            display: inline-grid;
        }
        .data-detail {
            line-height: 1.8;
            max-width: 240px;
            display: inline-grid;
            color: #333;
 
            width: calc(100% - 70px) !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: normal !important;
        }
    }
 
    .view-process {
        flex: 6;
        margin: 20px 0px 0px 20px;
 
        .process-header {
            display: flex;
            line-height: 40px;
 
            .process-title-item {
                width: 120px;
                text-align: center;
 
                .under-line {
                    height: 2px;
                    width: 100%;
                }
 
                .title-active {
                    color: #4b9bb7;
                }
 
                .line-active {
                    background-color: #4b9bb7;
                    border-radius: 20px;
                }
            }
        }
 
        .show-item {
            overflow: hidden;
            height: 600px;
            position: relative;
            .show-wrap {
                overflow: auto;
                height: 600px;
            }
        }
    }
}
</style>