spa식으로 변경

dev_tymeleaf
jangwonseokicom 1 year ago
parent 24ba911482
commit dfea91edc8

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

@ -1,8 +1,4 @@
<!DOCTYPE html> <!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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>대시보드</title> <title>대시보드</title>
@ -120,5 +116,4 @@
</section> </section>
</body> </body>
</th:block>
</html> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>시나리오코드</title> <title>시나리오코드</title>
@ -667,7 +662,9 @@
</dl> </dl>
<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> <dt><h4><em class="">대분류</em></h4></dt>
<dd> <dd>
<div class="ipt_box"> <div class="ipt_box">
@ -728,5 +725,3 @@
<!-- modal :: 공통 코드 수정 팝업 end --> <!-- modal :: 공통 코드 수정 팝업 end -->
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>고객사관리</title> <title>고객사관리</title>
@ -261,5 +256,3 @@
</div> </div>
</section> </section>
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>고객사화면</title> <title>고객사화면</title>
@ -668,6 +662,4 @@
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>고객사화면</title> <title>고객사화면</title>
@ -813,6 +807,4 @@
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>그룹별권한</title> <title>그룹별권한</title>
@ -525,5 +519,3 @@
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>그룹별권한</title> <title>그룹별권한</title>
@ -422,5 +416,3 @@
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>그룹별권한</title> <title>그룹별권한</title>
@ -321,8 +315,5 @@ z
</div> </div>
</section> </section>
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>정책별메뉴</title> <title>정책별메뉴</title>
@ -302,5 +296,3 @@
</section> </section>
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>서비스그룹 관리</title> <title>서비스그룹 관리</title>
@ -459,5 +453,3 @@
</section> </section>
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>서비스그룹 관리List</title> <title>서비스그룹 관리List</title>
@ -320,5 +314,3 @@
</section> </section>
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>서비스그룹 관리</title> <title>서비스그룹 관리</title>
@ -732,6 +726,4 @@
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>사용자관리</title> <title>사용자관리</title>
@ -381,5 +375,5 @@
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>운영자관리</title> <title>운영자관리</title>
@ -375,5 +369,3 @@
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>사용자관리</title> <title>사용자관리</title>
@ -461,8 +455,7 @@
if (text2.length > 7) { if (text2.length > 7) {
if (text1 === text2) { if (text1 === text2) {
$('#passDoubleCheckUi').html(htmlY) $('#passDoubleCheckUi').html(htmlY)
} } else {
else {
$('#passDoubleCheckUi').html(htmlN) $('#passDoubleCheckUi').html(htmlN)
} }
} }
@ -470,19 +463,15 @@
if (text1.length < 10 || text1.length > 20) { if (text1.length < 10 || text1.length > 20) {
$('#passCheckUi').html(htmlN) $('#passCheckUi').html(htmlN)
return; return;
} } else if (text1.search(/\s/) != -1) {
else if (text1.search(/\s/) != -1) {
$('#passCheckUi').html(htmlN) $('#passCheckUi').html(htmlN)
return false; return false;
} } else if (false === reg.test(text1)) {
else if (false === reg.test(text1)) {
$('#passCheckUi').html(regDesc) $('#passCheckUi').html(regDesc)
return false; return false;
} } else if ($('#newUserPassDoubleChkVal').val() == "Y") {
else if ($('#newUserPassDoubleChkVal').val() == "Y") {
newUserDoublePassCheck() newUserDoublePassCheck()
} } else {
else {
$('#passCheckUi').html(htmlY) $('#passCheckUi').html(htmlY)
return true; return true;
} }
@ -724,7 +713,5 @@
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>운영자관리</title> <title>운영자관리</title>
@ -689,7 +683,5 @@
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>사용자관리</title> <title>사용자관리</title>
@ -764,7 +758,5 @@
</body> </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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>사용자관리</title> <title>사용자관리</title>
@ -712,7 +706,5 @@
</body> </body>
</th:block>
</html>

@ -3,12 +3,6 @@
<th:block th:fragment="sidebarFragment"> <th:block th:fragment="sidebarFragment">
<style>
header + article {
z -index: 0;
}
</style>
<article> <article>
<div class="lnb_menu_btn_area open"> <div class="lnb_menu_btn_area open">
<a href="#" class="lnb_menu_menu"> <a href="#" class="lnb_menu_menu">
@ -28,10 +22,11 @@
<script type=text/javascript> <script type=text/javascript>
$(document).ready(function () { $(document).ready(function () {
testGetAuth(); GetAuth();
PageControll('/admin/common/dashboard/manage.do');
}).off(lnbEvt()) }).off(lnbEvt())
function testGetAuth() { function GetAuth() {
$.ajax({ $.ajax({
type: "GET", type: "GET",
contentType: "application/json; charset=utf-8", contentType: "application/json; charset=utf-8",
@ -47,20 +42,48 @@
menuUrl = e.url; menuUrl = e.url;
} }
addMenu += '<li>' addMenu += '<li>'
+ '<a href=' + menuUrl + '>' //+ '<a href=' + menuUrl + '>'
+ '<a value=' + menuUrl + '>'
// + '<a href="'+'javascript:PageControll('+ menuUrl +')">'
+ '<span>' + '<span>'
+ e.menuName + e.menuName + '</span></a>'
+ '</span></a>'
+ '<ul class="depth' + e.level + '" id="menuSeq' + e.seq + '">' + '<ul class="depth' + e.level + '" id="menuSeq' + e.seq + '">'
+ '</ul>' + '</ul>'
+ '</li>' + '</li>'
$('#menuSeq' + e.seqUpper).append(addMenu); $('#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>
<script th:src="@{/lib/assets/js/scripts.js}"></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) { .complete(function (data) {
if (data.status == 200) { if (data.status == 200) {
console.log(data);
document.cookie = 'accessToken=' + data.responseText + '; path=/;'; document.cookie = 'accessToken=' + data.responseText + '; path=/;';
console.log("cookie ="+document.cookie)
document.signinInfoForm.action = '/adm/main/actionSecurityLogin.do'; document.signinInfoForm.action = '/adm/main/actionSecurityLogin.do';
document.signinInfoForm.submit(); document.signinInfoForm.submit();
} else if (data.status == 400) { } else if (data.status == 400) {

Loading…
Cancel
Save