This commit is contained in:
shijingjing
2023-04-03 16:12:37 +08:00
parent 878999c441
commit 0533937e25
2 changed files with 20 additions and 5 deletions

View File

@@ -57,9 +57,14 @@ export default {
list: [],
dictList: [],
flag: false,
id: '',
}
},
onLoad(o) {
if(o.id) {
this.id = o.id
this.getDetail()
}
this.$dict.load(['clapEventStatus'])
this.getType()
},
@@ -119,7 +124,17 @@ export default {
handleSelectGrid(v) {
this.form.girdName = v.girdName
this.form.girdId = v.girdId
}
},
getDetail() {
this.$instance.post(`/app/appintegraluserapply/queryDetailById?id=${this.id}`).then(res => {
if (res?.data) {
this.form = res.data
this.form.images = res.data.files.filter(e => (['jpeg', 'jpg', 'png'].includes(e.name.split('.')[1])))
this.form.videos = res.data.files.filter(e => (['mp4'].includes(e.name.split('.')[1])))
this.form.files = []
}
})
},
}
}
</script>
@@ -159,6 +174,7 @@ export default {
textarea {
padding: 24px 32px;
box-sizing: border-box;
width: 100%;
}
.tips {
@@ -173,7 +189,7 @@ export default {
text-align: left;
}
.upload {
padding: 24px 32px;
padding: 24px 32px 0 32px;
box-sizing: border-box;
}
}