fix(project): 회의록 머리 배치 — 인쇄·삭제는 제목 옆, 달력은 오른쪽 위 90% 크기, 매출 갱신 상태 줄 제거

- 인쇄·회의록 삭제 버튼을 제목 줄(‹이전 달·다음 달› 뒤)로
- 작은 달력을 오른쪽 위(예전 버튼 자리)로 올리고 90% 크기(212px)
- 매출 자료 갱신 상태 줄·[매출 갱신] 버튼 제거 — 주차를 열면 표시 없이 다시 받아 숫자만 갱신(10분에 한 번)
- 캐시 버전 20261001h, 문서 갱신

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 12:13:57 +09:00
parent 2dab20f718
commit 4efe7cef58
10 changed files with 75 additions and 79 deletions
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" />
<link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -21,31 +21,24 @@
{% with current_pid = 0, side_active = "goals" %}{% include "project/_side.html" %}{% endwith %}
<section class="pj-main">
<div class="pj-section-head pj-meet-head">
<div class="pj-meet-title">
<a class="pj-meet-back" href="/project/goals/{{ goal_year }}" title="{{ goal_year }}년 목표로"><span class="material-symbols-outlined">arrow_back</span></a>
<h2>{{ goal_year }}년 {{ goal_month }}월 주간 회의록</h2>
{% set pm = goal_month - 1 if goal_month > 1 else 12 %}{% set py = goal_year if goal_month > 1 else goal_year - 1 %}
{% set nm = goal_month + 1 if goal_month < 12 else 1 %}{% set ny = goal_year if goal_month < 12 else goal_year + 1 %}
<a class="pj-btn pj-btn-sm" href="/project/goals/{{ py }}/meetings/{{ pm }}">‹ {{ pm }}월</a>
<a class="pj-btn pj-btn-sm" href="/project/goals/{{ ny }}/meetings/{{ nm }}">{{ nm }}월 ›</a>
</div>
{% if meeting and is_admin %}
<div class="pj-goal-head-acts">
<button type="button" class="pj-btn" id="pj-meet-print"><span class="material-symbols-outlined">print</span> 인쇄</button>
<button type="button" class="pj-btn pj-btn-danger" id="pj-meet-del">회의록 삭제</button>
</div>
{% elif meeting %}
<div class="pj-goal-head-acts">
<button type="button" class="pj-btn" id="pj-meet-print"><span class="material-symbols-outlined">print</span> 인쇄</button>
<span class="pj-goal-note">회의록은 관리자만 입력할 수 있습니다.</span>
</div>
{% endif %}
</div>
<div class="pj-view pj-meet-pane" id="pj-meet-pane" data-week="{{ week }}" data-year="{{ goal_year }}"
data-month="{{ goal_month }}" data-admin="{{ 'true' if is_admin else 'false' }}">
<div class="pj-meet-top">
{# 머리 — 왼쪽: 제목·이전/다음 달·인쇄·회의록 삭제 + 주차 탭 / 오른쪽 위: 작은 달력 #}
<div class="pj-meet-headgrid">
<div class="pj-meet-headleft">
<div class="pj-meet-title">
<a class="pj-meet-back" href="/project/goals/{{ goal_year }}" title="{{ goal_year }}년 목표로"><span class="material-symbols-outlined">arrow_back</span></a>
<h2>{{ goal_year }}년 {{ goal_month }}월 주간 회의록</h2>
{% set pm = goal_month - 1 if goal_month > 1 else 12 %}{% set py = goal_year if goal_month > 1 else goal_year - 1 %}
{% set nm = goal_month + 1 if goal_month < 12 else 1 %}{% set ny = goal_year if goal_month < 12 else goal_year + 1 %}
<a class="pj-btn pj-btn-sm" href="/project/goals/{{ py }}/meetings/{{ pm }}">‹ {{ pm }}월</a>
<a class="pj-btn pj-btn-sm" href="/project/goals/{{ ny }}/meetings/{{ nm }}">{{ nm }}월 ›</a>
{% if meeting %}
<span class="pj-meet-title-acts">
<button type="button" class="pj-btn pj-btn-sm" id="pj-meet-print"><span class="material-symbols-outlined">print</span> 인쇄</button>
{% if is_admin %}<button type="button" class="pj-btn pj-btn-sm pj-btn-danger" id="pj-meet-del">회의록 삭제</button>
{% else %}<span class="pj-goal-note">회의록은 관리자만 입력할 수 있습니다.</span>{% endif %}
</span>
{% endif %}
</div>
{# 주차 탭 — 주 = 월요일~일요일, 1주차 = 1일이 들어 있는 주. 점 = 회의록 있음 #}
<nav class="pj-meet-weeks" aria-label="주차">
{% for w in weeks %}
@@ -57,19 +50,23 @@
</a>
{% endfor %}
</nav>
{# 작은 달력 — 월요일 시작(주 = 월~일), 보고 있는 주는 영역 표시, 줄을 누르면 그 주 회의록. 점 = 회의록 있음 #}
<div class="pj-meet-cal" aria-label="{{ goal_month }}월 달력">
<div class="pj-meet-cal-head">{{ goal_year }}년 {{ goal_month }}월</div>
<div class="pj-meet-cal-wd"><span>월</span><span>화</span><span>수</span><span>목</span><span>금</span><span class="is-sat">토</span><span class="is-sun">일</span></div>
{% for w in weeks %}
<a class="pj-meet-cal-row{% if w.start == week %} is-on{% endif %}{% if w.now %} is-now{% endif %}" href="?week={{ w.start }}"
title="{{ w.n }}주차 ({{ w.label }}){% if w.has %} · 회의록 있음{% endif %}">
{% for d in w.days %}<span class="pj-meet-cal-d{% if not d.in %} is-out{% endif %}{% if d.today %} is-today{% endif %}{% if d.wd == 5 %} is-sat{% endif %}{% if d.wd == 6 or d.hol %} is-sun{% endif %}"{% if d.hol %} title="{{ d.hol }}"{% endif %}>{{ d.d }}</span>{% endfor %}
{% if w.has %}<i class="pj-meet-cal-dot"></i>{% endif %}
</a>
{% endfor %}
</div>
</div>
{# 작은 달력 — 월요일 시작(주 = 월~일), 보고 있는 주는 영역 표시, 줄을 누르면 그 주 회의록. 점 = 회의록 있음 #}
<div class="pj-meet-cal" aria-label="{{ goal_month }}월 달력">
<div class="pj-meet-cal-head">{{ goal_year }}년 {{ goal_month }}월</div>
<div class="pj-meet-cal-wd"><span>월</span><span>화</span><span>수</span><span>목</span><span>금</span><span class="is-sat">토</span><span class="is-sun">일</span></div>
{% for w in weeks %}
<a class="pj-meet-cal-row{% if w.start == week %} is-on{% endif %}{% if w.now %} is-now{% endif %}" href="?week={{ w.start }}"
title="{{ w.n }}주차 ({{ w.label }}){% if w.has %} · 회의록 있음{% endif %}">
{% for d in w.days %}<span class="pj-meet-cal-d{% if not d.in %} is-out{% endif %}{% if d.today %} is-today{% endif %}{% if d.wd == 5 %} is-sat{% endif %}{% if d.wd == 6 or d.hol %} is-sun{% endif %}"{% if d.hol %} title="{{ d.hol }}"{% endif %}>{{ d.d }}</span>{% endfor %}
{% if w.has %}<i class="pj-meet-cal-dot"></i>{% endif %}
</a>
{% endfor %}
</div>
</div>
<div class="pj-view pj-meet-pane" id="pj-meet-pane" data-week="{{ week }}" data-year="{{ goal_year }}"
data-month="{{ goal_month }}" data-admin="{{ 'true' if is_admin else 'false' }}">
{% if not meetings_enabled %}
<div class="pj-empty">주간 회의록이 아직 준비되지 않았습니다(DB 마이그레이션 015 필요).</div>
@@ -85,15 +82,9 @@
{% else %}
{% set h = head %}
{% set edit = is_admin %}
{# 매출 자료 갱신 — 주차를 열면 실적 모듈 매출 업데이트(지난주 월요일 ~ 이번 주 오늘)를 한 번 더 돌리고 숫자를 다시 그린다
(project.js initMeetingSync, 같은 주는 10분에 한 번, [매출 갱신] 버튼은 언제나) #}
{% if h.perf and sync_from %}
<div class="pj-meet-sync" id="pj-meet-sync" data-from="{{ sync_from }}" data-to="{{ sync_to }}">
<span class="material-symbols-outlined">sync</span>
<span class="pj-meet-sync-text">저장된 실적으로 보여 주는 중</span>
<button type="button" class="pj-btn pj-btn-sm" id="pj-meet-sync-btn" title="{{ sync_from[5:] | replace('-', '/') }} ~ {{ sync_to[5:] | replace('-', '/') }} 매출을 쇼핑몰에서 다시 받습니다">매출 갱신</button>
</div>
{% endif %}
{# 매출 자료 갱신 — 주차를 열면 표시 없이 실적 모듈 매출 업데이트(지난주 월요일 ~ 이번 주 오늘)를 한 번 더 돌리고
숫자 칸만 다시 그린다(project.js initMeetingSync, 같은 주는 10분에 한 번). 상태 줄은 2026-10-01 요청으로 뺐다. #}
{% if h.perf and sync_from %}<div id="pj-meet-sync" hidden data-from="{{ sync_from }}" data-to="{{ sync_to }}"></div>{% endif %}
{# ── 머리 — 월 목표 대비 누적·남은 주 필요 매출 / 전주 리뷰 / 금주 목표 ── #}
<div class="pj-meet-kpis">
<div class="pj-meet-kpi">
@@ -255,5 +246,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20261001g" defer></script>
<script src="/static/project.js?v=20261001h" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" />
<link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -207,5 +207,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20261001g" defer></script>
<script src="/static/project.js?v=20261001h" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" />
<link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/project-help.css?v=20260926v" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" />
<link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -104,5 +104,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20261001g" defer></script>
<script src="/static/project.js?v=20261001h" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" />
<link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -100,5 +100,5 @@
"today": {{ today | tojson }}
}
</script>
<script src="/static/project.js?v=20261001g" defer></script>
<script src="/static/project.js?v=20261001h" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" />
<link rel="stylesheet" href="/static/project.css?v=20261001h" />
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
<!-- 타임라인 vis-timeline — self-host -->
@@ -496,5 +496,5 @@
</script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20261001g" defer></script>
<script src="/static/project.js?v=20261001h" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" />
<link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -70,5 +70,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20261001g" defer></script>
<script src="/static/project.js?v=20261001h" defer></script>
{% endblock %}
+15 -12
View File
@@ -2167,38 +2167,41 @@ html.pj-goal-selecting, html.pj-goal-selecting * { user-select: none !important;
════════════════════════════════════════════════════════════ */
.pj-meet-pane { flex: 1 1 auto; min-height: 0; overflow: auto; }
.pj-meet-title { display: flex; align-items: center; gap: 8px; }
.pj-meet-title h2 { margin: 0 6px 0 0; }
.pj-meet-title h2 { margin: 0 6px 0 0; font-size: 16px; font-weight: 700; } /* .pj-section-head h2 와 같게 */
.pj-meet-back { display: inline-flex; color: var(--pj-ink-soft); border-radius: 6px; padding: 2px; }
.pj-meet-back:hover { background: #f1f2f4; color: var(--pj-ink); }
.pj-goal-head-acts .pj-btn .material-symbols-outlined { font-size: 17px; vertical-align: -3px; }
/* 주차 탭(왼쪽) + 작은 달력(오른쪽) */
.pj-meet-top { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 14px; }
.pj-meet-weeks { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding-top: 9px; } /* "이번 주" 꼬리표 자리 */
/* 머리 — 왼쪽: 제목·인쇄·삭제 + 주차 탭 / 오른쪽 위: 작은 달력(90% 크기) */
.pj-meet-headgrid { display: flex; align-items: flex-start; gap: 16px; margin: 8px 0 12px; }
.pj-meet-headleft { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pj-meet-title { flex-wrap: wrap; }
.pj-meet-title-acts { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.pj-meet-title-acts .material-symbols-outlined { font-size: 16px; margin-right: 3px; }
.pj-meet-weeks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding-top: 9px; } /* "이번 주" 꼬리표 자리 */
.pj-meet-cal {
flex: 0 0 auto; width: 236px; padding: 8px 12px 6px; border: 1px solid var(--pj-border); border-radius: 12px; background: #fff;
flex: 0 0 auto; width: 212px; padding: 7px 10px 5px; border: 1px solid var(--pj-border); border-radius: 11px; background: #fff;
}
.pj-meet-cal-head { font-size: 12.5px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.pj-meet-cal-head { font-size: 11.5px; font-weight: 800; text-align: center; margin-bottom: 3px; }
.pj-meet-cal-wd, .pj-meet-cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.pj-meet-cal-wd span { font-size: 10.5px; font-weight: 700; color: var(--pj-ink-soft); text-align: center; padding: 2px 0; }
.pj-meet-cal-wd span { font-size: 9.5px; font-weight: 700; color: var(--pj-ink-soft); text-align: center; padding: 2px 0; }
.pj-meet-cal-row {
position: relative; margin: 1px 0; border-radius: 8px; color: var(--pj-ink); text-decoration: none; cursor: pointer;
position: relative; margin: 1px 0; border-radius: 7px; color: var(--pj-ink); text-decoration: none; cursor: pointer;
}
.pj-meet-cal-row:hover { background: #f3f4f6; }
/* 보고 있는 주 = 영역 표시 */
.pj-meet-cal-row.is-on { background: var(--pj-accent-tint); box-shadow: inset 0 0 0 1.5px var(--pj-accent); }
.pj-meet-cal-d { height: 24px; line-height: 24px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.pj-meet-cal-d { height: 22px; line-height: 22px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.pj-meet-cal-d.is-sat { color: #2563eb; }
.pj-meet-cal-d.is-sun { color: #dc2626; }
.pj-meet-cal-d.is-out { opacity: .35; }
.pj-meet-cal-d.is-today { position: relative; color: #fff; font-weight: 800; }
.pj-meet-cal-d.is-today { position: relative; color: #fff; font-weight: 800; z-index: 0; }
.pj-meet-cal-d.is-today::before {
content: ""; position: absolute; inset: 1px 3px; border-radius: 999px; background: var(--pj-accent); z-index: -1;
}
.pj-meet-cal-d.is-today { z-index: 0; }
.pj-meet-cal-row.is-on .pj-meet-cal-d { font-weight: 700; }
.pj-meet-cal-dot { position: absolute; left: -8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #34a853; }
@media (max-width: 900px) { .pj-meet-top { flex-direction: column; } .pj-meet-cal { align-self: flex-end; } }
@media (max-width: 900px) { .pj-meet-headgrid { flex-direction: column; } .pj-meet-cal { align-self: flex-end; } }
@media print { .pj-meet-cal { display: none !important; } }
.pj-meet-week {
position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 104px; padding: 7px 12px;
+7 -6
View File
@@ -8637,17 +8637,18 @@
// ── 회의록 매출 자료 갱신 — 주차를 열면 실적 모듈 [매출 업데이트](지난주 월요일 ~ 이번 주 오늘, 백그라운드)를 한 번 더
// 돌리고, 끝나면 이 화면을 서버에서 다시 그려 숫자 칸만 바꿔 끼운다(입력 중인 칸·저장 안 된 글은 건드리지 않는다).
// 같은 주는 10분에 한 번만 자동(새로고침마다 쇼핑몰 API 를 부르지 않게), [매출 갱신] 버튼은 언제나.
// 실적 권한이 없거나 이미 다른 업데이트가 돌면 그 상태를 보여 준다(다른 사람 업데이트면 그게 끝나길 기다려 다시 그림).
// 같은 주는 10분에 한 번만 자동(새로고침마다 쇼핑몰 API 를 부르지 않게). 다른 업데이트가 돌면 그게 끝나길 기다려 다시 그림.
// 상태 줄·[매출 갱신] 버튼은 2026-10-01 요청으로 뺐다(#pj-meet-sync 는 기간만 가진 숨은 요소) — 있으면 쓰고 없으면 조용히.
function initMeetingSync(pane) {
const box = el("pj-meet-sync");
if (!box) return;
const text = box.querySelector(".pj-meet-sync-text");
const text = box.querySelector(".pj-meet-sync-text"); // 상태 줄(없을 수 있음)
const btn = el("pj-meet-sync-btn");
const KEY = "pj_meet_sync:" + pane.dataset.week;
const THROTTLE_MS = 10 * 60 * 1000;
let running = false;
function say(msg, cls) {
if (!text) return;
text.textContent = msg;
box.classList.remove("is-running", "is-done", "is-warn");
if (cls) box.classList.add(cls);
@@ -8693,7 +8694,7 @@
} catch (_) {}
}
running = true;
btn.disabled = true;
if (btn) btn.disabled = true;
say("쇼핑몰에서 매출 자료를 다시 받는 중…", "is-running");
try {
let r = await api("POST", "/performance/api/sync", { from: box.dataset.from, to: box.dataset.to, background: true });
@@ -8716,10 +8717,10 @@
say(e.status === 403 ? "실적 권한이 없어 저장된 실적으로 보여 줍니다" : "매출 갱신 실패: " + e.message, "is-warn");
} finally {
running = false;
btn.disabled = false;
if (btn) btn.disabled = false;
}
}
btn.addEventListener("click", function () { run(true); });
if (btn) btn.addEventListener("click", function () { run(true); });
run(false);
}