콘텐츠 가격 수정기능 추가

This commit is contained in:
Yu Sung 2024-05-29 15:45:11 +09:00
parent 3cfa73c37b
commit f4ae6888ac
1 changed files with 19 additions and 0 deletions

View File

@ -227,6 +227,20 @@
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row align="center">
<v-col cols="4">
가격
</v-col>
<v-col cols="8">
<v-text-field
v-model="audio_content.price"
label="가격"
required
/>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row>
<v-col cols="4">
@ -699,6 +713,7 @@ export default {
this.audio_content.id = item.audioContentId
this.audio_content.title = item.title
this.audio_content.detail = item.detail
this.audio_content.price = item.price
this.audio_content.is_adult = item.isAdult
this.audio_content.is_comment_available = item.isCommentAvailable
this.audio_content.cover_image_url = item.coverImageUrl
@ -963,6 +978,10 @@ export default {
request.isCommentAvailable = this.audio_content.is_comment_available
}
if (this.audio_content.price !== this.selected_audio_content.price) {
request.price = this.audio_content.price
}
if (this.audio_content.cover_image !== null) {
formData.append("coverImage", this.audio_content.cover_image)
}