From 515a69e2828bd9f95922b30aa9b9bee9077f83bc Mon Sep 17 00:00:00 2001 From: leebj Date: Wed, 17 Jul 2024 16:43:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/sql/mapper/base/user-mapper.xml | 7 ++++-- .../WEB-INF/jsp/base/user/user-info.jsp | 24 +++++++++++++++++-- .../WEB-INF/jsp/base/user/user-main.jsp | 4 +++- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/src/main/resources/sql/mapper/base/user-mapper.xml b/src/main/resources/sql/mapper/base/user-mapper.xml index 7b58bad0..973dfa91 100644 --- a/src/main/resources/sql/mapper/base/user-mapper.xml +++ b/src/main/resources/sql/mapper/base/user-mapper.xml @@ -99,11 +99,13 @@ SELECT A.USER_ID + + + + +
+ + +
@@ -209,6 +213,14 @@ infoPrefixControl.setInfo = (obj) => { $("#infoPrefix-form input[name='account']").prop("readonly", !create); $("#infoPrefix-form input[name='name']").prop("readonly", !create); + if(create){ + $("#infoPrefix-form :radio[name='status'][value='D']").attr("hidden","hidden"); + $("#infoPrefix-form label[for='removed']").attr("hidden","hidden"); + } else { + $("#infoPrefix-form :radio[name='status'][value='D']").removeAttr("hidden"); + $("#infoPrefix-form label[for='removed']").removeAttr("hidden"); + } + $("#infoPrefix-form input[type='password']").each(function(){ let password = $(this).prop("required", create); let div = password.parent().parent().parent(); @@ -232,8 +244,16 @@ infoPrefixControl.setInfo = (obj) => { } else { mobilePhoneNoDiv.attr("hidden","hidden"); } - - $("#infoPrefix-form label[for='STTS']").html(obj.data.STTS == "P" ? "승인" : "신청"); + + let stts = ""; + if(obj.data.STTS == "D"){ + stts = "삭제"; + } else if(obj.data.STTS == "P"){ + stts = "승인"; + } else { + stts = "신청"; + } + $("#infoPrefix-form label[for='STTS']").html(stts); $("#infoPrefix-form").find("input,select") .change(function() { diff --git a/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp b/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp index 9ba4e34f..0d33a068 100644 --- a/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/base/user/user-main.jsp @@ -26,6 +26,7 @@ + 상태 사용자구분 기관 계정 @@ -41,6 +42,7 @@