Commit 1cfc4fea0ac568cd62730ec7c2182c4b932282b6

Authored by wuxw
1 parent c54a6f92

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

src/components/community/RoomDecorationRecord.vue
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 :placeholder="$t('roomDecorationRecord.remarkPlaceholder')" :rows="3" /> 21 :placeholder="$t('roomDecorationRecord.remarkPlaceholder')" :rows="3" />
22 </el-form-item> 22 </el-form-item>
23 <el-form-item :label="$t('roomDecorationRecord.uploadImage')"> 23 <el-form-item :label="$t('roomDecorationRecord.uploadImage')">
24 - <upload-image-url ref="uploadImageUrl" :image-count="99" @notifyUploadCoverImage="handleImageChange" /> 24 + <upload-image-url ref="uploadImageUrl" :image-count="1" @notifyUploadCoverImage="handleImageChange" />
25 </el-form-item> 25 </el-form-item>
26 <el-form-item :label="$t('roomDecorationRecord.uploadVideo')"> 26 <el-form-item :label="$t('roomDecorationRecord.uploadVideo')">
27 <upload-vedio ref="uploadVedio" @change="handleVideoChange" /> 27 <upload-vedio ref="uploadVedio" @change="handleVideoChange" />
@@ -94,7 +94,7 @@ export default { @@ -94,7 +94,7 @@ export default {
94 this.clearRoomDecorationRecordInfo() 94 this.clearRoomDecorationRecordInfo()
95 }, 95 },
96 handleImageChange(photosUrl) { 96 handleImageChange(photosUrl) {
97 - this.roomDecorationRecordInfo.photos = photosUrl.map(item => item.fileId) 97 + this.roomDecorationRecordInfo.photos = photosUrl
98 }, 98 },
99 handleVideoChange(videoInfo) { 99 handleVideoChange(videoInfo) {
100 this.roomDecorationRecordInfo.videoName = videoInfo.realFileName 100 this.roomDecorationRecordInfo.videoName = videoInfo.realFileName
src/views/community/listRoomRenovationRecordDetailsList.vue
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 <el-table-column prop="roomName" :label="$t('listRoomRenovationRecordDetails.room')" align="center" /> 20 <el-table-column prop="roomName" :label="$t('listRoomRenovationRecordDetails.room')" align="center" />
21 <el-table-column :label="$t('listRoomRenovationRecordDetails.media')" align="center"> 21 <el-table-column :label="$t('listRoomRenovationRecordDetails.media')" align="center">
22 <template slot-scope="scope"> 22 <template slot-scope="scope">
23 - <div v-if="scope.row.relTypeCd === '19000'" class="image-container" @click="showImg(scope.row.url)"> 23 + <div v-if="scope.row.relTypeCd === '19000'" class="image-container" >
24 <el-image :src="scope.row.url" :preview-src-list="[scope.row.url]" fit="cover" 24 <el-image :src="scope.row.url" :preview-src-list="[scope.row.url]" fit="cover"
25 style="width:50px;height:50px"> 25 style="width:50px;height:50px">
26 <div slot="error" class="image-slot"> 26 <div slot="error" class="image-slot">
src/views/resource/resourceAuditFlowList.vue
@@ -181,7 +181,7 @@ export default { @@ -181,7 +181,7 @@ export default {
181 try { 181 try {
182 this.loading = true 182 this.loading = true
183 const res = await deployWorkflow({ modelId: row.modelId }) 183 const res = await deployWorkflow({ modelId: row.modelId })
184 - if (res.code === 0) { 184 + if (res.code=== 0) {
185 this.$message.success(this.$t('common.operationSuccess')) 185 this.$message.success(this.$t('common.operationSuccess'))
186 this.fetchData() 186 this.fetchData()
187 } else { 187 } else {
@@ -189,7 +189,7 @@ export default { @@ -189,7 +189,7 @@ export default {
189 } 189 }
190 } catch (error) { 190 } catch (error) {
191 console.error('部署流程失败:', error) 191 console.error('部署流程失败:', error)
192 - this.$message.error(this.$t('common.submitFailed')) 192 + this.$message.error(error)
193 } finally { 193 } finally {
194 this.loading = false 194 this.loading = false
195 } 195 }