Commit 1cfc4fea0ac568cd62730ec7c2182c4b932282b6
1 parent
c54a6f92
v1.9 优化装修图片上传bug
Showing
3 changed files
with
5 additions
and
5 deletions
src/components/community/RoomDecorationRecord.vue
| ... | ... | @@ -21,7 +21,7 @@ |
| 21 | 21 | :placeholder="$t('roomDecorationRecord.remarkPlaceholder')" :rows="3" /> |
| 22 | 22 | </el-form-item> |
| 23 | 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 | 25 | </el-form-item> |
| 26 | 26 | <el-form-item :label="$t('roomDecorationRecord.uploadVideo')"> |
| 27 | 27 | <upload-vedio ref="uploadVedio" @change="handleVideoChange" /> |
| ... | ... | @@ -94,7 +94,7 @@ export default { |
| 94 | 94 | this.clearRoomDecorationRecordInfo() |
| 95 | 95 | }, |
| 96 | 96 | handleImageChange(photosUrl) { |
| 97 | - this.roomDecorationRecordInfo.photos = photosUrl.map(item => item.fileId) | |
| 97 | + this.roomDecorationRecordInfo.photos = photosUrl | |
| 98 | 98 | }, |
| 99 | 99 | handleVideoChange(videoInfo) { |
| 100 | 100 | this.roomDecorationRecordInfo.videoName = videoInfo.realFileName | ... | ... |
src/views/community/listRoomRenovationRecordDetailsList.vue
| ... | ... | @@ -20,7 +20,7 @@ |
| 20 | 20 | <el-table-column prop="roomName" :label="$t('listRoomRenovationRecordDetails.room')" align="center" /> |
| 21 | 21 | <el-table-column :label="$t('listRoomRenovationRecordDetails.media')" align="center"> |
| 22 | 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 | 24 | <el-image :src="scope.row.url" :preview-src-list="[scope.row.url]" fit="cover" |
| 25 | 25 | style="width:50px;height:50px"> |
| 26 | 26 | <div slot="error" class="image-slot"> | ... | ... |
src/views/resource/resourceAuditFlowList.vue
| ... | ... | @@ -181,7 +181,7 @@ export default { |
| 181 | 181 | try { |
| 182 | 182 | this.loading = true |
| 183 | 183 | const res = await deployWorkflow({ modelId: row.modelId }) |
| 184 | - if (res.code === 0) { | |
| 184 | + if (res.code=== 0) { | |
| 185 | 185 | this.$message.success(this.$t('common.operationSuccess')) |
| 186 | 186 | this.fetchData() |
| 187 | 187 | } else { |
| ... | ... | @@ -189,7 +189,7 @@ export default { |
| 189 | 189 | } |
| 190 | 190 | } catch (error) { |
| 191 | 191 | console.error('部署流程失败:', error) |
| 192 | - this.$message.error(this.$t('common.submitFailed')) | |
| 192 | + this.$message.error(error) | |
| 193 | 193 | } finally { |
| 194 | 194 | this.loading = false |
| 195 | 195 | } | ... | ... |