Commit b50cf64990ce7bc3fbc7e946d5241d1612f510c6
1 parent
4afadb73
x
Showing
2 changed files
with
4 additions
and
3 deletions
src/components/community/RoomDecorationRecord.vue
| @@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
| 42 | import { updateRoomDecorationRecord } from '@/api/community/listRoomDecorationRecordApi' | 42 | import { updateRoomDecorationRecord } from '@/api/community/listRoomDecorationRecordApi' |
| 43 | import { getCommunityId } from '@/api/community/communityApi' | 43 | import { getCommunityId } from '@/api/community/communityApi' |
| 44 | import UploadImageUrl from '@/components/upload/UploadImageUrl' | 44 | import UploadImageUrl from '@/components/upload/UploadImageUrl' |
| 45 | -import UploadVedio from './UploadVedio' | 45 | +import UploadVedio from '@/components/upload/uploadVedio' |
| 46 | 46 | ||
| 47 | export default { | 47 | export default { |
| 48 | name: 'RoomDecorationRecord', | 48 | name: 'RoomDecorationRecord', |
| @@ -96,8 +96,8 @@ export default { | @@ -96,8 +96,8 @@ export default { | ||
| 96 | handleImageChange(photosUrl) { | 96 | handleImageChange(photosUrl) { |
| 97 | this.roomDecorationRecordInfo.photos = photosUrl | 97 | this.roomDecorationRecordInfo.photos = photosUrl |
| 98 | }, | 98 | }, |
| 99 | - handleVideoChange(videoInfo) { | ||
| 100 | - this.roomDecorationRecordInfo.videoName = videoInfo.realFileName | 99 | + handleVideoChange(realFileName) { |
| 100 | + this.roomDecorationRecordInfo.videoName = realFileName | ||
| 101 | }, | 101 | }, |
| 102 | validateForm() { | 102 | validateForm() { |
| 103 | if (!this.roomDecorationRecordInfo.isTrue) { | 103 | if (!this.roomDecorationRecordInfo.isTrue) { |
src/components/upload/uploadVedio.vue
| @@ -58,6 +58,7 @@ export default { | @@ -58,6 +58,7 @@ export default { | ||
| 58 | if (res.realFileName) { | 58 | if (res.realFileName) { |
| 59 | this.progress = 100 | 59 | this.progress = 100 |
| 60 | this.realFileName = res.realFileName | 60 | this.realFileName = res.realFileName |
| 61 | + this.$emit('change', this.realFileName) | ||
| 61 | this.$message.success(this.$t('common.operationSuccess')) | 62 | this.$message.success(this.$t('common.operationSuccess')) |
| 62 | } | 63 | } |
| 63 | } catch (error) { | 64 | } catch (error) { |