카카오톡 인앱 WebView는 서브도메인 간 쿠키를 공유하지 않아 tkds에서 로그인 후 tkfb로 리다이렉트 시 인증이 풀리는 문제. - sso-relay.js: URL hash의 _sso= 토큰을 로컬 쿠키+localStorage로 설정 - gateway dashboard: 로그인 후 redirect URL에 #_sso=<token> 추가 - 전 서비스 HTML: core JS 직전에 sso-relay.js 로드 (81개 파일) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
479 lines
15 KiB
HTML
479 lines
15 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>신고 상세 | (주)테크니컬코리아</title>
|
|
<link rel="stylesheet" href="/css/design-system.css">
|
|
<link rel="stylesheet" href="/css/common.css?v=2026031401">
|
|
<link rel="stylesheet" href="/css/project-management.css?v=2026031401">
|
|
<link rel="icon" type="image/png" href="/img/favicon.png">
|
|
<script src="/js/sso-relay.js?v=20260401"></script>
|
|
<script src="/js/api-base.js?v=2026040101"></script>
|
|
<script src="/js/app-init.js?v=2026031401" defer></script>
|
|
<script src="https://instant.page/5.2.0" type="module"></script>
|
|
<style>
|
|
/* 상태 배지 */
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 0.375rem 1rem;
|
|
border-radius: 9999px;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-badge.reported { background: #dbeafe; color: #1d4ed8; }
|
|
.status-badge.received { background: #fed7aa; color: #c2410c; }
|
|
.status-badge.in_progress { background: #e9d5ff; color: #7c3aed; }
|
|
.status-badge.completed { background: #d1fae5; color: #047857; }
|
|
.status-badge.closed { background: #f3f4f6; color: #4b5563; }
|
|
|
|
/* 유형 배지 */
|
|
.type-badge {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 0.25rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.type-badge.nonconformity { background: #fff7ed; color: #c2410c; }
|
|
.type-badge.safety { background: #fef2f2; color: #b91c1c; }
|
|
.type-badge.facility { background: #eff6ff; color: #1d4ed8; }
|
|
|
|
/* 심각도 배지 */
|
|
.severity-badge {
|
|
display: inline-block;
|
|
padding: 0.125rem 0.5rem;
|
|
border-radius: 0.25rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.severity-badge.critical { background: #fef2f2; color: #b91c1c; }
|
|
.severity-badge.high { background: #fff7ed; color: #c2410c; }
|
|
.severity-badge.medium { background: #fefce8; color: #a16207; }
|
|
.severity-badge.low { background: #f3f4f6; color: #4b5563; }
|
|
|
|
/* 상세 섹션 */
|
|
.detail-section {
|
|
background: white;
|
|
border-radius: 0.75rem;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 0.75rem;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
/* 정보 그리드 */
|
|
.info-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1rem;
|
|
}
|
|
|
|
.info-item {
|
|
padding: 0.875rem;
|
|
background: #f9fafb;
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
.info-label {
|
|
font-size: 0.75rem;
|
|
color: #6b7280;
|
|
margin-bottom: 0.25rem;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.info-value {
|
|
font-size: 0.9375rem;
|
|
font-weight: 500;
|
|
color: #1f2937;
|
|
}
|
|
|
|
/* 사진 갤러리 */
|
|
.photo-gallery {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.photo-item {
|
|
aspect-ratio: 1;
|
|
border-radius: 0.5rem;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
border: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.photo-item img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.photo-item:hover img {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
/* 상태 타임라인 */
|
|
.status-timeline {
|
|
position: relative;
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
.status-timeline::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0.375rem;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 2px;
|
|
background: #e5e7eb;
|
|
}
|
|
|
|
.timeline-item {
|
|
position: relative;
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
.timeline-item:last-child {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.timeline-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -1.125rem;
|
|
top: 0.25rem;
|
|
width: 0.625rem;
|
|
height: 0.625rem;
|
|
border-radius: 50%;
|
|
background: #3b82f6;
|
|
}
|
|
|
|
.timeline-status {
|
|
font-weight: 600;
|
|
margin-bottom: 0.25rem;
|
|
color: #1f2937;
|
|
}
|
|
|
|
.timeline-meta {
|
|
font-size: 0.875rem;
|
|
color: #6b7280;
|
|
}
|
|
|
|
/* 액션 버튼 */
|
|
.action-buttons {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.action-btn {
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 0.5rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
border: 1px solid #d1d5db;
|
|
background: white;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.action-btn:hover { background: #f9fafb; }
|
|
.action-btn.primary { background: #3b82f6; color: white; border-color: #3b82f6; }
|
|
.action-btn.primary:hover { background: #2563eb; }
|
|
.action-btn.success { background: #10b981; color: white; border-color: #10b981; }
|
|
.action-btn.success:hover { background: #059669; }
|
|
.action-btn.danger { background: #ef4444; color: white; border-color: #ef4444; }
|
|
.action-btn.danger:hover { background: #dc2626; }
|
|
|
|
/* 모달 */
|
|
.modal-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-overlay.visible { display: flex; }
|
|
|
|
.modal-content {
|
|
background: white;
|
|
padding: 1.5rem;
|
|
border-radius: 0.75rem;
|
|
max-width: 500px;
|
|
width: 90%;
|
|
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.modal-form-group {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.modal-form-group label {
|
|
display: block;
|
|
font-weight: 500;
|
|
margin-bottom: 0.5rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.modal-form-group input,
|
|
.modal-form-group select,
|
|
.modal-form-group textarea {
|
|
width: 100%;
|
|
padding: 0.75rem;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 0.5rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.modal-form-group input:focus,
|
|
.modal-form-group select:focus,
|
|
.modal-form-group textarea:focus {
|
|
outline: none;
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 0.75rem;
|
|
margin-top: 1.25rem;
|
|
}
|
|
|
|
/* 사진 확대 모달 */
|
|
.photo-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.9);
|
|
z-index: 1001;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.photo-modal.visible { display: flex; }
|
|
|
|
.photo-modal img {
|
|
max-width: 90%;
|
|
max-height: 90%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.photo-modal-close {
|
|
position: absolute;
|
|
top: 1.25rem;
|
|
right: 1.25rem;
|
|
color: white;
|
|
font-size: 2rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 뒤로가기 링크 */
|
|
.back-link {
|
|
color: #3b82f6;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.back-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 헤더 */
|
|
.detail-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.detail-id {
|
|
font-size: 0.875rem;
|
|
color: #6b7280;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.detail-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: #1f2937;
|
|
}
|
|
|
|
/* 반응형 */
|
|
@media (max-width: 768px) {
|
|
.info-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.detail-header {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.action-buttons {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.action-btn {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="work-report-container">
|
|
<div id="navbar-container"></div>
|
|
|
|
<main class="work-report-main">
|
|
<div class="dashboard-main">
|
|
<a href="#" class="back-link" onclick="goBackToList(); return false;">
|
|
← 목록으로
|
|
</a>
|
|
|
|
<div class="detail-header">
|
|
<div>
|
|
<div class="detail-id" id="reportId"></div>
|
|
<h1 class="detail-title" id="reportTitle">로딩 중...</h1>
|
|
</div>
|
|
<span class="status-badge" id="statusBadge"></span>
|
|
</div>
|
|
|
|
<!-- 기본 정보 -->
|
|
<div class="detail-section">
|
|
<h2 class="section-title">신고 정보</h2>
|
|
<div class="info-grid" id="basicInfo"></div>
|
|
</div>
|
|
|
|
<!-- 신고 내용 -->
|
|
<div class="detail-section">
|
|
<h2 class="section-title">신고 내용</h2>
|
|
<div id="issueContent"></div>
|
|
</div>
|
|
|
|
<!-- 사진 -->
|
|
<div class="detail-section" id="photoSection" style="display: none;">
|
|
<h2 class="section-title">첨부 사진</h2>
|
|
<div class="photo-gallery" id="photoGallery"></div>
|
|
</div>
|
|
|
|
<!-- 처리 정보 -->
|
|
<div class="detail-section" id="processSection" style="display: none;">
|
|
<h2 class="section-title">처리 정보</h2>
|
|
<div id="processInfo"></div>
|
|
</div>
|
|
|
|
<!-- 상태 이력 -->
|
|
<div class="detail-section">
|
|
<h2 class="section-title">상태 변경 이력</h2>
|
|
<div class="status-timeline" id="statusTimeline"></div>
|
|
</div>
|
|
|
|
<!-- 액션 버튼 -->
|
|
<div class="action-buttons" id="actionButtons"></div>
|
|
</div>
|
|
</main>
|
|
|
|
<!-- 담당자 배정 모달 -->
|
|
<div class="modal-overlay" id="assignModal">
|
|
<div class="modal-content">
|
|
<h3 class="modal-title">담당자 배정</h3>
|
|
<div class="modal-form-group">
|
|
<label>담당 부서</label>
|
|
<input type="text" id="assignDepartment" placeholder="담당 부서 입력">
|
|
</div>
|
|
<div class="modal-form-group">
|
|
<label>담당자</label>
|
|
<select id="assignUser">
|
|
<option value="">담당자 선택</option>
|
|
</select>
|
|
</div>
|
|
<div class="modal-actions">
|
|
<button class="action-btn" onclick="closeAssignModal()">취소</button>
|
|
<button class="action-btn primary" onclick="submitAssign()">배정</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 처리 완료 모달 -->
|
|
<div class="modal-overlay" id="completeModal">
|
|
<div class="modal-content">
|
|
<h3 class="modal-title">처리 완료</h3>
|
|
<div class="modal-form-group">
|
|
<label>처리 내용</label>
|
|
<textarea id="resolutionNotes" rows="4" placeholder="처리 내용을 입력하세요"></textarea>
|
|
</div>
|
|
<div class="modal-actions">
|
|
<button class="action-btn" onclick="closeCompleteModal()">취소</button>
|
|
<button class="action-btn success" onclick="submitComplete()">완료 처리</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 유형 이관 모달 -->
|
|
<div class="modal-overlay" id="transferModal">
|
|
<div class="modal-content">
|
|
<h3 class="modal-title">유형 이관</h3>
|
|
<div class="modal-form-group">
|
|
<label>이관할 유형</label>
|
|
<select id="transferCategoryType">
|
|
<option value="">유형 선택</option>
|
|
<option value="safety">안전</option>
|
|
<option value="facility">시설설비</option>
|
|
<option value="nonconformity">부적합</option>
|
|
</select>
|
|
</div>
|
|
<p style="font-size: 0.8125rem; color: #6b7280; margin-top: 0.5rem;">
|
|
유형을 변경하면 해당 유형의 목록에서 조회됩니다. 원래 카테고리/항목 정보는 유지됩니다.
|
|
</p>
|
|
<div class="modal-actions">
|
|
<button class="action-btn" onclick="closeTransferModal()">취소</button>
|
|
<button class="action-btn primary" onclick="submitTransfer()">이관</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 사진 확대 모달 -->
|
|
<div class="photo-modal" id="photoModal" onclick="closePhotoModal()">
|
|
<span class="photo-modal-close">×</span>
|
|
<img id="photoModalImg" src="" alt="">
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/js/issue-detail.js?v=2026031401"></script>
|
|
</body>
|
|
</html>
|