spa식으로 변경

dev_tymeleaf
jangwonseokicom 2 years ago
parent 24ba911482
commit dfea91edc8

@ -107,8 +107,8 @@ public class LoginService {
LoginVO userResult = user.toLoginVO();
// return "forward:/adm/main/actionMain.do";
return "layout/adm/common/dashboard";
// return "layout/adm/common/dashboard";
return "layout/main";
} else {
log.info("Fail!");
}

@ -1,8 +1,4 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>대시보드</title>
@ -120,5 +116,4 @@
</section>
</body>
</th:block>
</html>

@ -1,8 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>시나리오코드</title>
@ -667,7 +662,9 @@
</dl>
<dl>
<%-- <dt><h4><em class="important">대분류</em></h4></dt>--%>
<%--
<dt><h4><em class="important">대분류</em></h4></dt>
--%>
<dt><h4><em class="">대분류</em></h4></dt>
<dd>
<div class="ipt_box">
@ -728,5 +725,3 @@
<!-- modal :: 공통 코드 수정 팝업 end -->
</body>
</th:block>
</html>

@ -1,8 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>고객사관리</title>
@ -261,5 +256,3 @@
</div>
</section>
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>고객사화면</title>
@ -668,6 +662,4 @@
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>고객사화면</title>
@ -813,6 +807,4 @@
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>그룹별권한</title>
@ -525,5 +519,3 @@
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>그룹별권한</title>
@ -422,5 +416,3 @@
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>그룹별권한</title>
@ -321,8 +315,5 @@ z
</div>
</section>
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>정책별메뉴</title>
@ -302,5 +296,3 @@
</section>
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>서비스그룹 관리</title>
@ -459,5 +453,3 @@
</section>
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>서비스그룹 관리List</title>
@ -320,5 +314,3 @@
</section>
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>서비스그룹 관리</title>
@ -732,6 +726,4 @@
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>사용자관리</title>
@ -381,5 +375,5 @@
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>운영자관리</title>
@ -375,5 +369,3 @@
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>사용자관리</title>
@ -461,8 +455,7 @@
if (text2.length > 7) {
if (text1 === text2) {
$('#passDoubleCheckUi').html(htmlY)
}
else {
} else {
$('#passDoubleCheckUi').html(htmlN)
}
}
@ -470,19 +463,15 @@
if (text1.length < 10 || text1.length > 20) {
$('#passCheckUi').html(htmlN)
return;
}
else if (text1.search(/\s/) != -1) {
} else if (text1.search(/\s/) != -1) {
$('#passCheckUi').html(htmlN)
return false;
}
else if (false === reg.test(text1)) {
} else if (false === reg.test(text1)) {
$('#passCheckUi').html(regDesc)
return false;
}
else if ($('#newUserPassDoubleChkVal').val() == "Y") {
} else if ($('#newUserPassDoubleChkVal').val() == "Y") {
newUserDoublePassCheck()
}
else {
} else {
$('#passCheckUi').html(htmlY)
return true;
}
@ -724,7 +713,5 @@
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>운영자관리</title>
@ -689,7 +683,5 @@
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>사용자관리</title>
@ -764,7 +758,5 @@
</body>
</th:block>
</html>

@ -1,9 +1,3 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<head>
<meta charset="UTF-8">
<title>사용자관리</title>
@ -712,7 +706,5 @@
</body>
</th:block>
</html>

@ -3,12 +3,6 @@
<th:block th:fragment="sidebarFragment">
<style>
header + article {
z -index: 0;
}
</style>
<article>
<div class="lnb_menu_btn_area open">
<a href="#" class="lnb_menu_menu">
@ -28,10 +22,11 @@
<script type=text/javascript>
$(document).ready(function () {
testGetAuth();
GetAuth();
PageControll('/admin/common/dashboard/manage.do');
}).off(lnbEvt())
function testGetAuth() {
function GetAuth() {
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
@ -47,20 +42,48 @@
menuUrl = e.url;
}
addMenu += '<li>'
+ '<a href=' + menuUrl + '>'
//+ '<a href=' + menuUrl + '>'
+ '<a value=' + menuUrl + '>'
// + '<a href="'+'javascript:PageControll('+ menuUrl +')">'
+ '<span>'
+ e.menuName
+ '</span></a>'
+ e.menuName + '</span></a>'
+ '<ul class="depth' + e.level + '" id="menuSeq' + e.seq + '">'
+ '</ul>'
+ '</li>'
$('#menuSeq' + e.seqUpper).append(addMenu);
}
})
$(".lnb").on("click", "a", function() {
PageControll($(this).attr("value"));
});
}
})
};
function PageControll(e) {
if (e == '#') {
return;
}
var redi = '';
if (e == "" || e == null) {
redi = '/admin/common/dashboard/manage.do'
} else {
redi = e;
}
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
datatype: "HTML",
async: false,
url: redi,
success: function (data) {
$('#pageControll').html(data);
}
});
}
</script>
<script th:src="@{/lib/assets/js/scripts.js}"></script>

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<th:block layout:fragment="content">
<div id="pageControll">
</div>
</th:block>
</html>

@ -140,8 +140,9 @@
})
.complete(function (data) {
if (data.status == 200) {
console.log(data);
document.cookie = 'accessToken=' + data.responseText + '; path=/;';
console.log("cookie ="+document.cookie)
document.signinInfoForm.action = '/adm/main/actionSecurityLogin.do';
document.signinInfoForm.submit();
} else if (data.status == 400) {

Loading…
Cancel
Save