From 83bbf0a505ff419a0af32c0bb7ee63c1bb4d1ad8 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Wed, 1 May 2024 15:17:50 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EA=B7=B8=EB=8B=88=EC=B2=98=20?= =?UTF-8?q?=ED=9B=84=EC=9B=90=20=EC=83=9D=EC=84=B1/=EC=88=98=EC=A0=95=20-?= =?UTF-8?q?=20=EC=9E=AC=EC=83=9D=EC=8B=9C=EA=B0=84=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Signature/SignatureManagement.vue | 47 ++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/src/views/Signature/SignatureManagement.vue b/src/views/Signature/SignatureManagement.vue index a4fd3f7..2fe9ca7 100644 --- a/src/views/Signature/SignatureManagement.vue +++ b/src/views/Signature/SignatureManagement.vue @@ -154,6 +154,20 @@ + + + + 시간(초) + + + + + + + + + + + 시간(초) + + + + + + + 20) { + this.notifyError('시간은 3초 이상 20초 이하를 입력하세요.') } else { this.submit() } @@ -392,6 +429,7 @@ export default { this.image = null this.image_url = null this.can = 0 + this.time = 7 this.is_adult = false this.is_active = null this.selected_signature_can = {} @@ -404,6 +442,7 @@ export default { showModifyDialog(item) { this.can = item.can; + this.time = item.time; this.is_adult = item.isAdult this.image_url = item.image this.selected_signature_can = item @@ -442,6 +481,7 @@ export default { try { const formData = new FormData() formData.append("can", this.can) + formData.append("time", this.time) formData.append("image", this.image) formData.append("isAdult", this.is_adult) @@ -468,7 +508,8 @@ export default { if ( this.image === null && 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('변경사항이 없습니다.') return; @@ -494,6 +535,10 @@ export default { formData.append("can", this.can) } + if (this.time !== this.selected_signature_can.time) { + formData.append("time", this.time) + } + const res = await api.modifySignature(formData) if (res.status === 200 && res.data.success === true) { this.cancel() -- 2.40.1