diff --git a/src/project/wuxi/AppHandSnapshot/AppHandSnapshot.vue b/src/project/wuxi/AppHandSnapshot/AppHandSnapshot.vue index 84013bc5..9bbe6a93 100644 --- a/src/project/wuxi/AppHandSnapshot/AppHandSnapshot.vue +++ b/src/project/wuxi/AppHandSnapshot/AppHandSnapshot.vue @@ -87,7 +87,7 @@ export default { }, onReachBottom() { if (!this.tabIndex) { - uni.$emit('nextList') + this.$nextTick(() => this.$refs['List'].nextPage()) } }, } diff --git a/src/project/wuxi/AppHandSnapshot/Detail.vue b/src/project/wuxi/AppHandSnapshot/Detail.vue index 218cd4a6..923c00ce 100644 --- a/src/project/wuxi/AppHandSnapshot/Detail.vue +++ b/src/project/wuxi/AppHandSnapshot/Detail.vue @@ -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 diff --git a/src/project/wuxi/AppHandSnapshot/List.vue b/src/project/wuxi/AppHandSnapshot/List.vue index 7545f8c5..27b09464 100644 --- a/src/project/wuxi/AppHandSnapshot/List.vue +++ b/src/project/wuxi/AppHandSnapshot/List.vue @@ -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, {