From dc1248dd3ae2e2b66723ebc14691d0ad0f93def7 Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Thu, 17 Nov 2022 13:57:50 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pingchang/AppPhotoReport/PhotoDetail.vue | 25 +++----------------
.../pingchang/AppPhotoReport/PhotoForm.vue | 6 ++---
2 files changed, 5 insertions(+), 26 deletions(-)
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)
}