Compare commits

..

No commits in common. "65cb91838924edda99e335e388e600f5ff037b8e" and "784baf9a2fcb7029a721b0b80aeeeef191d57c56" have entirely different histories.

1 changed files with 1 additions and 46 deletions

View File

@ -181,20 +181,6 @@
</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="time"
label="시간(초)"
/>
</v-col>
</v-row>
</v-card-text>
<v-card-actions v-show="!is_loading"> <v-card-actions v-show="!is_loading">
<v-spacer /> <v-spacer />
<v-btn <v-btn
@ -280,20 +266,6 @@
</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="time"
label="시간(초)"
/>
</v-col>
</v-row>
</v-card-text>
<v-card-actions v-show="!is_loading"> <v-card-actions v-show="!is_loading">
<v-spacer /> <v-spacer />
<v-btn <v-btn
@ -367,7 +339,6 @@ export default {
total_page: 0, total_page: 0,
can: 0, can: 0,
time: 7,
image: null, image: null,
is_adult: false, is_adult: false,
image_url: null, image_url: null,
@ -406,12 +377,6 @@ export default {
sortable: false, sortable: false,
value: 'image', value: 'image',
}, },
{
text: '시간(초)',
align: 'center',
sortable: false,
value: 'time',
},
{ {
text: '관리', text: '관리',
align: 'center', align: 'center',
@ -451,7 +416,6 @@ export default {
showModifyDialog(item) { showModifyDialog(item) {
this.can = item.can; this.can = item.can;
this.time = item.time;
this.is_adult = item.isAdult this.is_adult = item.isAdult
this.image_url = item.image; this.image_url = item.image;
this.selected_signature_can = item this.selected_signature_can = item
@ -470,8 +434,6 @@ export default {
this.creator_id === null this.creator_id === null
) { ) {
this.notifyError('내용을 입력하세요') this.notifyError('내용을 입력하세요')
} else if (this.time < 3 || this.time > 20) {
this.notifyError('시간은 3초 이상 20초 이하를 입력하세요.')
} else { } else {
this.submit() this.submit()
} }
@ -484,7 +446,6 @@ export default {
this.image = null this.image = null
this.image_url = null this.image_url = null
this.can = 0 this.can = 0
this.time = 7
this.is_active = null this.is_active = null
this.is_adult = false this.is_adult = false
this.selected_signature_can = {} this.selected_signature_can = {}
@ -522,7 +483,6 @@ export default {
try { try {
const formData = new FormData() const formData = new FormData()
formData.append("can", this.can) formData.append("can", this.can)
formData.append("time", this.time)
formData.append("image", this.image) formData.append("image", this.image)
formData.append("isAdult", this.is_adult) formData.append("isAdult", this.is_adult)
formData.append("creator_id", this.creator_id) formData.append("creator_id", this.creator_id)
@ -550,8 +510,7 @@ export default {
if ( if (
this.image === null && this.image === null &&
this.is_adult === this.selected_signature_can.isAdult && this.is_adult === this.selected_signature_can.isAdult &&
this.can === this.selected_signature_can.can && this.can === this.selected_signature_can.can
this.time === this.selected_signature_can.time
) { ) {
this.notifyError('변경사항이 없습니다.') this.notifyError('변경사항이 없습니다.')
return; return;
@ -577,10 +536,6 @@ export default {
formData.append("can", this.can) formData.append("can", this.can)
} }
if (this.time !== this.selected_signature_can.time) {
formData.append("time", this.time)
}
const res = await api.modifySignature(formData) const res = await api.modifySignature(formData)
if (res.status === 200 && res.data.success === true) { if (res.status === 200 && res.data.success === true) {
this.cancel() this.cancel()