Compare commits
No commits in common. "4cdcf1d0b61c40135fd2370b04c1d9a58755493d" and "4497141061a756f1ac876f42ef0048d661a8f273" have entirely different histories.
4cdcf1d0b6
...
4497141061
|
@ -1,7 +1,7 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
|
||||||
async function getSignatureList(page, sort) {
|
async function getSignatureList(page) {
|
||||||
return Vue.axios.get('/creator-admin/signature?page=' + (page - 1) + "&size=20" + "&sort-type=" + sort);
|
return Vue.axios.get('/creator-admin/signature?page=' + (page - 1) + "&size=20");
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createSignature(formData) {
|
async function createSignature(formData) {
|
||||||
|
|
|
@ -227,20 +227,6 @@
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card-text>
|
</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-card-text>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="4">
|
<v-col cols="4">
|
||||||
|
@ -666,7 +652,7 @@ export default {
|
||||||
audio_content: {
|
audio_content: {
|
||||||
price: 0,
|
price: 0,
|
||||||
is_adult: false,
|
is_adult: false,
|
||||||
is_generate_preview: false,
|
is_generate_preview: true,
|
||||||
is_comment_available: true,
|
is_comment_available: true,
|
||||||
},
|
},
|
||||||
audio_contents: [],
|
audio_contents: [],
|
||||||
|
@ -713,7 +699,6 @@ export default {
|
||||||
this.audio_content.id = item.audioContentId
|
this.audio_content.id = item.audioContentId
|
||||||
this.audio_content.title = item.title
|
this.audio_content.title = item.title
|
||||||
this.audio_content.detail = item.detail
|
this.audio_content.detail = item.detail
|
||||||
this.audio_content.price = item.price
|
|
||||||
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
|
||||||
|
@ -978,10 +963,6 @@ export default {
|
||||||
request.isCommentAvailable = this.audio_content.is_comment_available
|
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) {
|
if (this.audio_content.cover_image !== null) {
|
||||||
formData.append("coverImage", this.audio_content.cover_image)
|
formData.append("coverImage", this.audio_content.cover_image)
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,57 +20,6 @@
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-row class="row-sort">
|
|
||||||
<v-col>
|
|
||||||
<input
|
|
||||||
id="sort-newest"
|
|
||||||
v-model="sort_type"
|
|
||||||
type="radio"
|
|
||||||
value="NEWEST"
|
|
||||||
class="radio-sort"
|
|
||||||
@change="changeSortType"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
for="sort-newest"
|
|
||||||
class="radio-label-sort"
|
|
||||||
>
|
|
||||||
최신순
|
|
||||||
</label>
|
|
||||||
</v-col>
|
|
||||||
<v-col>
|
|
||||||
<input
|
|
||||||
id="sort-can-high"
|
|
||||||
v-model="sort_type"
|
|
||||||
type="radio"
|
|
||||||
value="CAN_HIGH"
|
|
||||||
class="radio-sort"
|
|
||||||
@change="changeSortType"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
for="sort-can-high"
|
|
||||||
class="radio-label-sort"
|
|
||||||
>
|
|
||||||
높은캔순
|
|
||||||
</label>
|
|
||||||
</v-col>
|
|
||||||
<v-col>
|
|
||||||
<input
|
|
||||||
id="sort-can-low"
|
|
||||||
v-model="sort_type"
|
|
||||||
type="radio"
|
|
||||||
value="CAN_LOW"
|
|
||||||
class="radio-sort"
|
|
||||||
@change="changeSortType"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
for="sort-can-low"
|
|
||||||
class="radio-label-sort"
|
|
||||||
>
|
|
||||||
낮은캔순
|
|
||||||
</label>
|
|
||||||
</v-col>
|
|
||||||
<v-col cols="10" />
|
|
||||||
</v-row>
|
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-data-table
|
<v-data-table
|
||||||
|
@ -397,7 +346,6 @@ export default {
|
||||||
image_url: null,
|
image_url: null,
|
||||||
is_active: null,
|
is_active: null,
|
||||||
selected_signature_can: {},
|
selected_signature_can: {},
|
||||||
sort_type: 'NEWEST',
|
|
||||||
|
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
|
@ -501,15 +449,11 @@ export default {
|
||||||
this.show_modify_dialog = true
|
this.show_modify_dialog = true
|
||||||
},
|
},
|
||||||
|
|
||||||
async changeSortType() {
|
|
||||||
await this.getSignatureList();
|
|
||||||
},
|
|
||||||
|
|
||||||
async getSignatureList() {
|
async getSignatureList() {
|
||||||
this.is_loading = true
|
this.isLoading = true
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let res = await api.getSignatureList(this.page, this.sort_type);
|
let res = await api.getSignatureList(this.page);
|
||||||
|
|
||||||
if (res.status === 200 && res.data.success === true) {
|
if (res.status === 200 && res.data.success === true) {
|
||||||
const data = res.data.data
|
const data = res.data.data
|
||||||
|
@ -525,7 +469,7 @@ export default {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.notifyError("알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.")
|
this.notifyError("알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.")
|
||||||
} finally {
|
} finally {
|
||||||
this.is_loading = false
|
this.isLoading = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -695,22 +639,4 @@ export default {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row-sort {
|
|
||||||
margin-top: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.radio-sort {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.radio-label-sort {
|
|
||||||
font-weight: normal;
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.radio-sort:checked + .radio-label-sort {
|
|
||||||
font-weight: bold;
|
|
||||||
color: #3bb9f1;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue