feat(project): rename meeting columns and drop rate/evaluation
Headers: 주요 업무 / 결과 / 전주 목표 / 정량 목표. The achievement-rate and evaluation columns are removed from the weekly meeting table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-12
@@ -2607,8 +2607,6 @@ html.pj-goal-selecting, html.pj-goal-selecting * { user-select: none !important;
|
||||
.pj-meet-w-sec { width: 80px; }
|
||||
.pj-meet-w-label { width: 160px; }
|
||||
.pj-meet-w-amt { width: 122px; }
|
||||
.pj-meet-w-rate { width: 76px; }
|
||||
.pj-meet-w-eval { width: 88px; }
|
||||
.pj-meet-sec > tr > th, .pj-meet-sec > tr > td:not(.is-prev) { background: var(--goal-bg, #fff); border-color: rgba(0, 0, 0, .07); }
|
||||
.pj-meet-sec > tr > td.is-prev { background: #fafbfc; }
|
||||
.pj-meet-sec > tr:first-child > * { border-top: 1px solid rgba(0, 0, 0, .12); }
|
||||
@@ -2638,7 +2636,7 @@ textarea.pj-meet-text:focus { outline: none; }
|
||||
textarea.pj-meet-text { min-height: calc(var(--pj-text-leading) + 12px); }
|
||||
.pj-meet-notes textarea:focus { outline: 2px solid var(--pj-accent); outline-offset: -2px; background: rgba(255, 255, 255, .8); }
|
||||
/* 입력 중인 칸 — 칸 전체(td) 테두리 */
|
||||
.pj-meet-table td:focus-within:not(.pj-meet-c-eval) {
|
||||
.pj-meet-table td:focus-within {
|
||||
box-shadow: inset 0 0 0 2px var(--pj-accent);
|
||||
background-image: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8));
|
||||
}
|
||||
@@ -2651,14 +2649,6 @@ input.pj-meet-amount {
|
||||
input.pj-meet-amount:focus { outline: none; background: transparent; }
|
||||
.pj-meet-kpi input.pj-meet-amount:focus { outline: 2px solid var(--pj-accent); outline-offset: -1px; }
|
||||
input.pj-meet-amount::placeholder { color: rgba(0, 0, 0, .28); }
|
||||
.pj-meet-c-rate { text-align: right; vertical-align: top !important; padding: 6px !important; font-weight: 700; }
|
||||
.pj-meet-c-rate .is-good { color: #1f8a4c; }
|
||||
.pj-meet-c-rate .is-low { color: #c2410c; }
|
||||
.pj-meet-c-eval { vertical-align: top !important; text-align: center; padding: 6px 0 !important; }
|
||||
select.pj-meet-eval { width: calc(100% - 8px); height: var(--pj-text-leading); margin: 0 4px; border: 1px solid var(--pj-border); border-radius: 6px; background: #fff; font: inherit; }
|
||||
select.pj-meet-eval[data-v="done"], .pj-meet-eval-ro[data-v="done"] { color: #1f8a4c; font-weight: 700; }
|
||||
select.pj-meet-eval[data-v="partial"], .pj-meet-eval-ro[data-v="partial"] { color: #b45309; font-weight: 700; }
|
||||
select.pj-meet-eval[data-v="miss"], .pj-meet-eval-ro[data-v="miss"] { color: #c22b10; font-weight: 700; }
|
||||
.pj-meet-table td.is-none { vertical-align: top; padding: 6px 8px; font-size: 12px; }
|
||||
.pj-meet-table tbody td, .pj-meet-table tbody th { position: relative; }
|
||||
.pj-meet-colresize { position: absolute; top: 0; right: -3px; bottom: 0; width: 6px; z-index: 5; cursor: col-resize; }
|
||||
@@ -2681,7 +2671,7 @@ select.pj-meet-eval[data-v="miss"], .pj-meet-eval-ro[data-v="miss"] { color: #c2
|
||||
.pj-meet-goalbtn, .pj-meet-title .pj-btn { display: none !important; }
|
||||
.pj-meet-pane { overflow: visible; }
|
||||
.pj-meet-table thead th { position: static; }
|
||||
input.pj-meet-amount, select.pj-meet-eval { border: none; appearance: none; }
|
||||
input.pj-meet-amount { border: none; appearance: none; }
|
||||
}
|
||||
|
||||
/* 영역 색 고르기 팝업(body 에 붙음) */
|
||||
|
||||
+8
-33
@@ -9886,13 +9886,9 @@
|
||||
document.querySelectorAll("#pj-meet-table tr[data-item]").forEach(function (tr) {
|
||||
const ftr = doc.querySelector('#pj-meet-table tr[data-item="' + tr.dataset.item + '"]');
|
||||
if (!ftr) return;
|
||||
const manual = !!tr.querySelector(".pj-meet-c-result input"); // 직접 입력 결과 — 달성률도 이 화면이 계산
|
||||
[".pj-meet-c-result", "[data-rate]"].forEach(function (sel) {
|
||||
const a = tr.querySelector(sel), b = ftr.querySelector(sel);
|
||||
if (!a || !b) return;
|
||||
if (manual) return;
|
||||
a.innerHTML = b.innerHTML;
|
||||
});
|
||||
if (tr.querySelector(".pj-meet-c-result input")) return; // 직접 입력 칸 — 이 화면 값 그대로
|
||||
const a = tr.querySelector(".pj-meet-c-result"), b = ftr.querySelector(".pj-meet-c-result");
|
||||
if (a && b) a.innerHTML = b.innerHTML;
|
||||
});
|
||||
const box = el("pj-meet-sync"), fbox = doc.getElementById("pj-meet-sync");
|
||||
if (box && fbox) box.dataset.fresh = fbox.dataset.fresh || ""; // 서버가 기록한 마지막 갱신 성공 시각
|
||||
@@ -9985,10 +9981,10 @@
|
||||
}
|
||||
|
||||
// ── 주간 회의록(/project/goals/{연도}/meetings/{월}?week=) — 관리자만 입력, 칸마다 바로 저장.
|
||||
// · 글(이번주 할 일·메모): 0.8초 멈춤·칸 떠남·페이지 떠남에 저장. 금액·참석자: 칸 떠남·Enter 에 저장.
|
||||
// · 지난주 결과·평가는 지난 회의록의 같은 줄(tr data-prev)에 저장하고 달성률을 바로 다시 그린다.
|
||||
// · 글(주요 업무·메모): 0.8초 멈춤·칸 떠남·페이지 떠남에 저장. 금액·참석자: 칸 떠남·Enter 에 저장.
|
||||
// · 지난주 결과 금액은 지난 회의록의 같은 줄(tr data-prev)에 저장한다.
|
||||
// · 줄 추가·순서·삭제·구역 추가는 저장 뒤 새로고침(스크롤 위치 되살림). 메뉴는 body 에 붙는다.
|
||||
// ── 회의록 표 — 이번주(2칸) ↔ 지난주 리뷰(5칸) 순서 바꾸기. 줄마다 is-this / is-prev 칸 묶음을 통째로 옮긴다
|
||||
// ── 회의록 표 — 이번주(2칸) ↔ 지난주 리뷰(3칸) 순서 바꾸기. 줄마다 is-this / is-prev 칸 묶음을 통째로 옮긴다
|
||||
// (colgroup·머리 두 줄·구역 줄 모두). 보는 사람마다 브라우저에 기억 — localStorage pj_meet_order:{로그인 이메일} = "prev"(지난주 먼저).
|
||||
// 다시 그리기(repaintMeeting)는 칸을 선택자로 찾으므로 순서와 무관.
|
||||
function initMeetOrder() {
|
||||
@@ -10082,7 +10078,7 @@
|
||||
|
||||
// ── 금액 칸(금주 목표 · 줄 정량 목표 · 지난주 결과) — Enter·칸 떠남에 저장(createFieldSaver: 같은 칸 요청 차례대로).
|
||||
// 서버 확정값(원 정수)을 쉼표 표기로 칸에 넣는 건 요청 뒤 입력이 그대로일 때만 — 그 사이 다시 입력한 초안은 덮지 않는다.
|
||||
// 실패해도 입력값은 그대로(빨간 테두리), Esc = 저장된 값으로. 달성률은 서버 확정값으로 바로 다시 계산.
|
||||
// 실패해도 입력값은 그대로(빨간 테두리), Esc = 저장된 값으로.
|
||||
// 금주 목표 저장 뒤 머리 숫자는 페이지 새로고침 없이 숫자 칸만 다시 그린다(meetRepaint — 다른 칸의 저장 안 된 글 보존).
|
||||
const tgt = el("pj-meet-target");
|
||||
const amtSaver = createFieldSaver({
|
||||
@@ -10106,7 +10102,6 @@
|
||||
} else {
|
||||
const tr = inp.closest("tr");
|
||||
confirmed = res.item[inp.dataset.field];
|
||||
if (inp.dataset.field === "result_amount") paintRate(tr, res.item.result_amount);
|
||||
if (inp.dataset.field === "target_amount") tr.dataset.targetAmount = confirmed == null ? "" : String(confirmed);
|
||||
}
|
||||
if (!same || confirmed === undefined) return undefined; // 요청 뒤 새로 입력 중 — 그 초안을 그대로
|
||||
@@ -10293,28 +10288,8 @@
|
||||
const selection = window.getSelection(); selection.removeAllRanges(); selection.addRange(range);
|
||||
}
|
||||
});
|
||||
// ── 달성률(지난주 결과 ÷ 지난주 목표) ──
|
||||
function paintRate(tr, result) {
|
||||
const td = tr.querySelector("[data-rate]");
|
||||
if (!td) return;
|
||||
const target = Number(tr.dataset.prevTarget || 0);
|
||||
if (result == null || !target) { td.innerHTML = ""; return; }
|
||||
const r = Math.round(result / target * 1000) / 10;
|
||||
td.innerHTML = '<span class="' + (r >= 100 ? "is-good" : "is-low") + '">' + r.toLocaleString("ko-KR") + "%</span>";
|
||||
}
|
||||
// ── 금액 칸 — 이번주 정량 목표(이 줄) · 지난주 결과(7일 전 주 회의록의 같은 줄) — amtSaver(위) ──
|
||||
table.querySelectorAll("input.pj-meet-amount").forEach(bindAmount);
|
||||
// ── 평가(지난주 줄) ──
|
||||
table.querySelectorAll("select.pj-meet-eval").forEach(function (selEl) {
|
||||
selEl.addEventListener("change", async function () {
|
||||
const tr = selEl.closest("tr");
|
||||
try {
|
||||
await api("PUT", itemUrl(tr.dataset.prev), { status: selEl.value });
|
||||
selEl.dataset.v = selEl.value;
|
||||
flashSaved(selEl.closest("td"));
|
||||
} catch (e) { selEl.value = selEl.dataset.v || ""; showToast("저장 실패: " + e.message, "error"); }
|
||||
});
|
||||
});
|
||||
|
||||
// ── 줄 이름 — 눌러서 그 자리에서 수정(Enter·칸 떠남 = 저장, Esc = 취소) ──
|
||||
table.addEventListener("click", function (e) {
|
||||
@@ -10381,7 +10356,7 @@
|
||||
null,
|
||||
{ label: "줄 삭제", danger: true, icon: menuIcon("delete"), onClick: function () {
|
||||
run(async function () {
|
||||
const ok = await confirm("'" + (label.trim() || "이 줄") + "' 줄을 삭제할까요? 이번주 할 일·금액도 함께 삭제됩니다.",
|
||||
const ok = await confirm("'" + (label.trim() || "이 줄") + "' 줄을 삭제할까요? 주요 업무·금액도 함께 삭제됩니다.",
|
||||
{ okText: "삭제", cancelText: "취소" });
|
||||
if (!ok) return false;
|
||||
await api("DELETE", itemUrl(id));
|
||||
|
||||
Reference in New Issue
Block a user