@@ -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;
+ },
+ },
+};