mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
v1.9 优化业主详情投诉不显示 bug
This commit is contained in:
parent
9ac651582f
commit
82d8213714
@ -1,17 +1,33 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function listComplaints(params) {
|
||||
return request({
|
||||
url: '/complaint.listComplaints',
|
||||
method: 'get',
|
||||
params
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/complaint.listComplaints',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
.then(response => {
|
||||
resolve(response.data)
|
||||
})
|
||||
.catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
export function listRunWorkflowImage(params) {
|
||||
return request({
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/complaint/listRunWorkflowImage',
|
||||
method: 'get',
|
||||
params
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
.then(response => {
|
||||
resolve(response.data)
|
||||
})
|
||||
.catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div class="margin-top">
|
||||
<el-table :data="ownerDetailComplaintInfo.complaints" style="width: 100%">
|
||||
<el-table-column prop="typeCdName" :label="$t('complaint.table.type')" align="center"></el-table-column>
|
||||
<el-table-column prop="typeName" :label="$t('complaint.table.type')" align="center"></el-table-column>
|
||||
<el-table-column :label="$t('complaint.table.room')" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.floorNum}}-{{scope.row.unitNum}}-{{scope.row.roomNum}}
|
||||
{{scope.row.roomName}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="complaintName" :label="$t('complaint.table.contact')" align="center"></el-table-column>
|
||||
@ -27,9 +27,7 @@
|
||||
<el-button size="mini" @click="_openComplaintDetailModel(scope.row)">
|
||||
{{ $t('common.detail') }}
|
||||
</el-button>
|
||||
<el-button size="mini" @click="_openRunWorkflowImage(scope.row)">
|
||||
{{ $t('ownerDetailComplaint.flowChart') }}
|
||||
</el-button>
|
||||
|
||||
</el-button-group>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -81,7 +79,7 @@ export default {
|
||||
this.ownerDetailComplaintInfo.link = link
|
||||
this._loadOwnerDetailComplaintData(1, this.pagination.pageSize)
|
||||
},
|
||||
_loadOwnerDetailComplaintData(page, row) {
|
||||
async _loadOwnerDetailComplaintData(page, row) {
|
||||
const params = {
|
||||
communityId: getCommunityId(),
|
||||
memberId: this.ownerDetailComplaintInfo.ownerId,
|
||||
@ -89,12 +87,10 @@ export default {
|
||||
row: row
|
||||
}
|
||||
|
||||
listComplaints(params).then(response => {
|
||||
this.ownerDetailComplaintInfo.complaints = response.complaints
|
||||
this.pagination.total = response.total
|
||||
}).catch(error => {
|
||||
console.error('请求失败处理', error)
|
||||
})
|
||||
const res = await listComplaints(params)
|
||||
|
||||
this.ownerDetailComplaintInfo.complaints = res.data
|
||||
this.pagination.total = res.total
|
||||
},
|
||||
_openComplaintDetailModel(complaint) {
|
||||
this.$refs.complaintDetail.open(complaint)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user