v1.9 优化装修图片上传bug

This commit is contained in:
wuxw 2025-11-03 18:59:26 +08:00
parent c54a6f92fb
commit 1cfc4fea0a
3 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@
:placeholder="$t('roomDecorationRecord.remarkPlaceholder')" :rows="3" />
</el-form-item>
<el-form-item :label="$t('roomDecorationRecord.uploadImage')">
<upload-image-url ref="uploadImageUrl" :image-count="99" @notifyUploadCoverImage="handleImageChange" />
<upload-image-url ref="uploadImageUrl" :image-count="1" @notifyUploadCoverImage="handleImageChange" />
</el-form-item>
<el-form-item :label="$t('roomDecorationRecord.uploadVideo')">
<upload-vedio ref="uploadVedio" @change="handleVideoChange" />
@ -94,7 +94,7 @@ export default {
this.clearRoomDecorationRecordInfo()
},
handleImageChange(photosUrl) {
this.roomDecorationRecordInfo.photos = photosUrl.map(item => item.fileId)
this.roomDecorationRecordInfo.photos = photosUrl
},
handleVideoChange(videoInfo) {
this.roomDecorationRecordInfo.videoName = videoInfo.realFileName

View File

@ -20,7 +20,7 @@
<el-table-column prop="roomName" :label="$t('listRoomRenovationRecordDetails.room')" align="center" />
<el-table-column :label="$t('listRoomRenovationRecordDetails.media')" align="center">
<template slot-scope="scope">
<div v-if="scope.row.relTypeCd === '19000'" class="image-container" @click="showImg(scope.row.url)">
<div v-if="scope.row.relTypeCd === '19000'" class="image-container" >
<el-image :src="scope.row.url" :preview-src-list="[scope.row.url]" fit="cover"
style="width:50px;height:50px">
<div slot="error" class="image-slot">

View File

@ -181,7 +181,7 @@ export default {
try {
this.loading = true
const res = await deployWorkflow({ modelId: row.modelId })
if (res.code === 0) {
if (res.code=== 0) {
this.$message.success(this.$t('common.operationSuccess'))
this.fetchData()
} else {
@ -189,7 +189,7 @@ export default {
}
} catch (error) {
console.error('部署流程失败:', error)
this.$message.error(this.$t('common.submitFailed'))
this.$message.error(error)
} finally {
this.loading = false
}