This commit is contained in:
ChiKyun Kim
2025-11-11 08:39:59 +09:00
parent a966b4a6ab
commit e6a39d52e9
15 changed files with 60 additions and 128 deletions

View File

@@ -298,11 +298,12 @@
</div>
</div>
<!-- 공통 네비게이션 JS -->
<script src="/js/common-navigation.js"></script>
<script>
// 공용코드 전용 스크립
// 공통 네비게이션 컴포넌
class CommonNavigation {
constructor(currentPage = '') {
this.currentPage = currentPage;
this.menuItems = [];
this.init();
}
@@ -448,7 +449,7 @@
// 코드그룹 목록 로드
function loadGroups() {
showLoading();
fetch('/Common/GetGroups')
.then(response => response.json())
.then(data => {
@@ -517,7 +518,7 @@
// 특정 그룹의 데이터 로드
function loadDataByGroup(grp) {
showLoading();
let url = '/Common/GetList';
if (grp) {
url += '?grp=' + encodeURIComponent(grp);
@@ -642,9 +643,9 @@
// 삭제 실행
function confirmDelete() {
if (!deleteTargetIdx) return;
showLoading();
fetch('/Common/Delete', {
method: 'POST',
headers: {
@@ -704,9 +705,9 @@
svalue2: document.getElementById('editSvalue2').value,
memo: document.getElementById('editMemo').value
};
showLoading();
fetch('/Common/Save', {
method: 'POST',
headers: {