|
|
|
@ -56,11 +56,11 @@
|
|
|
|
|
<div class="w-px-400 mx-auto">
|
|
|
|
|
<div id="formAuthentication" class="mb-3">
|
|
|
|
|
<c:if test="${multipleSggs}"><div class="mb-3">
|
|
|
|
|
<label for="institute" class="form-label">기관</label>
|
|
|
|
|
<select id="institute" class="form-control">
|
|
|
|
|
<label for="orgID" class="form-label">시군구</label>
|
|
|
|
|
<select id="orgID" class="form-control">
|
|
|
|
|
</select>
|
|
|
|
|
</div></c:if>
|
|
|
|
|
<c:if test="${!multipleSggs}"><input id="institute" type="hidden" /></c:if>
|
|
|
|
|
<c:if test="${!multipleSggs}"><input id="orgID" type="hidden" /></c:if>
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<label for="userId" class="form-label">아이디</label>
|
|
|
|
|
<input id="userId" type="text" value="${cookie['userAccount'].getValue()}" required class="form-control" placeholder="아이디를 입력하십시오." autofocus />
|
|
|
|
@ -99,13 +99,13 @@
|
|
|
|
|
${functions}
|
|
|
|
|
|
|
|
|
|
<c:if test="${multipleSggs}">let sggs = new Dataset({
|
|
|
|
|
keymapper: row => row.INST_CD,
|
|
|
|
|
keymapper: row => row.SGG_CD,
|
|
|
|
|
onDatasetChange: obj => {
|
|
|
|
|
document.querySelector("#institute").innerHTML = sggs.inStrings("<option value=\"{INST_CD}\">{INST_NM}</option>");
|
|
|
|
|
document.querySelector("#orgID").innerHTML = sggs.inStrings("<option value=\"{SGG_CD}\">{SGG_NM}</option>");
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
sggs.setData(${sggs});</c:if>
|
|
|
|
|
<c:if test="${!multipleSggs}">document.querySelector("#institute").value = ${sggs}[0].INST_CD;</c:if>
|
|
|
|
|
<c:if test="${!multipleSggs}">document.querySelector("#orgID").value = ${sggs}[0].SGG_CD;</c:if>
|
|
|
|
|
|
|
|
|
|
function login() {
|
|
|
|
|
if (!$("#formAuthentication input").validInputs()) return;
|
|
|
|
@ -113,7 +113,7 @@ function login() {
|
|
|
|
|
var params = {
|
|
|
|
|
account:$("#userId").val(),
|
|
|
|
|
password:$("#password").val(),
|
|
|
|
|
institute: $("#institute").val(),
|
|
|
|
|
orgID: $("#orgID").val(),
|
|
|
|
|
rememberCredentials: $("#remember").prop("checked")
|
|
|
|
|
};
|
|
|
|
|
ajax.post({
|
|
|
|
@ -140,7 +140,7 @@ $(function(){
|
|
|
|
|
if ($("#userId").val())
|
|
|
|
|
$("#password").focus();
|
|
|
|
|
|
|
|
|
|
let input = document.querySelector("#institute"),
|
|
|
|
|
let input = document.querySelector("#orgID"),
|
|
|
|
|
stored = "${cookie['userInstitute'].getValue()}";
|
|
|
|
|
if (stored)
|
|
|
|
|
input.value = stored;
|
|
|
|
|