제휴기관코드 미등록 시 알림 처리 추가
This commit is contained in:
+1
@@ -46,6 +46,7 @@ public class CommissionController {
|
||||
public String commissionManagePage(Model model) {
|
||||
// 기본 정보 설정
|
||||
model.addAttribute("organization", SecurityUtil.getUserOrg());
|
||||
model.addAttribute("noOrgCode", StringUtils.isEmpty(SecurityUtil.getUserOrg().getOrgCode()));
|
||||
return "apps/commission/commissionManage";
|
||||
}
|
||||
|
||||
|
||||
@@ -192,6 +192,13 @@
|
||||
<script th:inline="javascript">
|
||||
// 페이지 로드 시 초기화 및 자동 조회
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var noOrgCode = /*[[${noOrgCode}]]*/ false;
|
||||
if (noOrgCode) {
|
||||
customPopups.showAlert('제휴기관코드가 등록되지 않았습니다.<br/>관리자에게 문의하세요.', function() {
|
||||
history.back();
|
||||
});
|
||||
return;
|
||||
}
|
||||
initializeDateSelects();
|
||||
// 페이지 로딩 후 자동 조회
|
||||
loadData();
|
||||
|
||||
Reference in New Issue
Block a user