회원가입 화면 수정

main
이범준 5 months ago
parent 0b34df11bf
commit b25f45f23d

@ -81,14 +81,14 @@ public class MainController extends cokr.xit.base.web.MainController {
}
@GetMapping(name="회원가입 페이지", value="/signupPage.do")
public ModelAndView signupPage(String institute) {
public ModelAndView signupPage(String sggCd) {
ModelAndView mav = new ModelAndView("fims/user/user-info");
mav.addObject("allOgdpList", fimsOgdpBean.selectAllOgdpList());
DataObject params = new DataObject();
params.set("anonymous", "Y");
params.set("institute", institute);
params.set("sggCd", sggCd);
List<DataObject> ableOgdpList = fimsOgdpBean.selectAbleOgdpList(params);
mav.addObject("ableOgdpList", ableOgdpList);

@ -94,8 +94,8 @@
</div>
</div>
<template id="selectInstDialogTemplate">
<select class="form-select form-control-sm" id="selectInst">
<template id="selectOrgDialogTemplate">
<select class="form-select form-control-sm" id="selectOrg">
<option value="">선택</option>
<c:forEach items="${sggList}" var="item">
<option value="${item.SGG_CD}">${item.SGG_NM}</option>
@ -160,25 +160,25 @@ function login() {
*/
function fnOpenSignup(){
dialog.open({
id : "selectInstDialog",
id : "selectOrgDialog",
title : "기관 선택",
content : document.getElementById("selectInstDialogTemplate").innerHTML,
content : document.getElementById("selectOrgDialogTemplate").innerHTML,
size : "sm",
init : () => {
},
onOK : () => {
if($("#selectInst").val() == ""){
if($("#selectOrg").val() == ""){
alert("기관을 선택하세요.");
return;
}
dialog.close("selectInstDialog");
dialog.close("selectOrgDialog");
var popupWidth = 950;
var popupHeight = 500;
var popupX = (window.screen.width / 2) - (popupWidth / 2);
var popupY= (window.screen.height / 2) - (popupHeight / 2);
var popup = window.open(wctx.url("/signupPage.do")+"?institute="+$("#selectInst").val(),
var popup = window.open(wctx.url("/signupPage.do")+"?sggCd="+$("#selectOrg").val(),
"regAccount",
"width="+popupWidth+", height="+popupHeight+", left="+popupX+", top="+popupY);
@ -232,7 +232,7 @@ $(function(){
}
selectValue = sysSgg;
isSelectable = $("#institute option[value='"+selectValue+"']").not("[disabled]").length;
isSelectable = $("#orgID option[value='"+selectValue+"']").not("[disabled]").length;
if(isSelectable){
$("#orgID").val(selectValue);
$("#userId").focus();

Loading…
Cancel
Save