From 21ccd9ff81e9c0dcae10857e090e13aa49690fe5 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 5 Mar 2024 16:42:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qujing/AppPhotoReport/PhotoDetail.vue | 52 ++++++++++++------- 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/src/project/qujing/AppPhotoReport/PhotoDetail.vue b/src/project/qujing/AppPhotoReport/PhotoDetail.vue index 2730bd0..6e82181 100644 --- a/src/project/qujing/AppPhotoReport/PhotoDetail.vue +++ b/src/project/qujing/AppPhotoReport/PhotoDetail.vue @@ -13,17 +13,17 @@
- 暂无照片 + 暂无照片 - +
- 暂无照片 + 暂无照片
- - - + + +
@@ -97,8 +97,15 @@ export default { systemExplain: `${createUserName}完成评价 (${score}星评价)` }) } - return list - } + return list; + }, + tabs: v => { + const tabs = [{name: "办理进度"}]; + if (!!v.evaluation?.id) { + tabs.push({name: "我的评价"}); + } + return tabs; + }, }, onShow() { this.getInfo() @@ -117,7 +124,7 @@ export default { if (['3', '4'].includes(res.data.eventStatus) && res.data.groupName != '矛盾调解') { this.result = res.data.processList[0] } - if(this.info.judgeRisk) { + if (this.info.judgeRisk) { this.info.judgeRiskList = this.info.judgeRisk.split(',') } } @@ -133,11 +140,14 @@ export default { preview(url) { uni.previewImage({ urls: this.info.files.map(v => v.url), - current: url - }) - } - } -} + current: url, + }); + }, + hasFiles(files) { + return files?.length > 0; + }, + }, +};