Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ae1fd4b121 | |||
|
|
577f138533 | ||
|
|
237ac9ee25 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ dist/
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
backups/
|
backups/
|
||||||
|
mysql_data/
|
||||||
|
|||||||
@@ -55,3 +55,19 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
start_period: 20s
|
start_period: 20s
|
||||||
|
|
||||||
|
database:
|
||||||
|
image: mysql:latest
|
||||||
|
container_name: itam-mysql
|
||||||
|
ports:
|
||||||
|
- "3306:3306"
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=itam1234 # 여기 직접 기입
|
||||||
|
- MYSQL_DATABASE=itam
|
||||||
|
- MYSQL_USER=itam
|
||||||
|
- MYSQL_PASSWORD=itam1234
|
||||||
|
volumes:
|
||||||
|
- ./mysql_data:/var/lib/mysql
|
||||||
|
restart: always
|
||||||
|
command:
|
||||||
|
- --character-set-server=utf8mb4
|
||||||
|
- --collation-server=utf8mb4_unicode_ci
|
||||||
5895
itam_DB_bak.sql
Normal file
5895
itam_DB_bak.sql
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
import { state, saveAsset, deleteAsset } from '../../core/state';
|
import { state, saveAsset, deleteAsset } from '../../core/state';
|
||||||
import { ASSET_SCHEMA, UI_TEXT } from '../../core/schema';
|
import { ASSET_SCHEMA, UI_TEXT } from '../../core/schema';
|
||||||
import { API_BASE_URL, calculatePcScoreDeductive, getPcGrade } from '../../core/utils';
|
import { calculatePcScoreDeductive, getPcGrade, API_BASE_URL } from '../../core/utils';
|
||||||
import {
|
import {
|
||||||
generateOptionsHTML,
|
generateOptionsHTML,
|
||||||
setFieldValue,
|
setFieldValue,
|
||||||
@@ -299,7 +299,7 @@ class HwAssetModal extends BaseModal {
|
|||||||
const prefix = TYPE_PREFIX_MAP[cat] || 'ETC';
|
const prefix = TYPE_PREFIX_MAP[cat] || 'ETC';
|
||||||
const purchaseDate = (document.getElementById('hw-purchase_date') as HTMLInputElement)?.value || '';
|
const purchaseDate = (document.getElementById('hw-purchase_date') as HTMLInputElement)?.value || '';
|
||||||
try {
|
try {
|
||||||
const res = await fetch(`${API_BASE_URL}/api/generate-asset-code?prefix=${prefix}&purchaseDate=${purchaseDate}`);
|
const res = await fetch(`http://${location.hostname}:3000/api/generate-asset-code?prefix=${prefix}&purchaseDate=${purchaseDate}`);
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
if (data.nextCode) setFieldValue('hw-asset_code', data.nextCode);
|
if (data.nextCode) setFieldValue('hw-asset_code', data.nextCode);
|
||||||
} catch (err) { console.error('코드 생성 실패:', err); }
|
} catch (err) { console.error('코드 생성 실패:', err); }
|
||||||
@@ -317,7 +317,7 @@ class HwAssetModal extends BaseModal {
|
|||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
reader.onload = async () => {
|
reader.onload = async () => {
|
||||||
try {
|
try {
|
||||||
const res = await fetch(`${API_BASE_URL}/api/upload`, {
|
const res = await fetch(`http://${location.hostname}:3000/api/upload`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ fileName: file.name, fileData: reader.result })
|
body: JSON.stringify({ fileName: file.name, fileData: reader.result })
|
||||||
|
|||||||
@@ -537,6 +537,8 @@
|
|||||||
background-color: var(--canvas-soft-2);
|
background-color: var(--canvas-soft-2);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-map-container.readonly {
|
.layout-map-container.readonly {
|
||||||
@@ -546,12 +548,15 @@
|
|||||||
.image-marker-wrapper {
|
.image-marker-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-map-img {
|
.layout-map-img {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 75vh;
|
max-height: 70vh;
|
||||||
|
object-fit: contain;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
-webkit-user-drag: none;
|
-webkit-user-drag: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user