좌측상단 이미지에 지자체별 로고가 표시되도록 수정

main
이범준 11 months ago
parent 917e36e78c
commit d78652c24e

@ -103,6 +103,10 @@ public class UserController extends cokr.xit.base.user.web.UserController<Manage
//사용자별 업무 및 기본업무 //사용자별 업무 및 기본업무
stngBean.initUserInfo(userInfo); stngBean.initUserInfo(userInfo);
//지자체 로고
DataObject sggStng = stngBean.getStng("sgg");
userInfo.getInfo().put("sggLogoPath", sggStng.string("LOGO_FILE_PATH"));
mav.addObject("myInfo", userInfo); mav.addObject("myInfo", userInfo);
return mav; return mav;

@ -44,10 +44,16 @@ public class StngBean extends AbstractComponent {
return stngMapper.selectUserStng(currentUser().getId()); return stngMapper.selectUserStng(currentUser().getId());
} else if(type.equals("dept")){ } else if(type.equals("dept")){
UserInfo userInfo = currentUser(); UserInfo userInfo = currentUser();
if(userInfo.getInstitute().equals("default")) {
return new DataObject();
}
factionBean.initUserInfo(userInfo); factionBean.initUserInfo(userInfo);
return stngMapper.selectDeptStng((String)userInfo.getInfo().get("deptCd")); return stngMapper.selectDeptStng((String)userInfo.getInfo().get("deptCd"));
} else if(type.equals("sgg")){ } else if(type.equals("sgg")){
UserInfo userInfo = currentUser(); UserInfo userInfo = currentUser();
if(userInfo.getInstitute().equals("default")) {
return new DataObject();
}
factionBean.initUserInfo(userInfo); factionBean.initUserInfo(userInfo);
return stngMapper.selectSggStng((String)userInfo.getInfo().get("sggCd")); return stngMapper.selectSggStng((String)userInfo.getInfo().get("sggCd"));
} else { } else {

@ -5,7 +5,9 @@
<div class="app-brand demo"> <div class="app-brand demo">
<a href="javascript:fnHome();" class="app-brand-link"> <a href="javascript:fnHome();" class="app-brand-link">
<span class="app-brand-logo demo"> <span class="app-brand-logo demo">
<img src="<c:url value='/'/>resources/image/fims/framework/login/mainLogo_01.png" width="36px" height="36px" alt="logo" /> <img id="logo--left"
src="<c:url value='/'/>resources/image/fims/framework/login/mainLogo_01.png"
width="36px" height="36px" alt="logo" />
</span> </span>
<span id="home" class="app-brand-text demo menu-text fw-bolder ms-2" style="text-align:center;"> <span id="home" class="app-brand-text demo menu-text fw-bolder ms-2" style="text-align:center;">
과태료통합관리시스템 과태료통합관리시스템

@ -215,6 +215,11 @@
return; return;
} }
//지자체 로고
if(MY_INFO.info.sggLogoPath != ""){
$("#logo--left").attr("src", MY_INFO.info.sggLogoPath);
}
//사용자별 선택가능한 업무 렌더링 //사용자별 선택가능한 업무 렌더링
for(var i=0; i < MY_INFO.info.taskForUser.length; i++){ for(var i=0; i < MY_INFO.info.taskForUser.length; i++){
var taskCd = MY_INFO.info.taskForUser[i]; var taskCd = MY_INFO.info.taskForUser[i];

Loading…
Cancel
Save