评价图片

This commit is contained in:
liuye
2023-05-12 15:11:44 +08:00
parent 6e7823e43e
commit 21906806d5
3 changed files with 10 additions and 10 deletions

View File

@@ -87,7 +87,7 @@ export default {
},
onReachBottom() {
if (!this.tabIndex) {
uni.$emit('nextList')
this.$nextTick(() => this.$refs['List'].nextPage())
}
},
}

View File

@@ -145,12 +145,13 @@ export default {
statusLabel: this.$dict.getLabel('residentReportDoStatus', e.doStatus)
}))
if (this.evaluation.id) {
const {id, createUserName, score, createTime: doTime, content: doExplain} = this.evaluation
const {id, createUserName, score, files, createTime: doTime, content: doExplain} = this.evaluation
list.splice(0, 0, {
id, doTime, doExplain,
statusLabel: `${score}星评价`,
avatar: getAvatar(createUserName),
systemExplain: `${createUserName}完成评价`
systemExplain: `${createUserName}完成评价`,
files: files
})
}
return list

View File

@@ -87,16 +87,11 @@ export default {
}
},
onLoad() {
this.searchGrid.girdId = this.user.girdId
this.searchGrid.girdName = this.user.girdName
uni.$on('nextList', () => {
this.current++
this.getList()
})
},
onShow() {
document.title = '事件上报'
this.searchGrid.girdId = this.user.girdId
this.searchGrid.girdName = this.user.girdName
this.current = 1
this.getList()
},
@@ -110,6 +105,10 @@ export default {
this.current = 1
this.getList()
},
nextPage() {
this.current++
this.getList()
},
getList() {
let {current, eventStatus, searchGrid: {id: girdId}} = this
this.$http.post(`/app/appresidentreportinfo/listByGirdMember`, null, {