|
|
|
@ -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>
|
|
|
|
|
|
|
|
|
|