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