Compare commits

..

No commits in common. "a515a144eb26aa02ad0df0c3feb82f51cd26b81a" and "54a67739052c9a599dc67c5fa0179397a00ce9b5" have entirely different histories.

1 changed files with 4 additions and 72 deletions

View File

@ -46,15 +46,6 @@
{{ item.can }}
</template>
<template v-slot:item.isAdult="{ item }">
<h3 v-if="item.isAdult">
O
</h3>
<h3 v-else>
X
</h3>
</template>
<template v-slot:item.image="{ item }">
<v-img
:src="item.image"
@ -140,20 +131,6 @@
</v-row>
</v-card-text>
<v-card-text>
<v-row>
<v-col cols="4">
19
</v-col>
<v-col cols="8">
<input
v-model="is_adult"
type="checkbox"
>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row align="center">
<v-col cols="4">
@ -167,7 +144,6 @@
<v-file-input
id="image"
v-model="image"
accept="image/*"
@change="imageAdd"
/>
</div>
@ -217,24 +193,7 @@
</v-col>
<v-col cols="8">
<v-text-field
v-model="can"
label="캔"
/>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row>
<v-col cols="4">
19
</v-col>
<v-col cols="8">
<input
v-model="is_adult"
type="checkbox"
>
{{ selected_signature_can.can }}
</v-col>
</v-row>
</v-card-text>
@ -252,7 +211,6 @@
<v-file-input
id="image"
v-model="image"
accept="image/*"
@change="imageAdd"
/>
</div>
@ -340,7 +298,6 @@ export default {
can: 0,
image: null,
is_adult: false,
image_url: null,
creator_id: null,
is_active: null,
@ -365,12 +322,6 @@ export default {
sortable: false,
value: 'can',
},
{
text: '19금',
align: 'center',
sortable: false,
value: 'isAdult',
},
{
text: '이미지',
align: 'center',
@ -415,8 +366,6 @@ export default {
},
showModifyDialog(item) {
this.can = item.can;
this.is_adult = item.isAdult
this.image_url = item.image;
this.selected_signature_can = item
this.show_modify_dialog = true
@ -447,7 +396,6 @@ export default {
this.image_url = null
this.can = 0
this.is_active = null
this.is_adult = false
this.selected_signature_can = {}
},
@ -484,7 +432,6 @@ export default {
const formData = new FormData()
formData.append("can", this.can)
formData.append("image", this.image)
formData.append("isAdult", this.is_adult)
formData.append("creator_id", this.creator_id)
const res = await api.createSignature(formData)
@ -507,12 +454,8 @@ export default {
},
async modifySignatureCan() {
if (
this.image === null &&
this.is_adult === this.selected_signature_can.isAdult &&
this.can === this.selected_signature_can.can
) {
this.notifyError('변경사항이 없습니다.')
if (this.image === null) {
this.notifyError('수정사항이 없습니다.')
return;
}
@ -523,18 +466,7 @@ export default {
try {
const formData = new FormData()
formData.append("id", this.selected_signature_can.id)
if (this.image !== null) {
formData.append("image", this.image)
}
if (this.is_adult !== this.selected_signature_can.isAdult) {
formData.append("isAdult", this.is_adult)
}
if (this.can !== this.selected_signature_can.can) {
formData.append("can", this.can)
}
formData.append("image", this.image)
const res = await api.modifySignature(formData)
if (res.status === 200 && res.data.success === true) {