Merge pull request '콘텐츠 업로드 - 미리듣기 생성하지 않을 수 있도록 수정' (#10) from test into main
Reviewed-on: #10
This commit is contained in:
		| @@ -426,6 +426,22 @@ | |||||||
|               </v-col> |               </v-col> | ||||||
|             </v-row> |             </v-row> | ||||||
|           </v-card-text> |           </v-card-text> | ||||||
|  |           <v-card-text v-show="audio_content.price > 0"> | ||||||
|  |             <v-row align="center"> | ||||||
|  |               <v-col cols="4"> | ||||||
|  |                 미리듣기 생성 | ||||||
|  |               </v-col> | ||||||
|  |               <v-col | ||||||
|  |                 cols="8" | ||||||
|  |                 align="left" | ||||||
|  |               > | ||||||
|  |                 <input | ||||||
|  |                   v-model="audio_content.is_generate_preview" | ||||||
|  |                   type="checkbox" | ||||||
|  |                 > | ||||||
|  |               </v-col> | ||||||
|  |             </v-row> | ||||||
|  |           </v-card-text> | ||||||
|           <v-card-text v-show="audio_content.price > 0"> |           <v-card-text v-show="audio_content.price > 0"> | ||||||
|             <v-row align="center"> |             <v-row align="center"> | ||||||
|               <v-col cols="4"> |               <v-col cols="4"> | ||||||
| @@ -598,6 +614,7 @@ export default { | |||||||
|       audio_content: { |       audio_content: { | ||||||
|         price: 0, |         price: 0, | ||||||
|         is_adult: false, |         is_adult: false, | ||||||
|  |         is_generate_preview: true, | ||||||
|         is_comment_available: true, |         is_comment_available: true, | ||||||
|       }, |       }, | ||||||
|       audio_contents: [], |       audio_contents: [], | ||||||
| @@ -647,8 +664,6 @@ export default { | |||||||
|       this.audio_content.is_adult = item.isAdult |       this.audio_content.is_adult = item.isAdult | ||||||
|       this.audio_content.is_comment_available = item.isCommentAvailable |       this.audio_content.is_comment_available = item.isCommentAvailable | ||||||
|       this.audio_content.cover_image_url = item.coverImageUrl |       this.audio_content.cover_image_url = item.coverImageUrl | ||||||
|       console.log(this.audio_content) |  | ||||||
|  |  | ||||||
|       this.show_modify_dialog = true |       this.show_modify_dialog = true | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
| @@ -753,6 +768,7 @@ export default { | |||||||
|           price: this.audio_content.price, |           price: this.audio_content.price, | ||||||
|           themeId: this.audio_content.theme_id, |           themeId: this.audio_content.theme_id, | ||||||
|           isAdult: this.audio_content.is_adult, |           isAdult: this.audio_content.is_adult, | ||||||
|  |           isGeneratePreview: this.audio_content.price > 0 ? this.audio_content.is_generate_preview : false, | ||||||
|           isOnlyRental: this.audio_content.is_only_rental, |           isOnlyRental: this.audio_content.is_only_rental, | ||||||
|           isCommentAvailable: this.audio_content.is_comment_available |           isCommentAvailable: this.audio_content.is_comment_available | ||||||
|         } |         } | ||||||
| @@ -817,8 +833,6 @@ export default { | |||||||
|         formData.append("contentFile", this.audio_content.content_file) |         formData.append("contentFile", this.audio_content.content_file) | ||||||
|         formData.append("request", JSON.stringify(request)) |         formData.append("request", JSON.stringify(request)) | ||||||
|  |  | ||||||
|         console.log(request) |  | ||||||
|  |  | ||||||
|         const res = await api.createAudioContent(formData) |         const res = await api.createAudioContent(formData) | ||||||
|         if (res.status === 200 && res.data.success === true) { |         if (res.status === 200 && res.data.success === true) { | ||||||
|           this.is_loading = false |           this.is_loading = false | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user