e4877374
wuxw
开发完成admin 小区投诉功能
|
1
|
<template>
|
22935f31
wuxw
v1.9 admin 投訴工單詳情...
|
2
|
<div class="complaint-detail-container padding">
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
3
|
<el-card class="box-card">
|
08c01d85
wuxw
优化投诉详情页面
|
4
|
<div slot="header" class=" flex justify-between">
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
5
6
7
8
9
10
11
12
13
|
<span>{{ $t('complaintDetail.title') }}</span>
<el-button type="link" size="mini" @click="goBack">
{{ $t('common.back') }}
</el-button>
</div>
<div class="card-content">
<el-row :gutter="20" class="info-section text-left">
<el-col :span="6">
<div class="info-item">
|
22935f31
wuxw
v1.9 admin 投訴工單詳情...
|
14
|
<label>{{ $t('adminComplaint.table.complaintId') }}:</label>
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
15
16
17
18
19
|
<span>{{ complaintDetail.complaintId }}</span>
</div>
</el-col>
<el-col :span="6">
<div class="info-item">
|
22935f31
wuxw
v1.9 admin 投訴工單詳情...
|
20
|
<label>{{ $t('adminComplaint.table.type') }}:</label>
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
21
22
23
24
25
|
<span>{{ complaintDetail.typeName }}</span>
</div>
</el-col>
<el-col :span="6">
<div class="info-item">
|
22935f31
wuxw
v1.9 admin 投訴工單詳情...
|
26
|
<label>{{ $t('adminComplaint.table.room') }}:</label>
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
27
28
29
30
31
|
<span>{{ complaintDetail.roomName }}</span>
</div>
</el-col>
<el-col :span="6">
<div class="info-item">
|
22935f31
wuxw
v1.9 admin 投訴工單詳情...
|
32
|
<label>{{ $t('adminComplaint.table.contact') }}:</label>
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
33
34
35
36
37
38
39
40
41
|
<span>{{ complaintDetail.complaintName }}</span>
</div>
</el-col>
</el-row>
<el-row :gutter="20" class="info-section text-left">
<el-col :span="6">
<div class="info-item">
|
22935f31
wuxw
v1.9 admin 投訴工單詳情...
|
42
|
<label>{{ $t('adminComplaint.table.contactTel') }}:</label>
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
43
44
45
46
47
|
<span>{{ complaintDetail.tel }}</span>
</div>
</el-col>
<el-col :span="6">
<div class="info-item">
|
22935f31
wuxw
v1.9 admin 投訴工單詳情...
|
48
|
<label>{{ $t('adminComplaint.table.status') }}:</label>
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
49
50
51
52
53
|
<span>{{ complaintDetail.stateName }}</span>
</div>
</el-col>
<el-col :span="12">
<div class="info-item">
|
22935f31
wuxw
v1.9 admin 投訴工單詳情...
|
54
|
<label>{{ $t('adminComplaint.table.createTime') }}:</label>
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
55
56
57
58
59
60
61
62
|
<span>{{ complaintDetail.createTime }}</span>
</div>
</el-col>
</el-row>
<el-row :gutter="20" class="info-section text-left">
<el-col :span="24">
<div class="info-item">
|
22935f31
wuxw
v1.9 admin 投訴工單詳情...
|
63
|
<label>{{ $t('adminComplaint.table.content') }}:</label>
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
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
|
<span>{{ complaintDetail.context }}</span>
</div>
</el-col>
</el-row>
</div>
<divider></divider>
<el-tabs v-model="activeTab" @tab-click="handleTabClick(activeTab)">
<el-tab-pane :label="$t('complaintDetail.workflow')" name="aComplaintDetailEvent">
<a-complaint-detail-event ref="aComplaintDetailEvent"
:complaint-id="complaintDetail.complaintId"></a-complaint-detail-event>
</el-tab-pane>
<el-tab-pane :label="$t('complaintDetail.evaluation')" name="aComplaintDetailAppraise">
<a-complaint-detail-appraise ref="aComplaintDetailAppraise"
:complaint-id="complaintDetail.complaintId"></a-complaint-detail-appraise>
</el-tab-pane>
<el-tab-pane :label="$t('complaintDetail.type')" name="aComplaintDetailType">
<a-complaint-detail-type ref="aComplaintDetailType" :complaint-id="complaintDetail.complaintId"
:type-cd="complaintDetail.typeCd"></a-complaint-detail-type>
</el-tab-pane>
</el-tabs>
</el-card>
</div>
</template>
<script>
import { getComplaintDetail } from '@/api/complaint/adminComplaintDetailApi'
import AComplaintDetailEvent from '@/components/complaint/aComplaintDetailEvent'
import AComplaintDetailAppraise from '@/components/complaint/aComplaintDetailAppraise'
import AComplaintDetailType from '@/components/complaint/aComplaintDetailType'
import divider from '@/components/system/divider'
export default {
name: 'AdminComplaintDetail',
components: {
AComplaintDetailEvent,
AComplaintDetailAppraise,
AComplaintDetailType,
divider
},
data() {
return {
complaintDetail: {
complaintId: '',
typeName: '',
typeCd: '',
roomName: '',
complaintName: '',
tel: '',
stateName: '',
createTime: '',
context: ''
},
activeTab: 'aComplaintDetailEvent'
}
},
created() {
this.complaintDetail.complaintId = this.$route.query.complaintId
if (this.$route.query.currentTab) {
this.activeTab = this.$route.query.currentTab
}
this.loadComplaintDetail()
},
methods: {
async loadComplaintDetail() {
try {
const params = {
complaintId: this.complaintDetail.complaintId,
page: 1,
row: 1,
ownerTypeCd: '1001'
}
const { data } = await getComplaintDetail(params)
if (data && data.length > 0) {
Object.assign(this.complaintDetail, data[0])
}
} catch (error) {
this.$message.error(this.$t('complaintDetail.fetchError'))
}
},
goBack() {
this.$router.go(-1)
},
handleTabClick(tab) {
this.activeTab = tab
setTimeout(() => {
this.$refs[tab].loadData()
|
08c01d85
wuxw
优化投诉详情页面
|
152
|
}, 500)
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
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
|
}
}
}
</script>
<style lang="scss" scoped>
.complaint-detail-container {
.header-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
.title {
font-size: 18px;
font-weight: bold;
}
}
.info-section {
margin-bottom: 15px;
color: #666;
}
.info-item {
margin-bottom: 10px;
label {
|
e4877374
wuxw
开发完成admin 小区投诉功能
|
183
184
185
|
margin-right: 10px;
}
}
|
08c01d85
wuxw
优化投诉详情页面
|
186
187
|
}
</style>
|