diff --git a/src/project/pingchang/AppPhotoReport/PhotoDetail.vue b/src/project/pingchang/AppPhotoReport/PhotoDetail.vue
index 7743e88..ee20361 100644
--- a/src/project/pingchang/AppPhotoReport/PhotoDetail.vue
+++ b/src/project/pingchang/AppPhotoReport/PhotoDetail.vue
@@ -18,14 +18,6 @@
-
currentTab=v"/>
@@ -60,10 +52,9 @@
-
+
@@ -80,13 +71,6 @@ export default {
}
},
computed: {
- // detailStatus: v => {
- // const status = !v.evaluation.id ? v.info.eventStatus : 'evaluation'
- // return {
- // cls: 'status-' + status,
- // label: !v.evaluation.id ? v.$dict.getLabel('clapEventStatus', v.info.eventStatus) : "已评价"
- // }
- // },
process() {
const list = this.info?.processList
if (this.evaluation.id) {
@@ -101,7 +85,7 @@ export default {
},
onLoad(query) {
this.$loading()
- this.$dict.load(['clapEventStatus']).then(() => {
+ this.$dict.load('clapEventStatus').then(() => {
this.getInfo(query.id)
})
},
@@ -110,9 +94,6 @@ export default {
this.$instance.post(`/app/appclapeventinfopingchang/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.info = res.data
- if (res.data.eventStatus > 1) {
- this.result = res.data.processList[0]
- }
this.$nextTick(() => {
this.pageShow = true
})
diff --git a/src/project/pingchang/AppPhotoReport/PhotoForm.vue b/src/project/pingchang/AppPhotoReport/PhotoForm.vue
index 48243f2..ac8081e 100644
--- a/src/project/pingchang/AppPhotoReport/PhotoForm.vue
+++ b/src/project/pingchang/AppPhotoReport/PhotoForm.vue
@@ -228,17 +228,15 @@ export default {
this.$instance.post(`/app/appclapeventinfopingchang/addOrUpdate`, {
...this.form,
openid: this.user.openid,
- // portrait: this.user.avatarUrl,
- // files: this.form.files,
groupName: this.dictList.filter(v => v.value === this.form.groupId)[0].label
}).then(res => {
this.$hideLoading()
this.flag = false
- if (res.code == 0) {
+ if (res?.code == 0) {
uni.$emit('update')
setTimeout(() => {
uni.redirectTo({
- url: './PhotoResult?id=' + res.data.id
+ url: `./PhotoResult?id=${this.form.id}`
})
}, 400)
}