e5d43009
wuxw
测试投诉待办
|
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
|
</div>
</template>
<script>
import { getCommunityId } from '@/api/community/communityApi'
import { listComplaintAppraise } from '@/api/oa/complaintDetailApi'
import ReplyComplaintAppraise from './ReplyComplaintAppraise'
export default {
name: 'ComplaintDetailAppraise',
components: {
ReplyComplaintAppraise
},
data() {
return {
appraises: [],
loading: false,
complaintId: '',
communityId: ''
}
},
methods: {
async initData(params) {
this.communityId = getCommunityId()
this.complaintId = params.complaintId
await this.loadData()
},
async loadData() {
try {
this.loading = true
const params = {
communityId: this.communityId,
complaintId: this.complaintId,
page: 1,
row: 100
}
const { data } = await listComplaintAppraise(params)
this.appraises = data || []
} catch (error) {
console.error('获取工单评价数据失败:', error)
} finally {
this.loading = false
}
},
openReplyModal(row) {
this.$refs.replyComplaintAppraise.open(row)
},
handleSuccess() {
this.loadData()
}
}
}
</script>
<style lang="scss" scoped>
.complaint-detail-appraise {
margin-top: 20px;
}
</style>
|