Commit b50cf64990ce7bc3fbc7e946d5241d1612f510c6

Authored by wuxw
1 parent 4afadb73

x

src/components/community/RoomDecorationRecord.vue
... ... @@ -42,7 +42,7 @@
42 42 import { updateRoomDecorationRecord } from '@/api/community/listRoomDecorationRecordApi'
43 43 import { getCommunityId } from '@/api/community/communityApi'
44 44 import UploadImageUrl from '@/components/upload/UploadImageUrl'
45   -import UploadVedio from './UploadVedio'
  45 +import UploadVedio from '@/components/upload/uploadVedio'
46 46  
47 47 export default {
48 48 name: 'RoomDecorationRecord',
... ... @@ -96,8 +96,8 @@ export default {
96 96 handleImageChange(photosUrl) {
97 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 102 validateForm() {
103 103 if (!this.roomDecorationRecordInfo.isTrue) {
... ...
src/components/upload/uploadVedio.vue
... ... @@ -58,6 +58,7 @@ export default {
58 58 if (res.realFileName) {
59 59 this.progress = 100
60 60 this.realFileName = res.realFileName
  61 + this.$emit('change', this.realFileName)
61 62 this.$message.success(this.$t('common.operationSuccess'))
62 63 }
63 64 } catch (error) {
... ...