feat(content): 유료 콘텐츠에만 정산요율 설정 UI 노출 및 요청 가드
This commit is contained in:
@@ -364,7 +364,7 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-text>
|
<v-card-text v-if="selected_audio_content.price > 0">
|
||||||
<v-row align="center">
|
<v-row align="center">
|
||||||
<v-col cols="4">
|
<v-col cols="4">
|
||||||
정산요율
|
정산요율
|
||||||
@@ -381,7 +381,7 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-text>
|
<v-card-text v-if="selected_audio_content.price > 0">
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="4">
|
<v-col cols="4">
|
||||||
정산요율 삭제
|
정산요율 삭제
|
||||||
@@ -677,9 +677,14 @@ export default {
|
|||||||
const request = {
|
const request = {
|
||||||
id: this.audio_content.id,
|
id: this.audio_content.id,
|
||||||
isDefaultCoverImage: this.audio_content.is_default_cover_image,
|
isDefaultCoverImage: this.audio_content.is_default_cover_image,
|
||||||
isSettlementRatioDeleted: this.audio_content.is_settlement_ratio_deleted,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 유료 콘텐츠인 경우에만 정산요율 관련 플래그/값 전송 고려
|
||||||
|
const isPaid = this.selected_audio_content && this.selected_audio_content.price > 0;
|
||||||
|
if (isPaid) {
|
||||||
|
request.isSettlementRatioDeleted = this.audio_content.is_settlement_ratio_deleted;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
this.audio_content.title !== this.selected_audio_content.title &&
|
this.audio_content.title !== this.selected_audio_content.title &&
|
||||||
this.audio_content.title.trim().length > 0
|
this.audio_content.title.trim().length > 0
|
||||||
@@ -717,7 +722,7 @@ export default {
|
|||||||
this.audio_content.settlement_ratio !== undefined
|
this.audio_content.settlement_ratio !== undefined
|
||||||
? String(this.audio_content.settlement_ratio)
|
? String(this.audio_content.settlement_ratio)
|
||||||
: "";
|
: "";
|
||||||
if (!this.audio_content.is_settlement_ratio_deleted && newRatio !== originalRatio) {
|
if (isPaid && !this.audio_content.is_settlement_ratio_deleted && newRatio !== originalRatio) {
|
||||||
request.settlementRatio = newRatio;
|
request.settlementRatio = newRatio;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user