2022-10-14 08:14:48 +00:00
|
|
|
$(function (){
|
|
|
|
|
$.ajax({
|
|
|
|
|
type : 'GET',
|
|
|
|
|
url : "/myInfo/getDashBoardConfig",
|
|
|
|
|
dataType:"json",
|
|
|
|
|
success : function(data) {
|
|
|
|
|
data = [{menuUrl:"/publicBoard/noticePage"}].concat(data)
|
|
|
|
|
getSubPage(data)
|
|
|
|
|
},
|
|
|
|
|
error : function(xhr, status) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function getSubPage(menuList){
|
|
|
|
|
$.each(menuList, function(idx, menu){
|
|
|
|
|
if(idx<6){
|
2022-10-20 06:04:23 +00:00
|
|
|
const url = menu.menuUrl+(menu.menuUrl.includes('?')?'&dashboardFlag=true':'?dashboardFlag=true');
|
2022-10-14 08:14:48 +00:00
|
|
|
$.ajax({
|
|
|
|
|
type : 'GET',
|
2022-10-20 06:04:23 +00:00
|
|
|
url : url,
|
2022-10-14 08:14:48 +00:00
|
|
|
dataType:"html",
|
|
|
|
|
success : function(html) {
|
|
|
|
|
$("#subPage"+idx).append(html);
|
|
|
|
|
},
|
|
|
|
|
error : function(xhr, status) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|