feat: 하드웨어 자동 변경 이력 생성 및 자산 관리 프로세스 고도화

This commit is contained in:
2026-04-22 17:15:58 +09:00
parent af37df7f2d
commit e1cdcfd93a
18 changed files with 730 additions and 1200 deletions

View File

@@ -4,7 +4,6 @@ import { renderDashboard } from './views/DashboardView';
import { renderSWTable } from './views/SW_Table';
import { downloadTemplate, exportToExcel, parseExcel, HardwareAsset, SoftwareAsset, SWUser } from './core/excelHandler';
import { initBaseModal } from './components/Modal/BaseModal';
import { initPcModal } from './components/Modal/PCModal';
import { initHwModal, openHwModal } from './components/Modal/HWModal';
import { initSwModal, openSwModal } from './components/Modal/SWModal';
import { initSwUserModal } from './components/Modal/SWUserModal';
@@ -75,7 +74,6 @@ function initApp() {
});
// 모달 초기화
initPcModal(() => { saveAllHardwareToDB(); renderSWTable(mainContent); }, closeAllModals);
initHwModal(() => { saveAllHardwareToDB(); renderSWTable(mainContent); }, closeAllModals);
initSwModal(() => {
@@ -125,8 +123,14 @@ function initApp() {
const cat = state.activeCategory;
if (cat === 'hw') {
// 하드웨어 대시보드 또는 개별 탭에서 추가
const defaultType = (tab === '대시보드') ? '' : tab;
// 탭 명칭을 실제 유형명으로 매핑
let defaultType = '';
if (tab === '개인PC') defaultType = 'PC';
else if (tab === '서버') defaultType = '서버';
else if (tab === '스토리지') defaultType = '스토리지';
else if (tab === '전산비품') defaultType = 'CPU';
else if (tab === '모바일기기') defaultType = '모바일';
openHwModal({
id: Math.random().toString(36).substring(2, 9),
type: defaultType,