From 563ee2f2383adf9b3f3d71ed36661a11b873ab2b Mon Sep 17 00:00:00 2001 From: kimjhjjang Date: Mon, 21 Nov 2022 16:00:04 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=9C=EC=8B=A0=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EC=8A=B9=EC=9D=B8=20>=20=EC=9A=94=EC=B2=AD=20=ED=8C=9D?= =?UTF-8?q?=EC=97=85=201.=20=EC=A0=80=EC=9E=A5=ED=95=A0=EB=95=8C=20?= =?UTF-8?q?=EB=AA=A8=EB=93=A0=20=EB=B0=9C=EC=8B=A0=EB=B2=88=ED=98=B8?= =?UTF-8?q?=EC=9D=98=20=EC=8A=B9=EC=9D=B8/=EB=B0=98=EB=A0=A4=20=EC=B2=B4?= =?UTF-8?q?=ED=81=AC=20=EC=97=AC=EB=B6=80=20=ED=99=95=EC=9D=B8=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD.=202.=20=EC=A0=84?= =?UTF-8?q?=EC=B2=B4=EC=8A=B9=EC=9D=B8=20=EB=9D=BC=EB=94=94=EC=98=A4?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=20=EC=84=A0=ED=83=9D=20=EC=95=88=EB=90=9C=20?= =?UTF-8?q?=EC=83=81=ED=83=9C=EB=A1=9C=20=EB=B3=80=EA=B2=BD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sendNumMgt/components/ApprDetailPop.vue | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/frontend/src/modules/sendNumMgt/components/ApprDetailPop.vue b/frontend/src/modules/sendNumMgt/components/ApprDetailPop.vue index 27ce58e..7154af7 100644 --- a/frontend/src/modules/sendNumMgt/components/ApprDetailPop.vue +++ b/frontend/src/modules/sendNumMgt/components/ApprDetailPop.vue @@ -258,11 +258,11 @@ export default { rejtCnt = rejtCnt + 1; } }); - if (apprCnt == this.numList.length) { + /* if (apprCnt == this.numList.length) { this.$refs.apprRadio.checked = true; } else if (rejtCnt == this.numList.length) { this.$refs.rejRadio.checked = true; - } + } */ } } catch (error) { this.row.title = '발신번호승인'; @@ -276,6 +276,8 @@ export default { for (var i = 0; i < dimmed.length; i++) { dimmed[i].style.display = 'none'; } + this.$refs.apprRadio.checked = false; + this.$refs.rejRadio.checked = false; }, allApprSttus(event) { var data = event.target.value; @@ -297,11 +299,11 @@ export default { rejtCnt = rejtCnt + 1; } }); - if (apprCnt == this.numList.length) { + /* if (apprCnt == this.numList.length) { this.$refs.apprRadio.checked = true; } else if (rejtCnt == this.numList.length) { this.$refs.rejRadio.checked = true; - } + } */ }, updateSttus() { this.doSave(); @@ -312,6 +314,17 @@ export default { this.row.adminId = this.adminId; this.row.list = this.numList; + const numCheck = this.row.list.every((number) => { + return number.sttusCd !== '01'; + }); + + if (!numCheck) { + this.row.title = '발신번호'; + this.row.msg1 = '승인 또는 반려를 모두 선택해주세요.'; + this.$refs.commmonModal.alertModalOpen(this.row); + return false; + } + try { const response = await sendNumMgtApi.updateAppr(this.row); const result = response.data;