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