공통코드 오류 수정 및 팝업 이동
This commit is contained in:
parent
f4f6db3b7e
commit
305baa8c58
@ -31,7 +31,7 @@ public class CustomUserDetailsService implements UserDetailsService {
|
|||||||
if (user == null) {
|
if (user == null) {
|
||||||
throw new UsernameNotFoundException("User not found");
|
throw new UsernameNotFoundException("User not found");
|
||||||
}
|
}
|
||||||
log.info("DB Password: {}", user.getPassword());
|
// log.info("DB Password: {}", user.getPassword());
|
||||||
// log.info("Encoded password: {}", passwordEncoder.encode("내가 입력한 비밀번호"));
|
// log.info("Encoded password: {}", passwordEncoder.encode("내가 입력한 비밀번호"));
|
||||||
// log.info("match? {}", passwordEncoder.matches("내가 입력한 비밀번호", user.getPassword()));
|
// log.info("match? {}", passwordEncoder.matches("내가 입력한 비밀번호", user.getPassword()));
|
||||||
|
|
||||||
|
|||||||
@ -418,6 +418,8 @@
|
|||||||
|
|
||||||
|
|
||||||
let currentCodeGroupId; // 전역 변수로 코드 그룹 ID를 저장
|
let currentCodeGroupId; // 전역 변수로 코드 그룹 ID를 저장
|
||||||
|
let maxCodeId = 0;
|
||||||
|
let maxSortOrder = 0;
|
||||||
// 코드 상세보기 모달을 표시하는 함수
|
// 코드 상세보기 모달을 표시하는 함수
|
||||||
window.showDetails = function(codeGroupId) {
|
window.showDetails = function(codeGroupId) {
|
||||||
currentCodeGroupId = codeGroupId; // 현재 코드 그룹 ID 저장
|
currentCodeGroupId = codeGroupId; // 현재 코드 그룹 ID 저장
|
||||||
@ -427,7 +429,17 @@
|
|||||||
success: function(data) {
|
success: function(data) {
|
||||||
let detailTableBody = $('#detailTableBody');
|
let detailTableBody = $('#detailTableBody');
|
||||||
detailTableBody.empty();
|
detailTableBody.empty();
|
||||||
|
maxCodeId = 0; // Reset for the current group
|
||||||
|
maxSortOrder = 0; // Reset for the current group
|
||||||
data.forEach(function(detail) {
|
data.forEach(function(detail) {
|
||||||
|
let currentCodeId = parseInt(detail.codeId, 10);
|
||||||
|
if (!isNaN(currentCodeId) && currentCodeId > maxCodeId) {
|
||||||
|
maxCodeId = currentCodeId;
|
||||||
|
}
|
||||||
|
let currentSortOrder = parseInt(detail.sortOrder, 10);
|
||||||
|
if (!isNaN(currentSortOrder) && currentSortOrder > maxSortOrder) {
|
||||||
|
maxSortOrder = currentSortOrder;
|
||||||
|
}
|
||||||
detailTableBody.append('<tr>' +
|
detailTableBody.append('<tr>' +
|
||||||
'<td>' + detail.codeId + '</td>' +
|
'<td>' + detail.codeId + '</td>' +
|
||||||
'<td>' + detail.codeName + '</td>' +
|
'<td>' + detail.codeName + '</td>' +
|
||||||
@ -465,7 +477,13 @@
|
|||||||
|
|
||||||
// 코드 상세 추가 모달을 표시하는 함수
|
// 코드 상세 추가 모달을 표시하는 함수
|
||||||
window.showAddCodeDetailModal = function() {
|
window.showAddCodeDetailModal = function() {
|
||||||
|
const newCodeId = maxCodeId + 10;
|
||||||
|
const newSortOrder = maxSortOrder + 1;
|
||||||
|
|
||||||
$('#detailCodeGroupId').val(currentCodeGroupId); // 코드 그룹 ID 필드에 현재 ID 설정
|
$('#detailCodeGroupId').val(currentCodeGroupId); // 코드 그룹 ID 필드에 현재 ID 설정
|
||||||
|
$('#detailCodeId').val(newCodeId);
|
||||||
|
$('#detailCodeValue').val(newCodeId);
|
||||||
|
$('#detailSortOrder').val(newSortOrder);
|
||||||
$('#addCodeDetailModal').modal('show'); // 상세 추가 모달 표시
|
$('#addCodeDetailModal').modal('show'); // 상세 추가 모달 표시
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user