fix: 빌드 에러 및 포트 동기화 수정

This commit is contained in:
2026-04-21 11:40:54 +09:00
parent 153e422180
commit 34baea9143
7 changed files with 106 additions and 31 deletions

View File

@@ -40,6 +40,7 @@ export interface HardwareAsset {
비고?: string;
현사용조직?: string;
이전사용조직?: string;
detail_purpose?: string;
}
export interface SoftwareAsset {
@@ -60,6 +61,7 @@ export interface SoftwareAsset {
계정명: string;
납품업체: string;
비고: string;
자산번호?: string;
플랫폼명?: string;
결제수단?: string;
결제일?: string;
@@ -96,8 +98,11 @@ export interface MasterAssetData {
mobile: HardwareAsset[];
subSw: SoftwareAsset[];
permSw: SoftwareAsset[];
swUsers: any[]; // { sw_id, userData: [] } 형태로 처리
cloud: SoftwareAsset[];
swUsers: SWUser[];
logs: HardwareLog[];
sw: SoftwareAsset[];
hw: HardwareAsset[];
}
const HW_TABS = ['개인PC', '서버', '스토리지', '전산비품', '모바일기기'];
@@ -164,7 +169,7 @@ export async function parseExcel(file: File): Promise<MasterAssetData> {
reader.onload = (e) => {
try {
const workbook = XLSX.read(e.target?.result, { type: 'binary' });
const data: MasterAssetData = { pc: [], server: [], storage: [], equip: [], mobile: [], subSw: [], permSw: [], swUsers: [], logs: [] };
const data: MasterAssetData = { pc: [], server: [], storage: [], equip: [], mobile: [], subSw: [], permSw: [], cloud: [], swUsers: [], logs: [], sw: [], hw: [] };
workbook.SheetNames.forEach(sheetName => {
const rows = XLSX.utils.sheet_to_json(workbook.Sheets[sheetName]) as any[];
if (sheetName === '개인PC') {