feat(project): 회의록 업무 등록 — 세부 업무 줄에 상위 업무 섹션 표시 · 제목 열을 업무 오른쪽으로
- 서버 parent_stage_name(_mt_select LATERAL 재귀 — 세부의 세부면 섹션 있는 맨 위 업무), 화면은 회색 고칠 수 없는 섹션 - 열 순서 담당자·프로젝트·섹션·업무·제목, 제목 Enter = [적용]으로 포커스, 도움말 갱신 - 테스트: 실제 PG parent_stage_name, goals_meeting_ui [2g4]·[2g5] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2756,11 +2756,12 @@ html.pj-goal-selecting, html.pj-goal-selecting * { user-select: none !important;
|
||||
.pj-ctxmenu-ic .pj-meet-quick-face { width: 20px; height: 20px; }
|
||||
.pj-member-pick.is-owner { opacity: .75; }
|
||||
/* 제목·담당자·프로젝트·섹션·작업(세부 작업으로 넣을 작업)·버튼 */
|
||||
.pj-meet-quick-table th:nth-child(1) { width: 24%; }
|
||||
/* 열 = 담당자 · 프로젝트 · 섹션 · 업무 · 제목 · 버튼(2026-10-27 제목을 업무 오른쪽으로) */
|
||||
.pj-meet-quick-table th:nth-child(1) { width: 15%; }
|
||||
.pj-meet-quick-table th:nth-child(2) { width: 15%; }
|
||||
.pj-meet-quick-table th:nth-child(3) { width: 15%; }
|
||||
.pj-meet-quick-table th:nth-child(4) { width: 12%; }
|
||||
.pj-meet-quick-table th:nth-child(5) { width: 15%; }
|
||||
.pj-meet-quick-table th:nth-child(3) { width: 12%; }
|
||||
.pj-meet-quick-table th:nth-child(4) { width: 15%; }
|
||||
.pj-meet-quick-table th:nth-child(5) { width: 24%; }
|
||||
.pj-meet-quick-table th:nth-child(6) { width: 19%; }
|
||||
.pj-meet-quick-acts { white-space: nowrap; text-align: right; }
|
||||
.pj-meet-quick-del {
|
||||
|
||||
+17
-9
@@ -12140,13 +12140,14 @@
|
||||
};
|
||||
const blank = function () {
|
||||
return { id: null, title: "", assignee: "", projectId: null, projectName: "", stageId: null, stageName: "",
|
||||
parentTaskId: null, parentTaskTitle: "", taskId: null, registered: false, visible: true, taskExists: true, chain: null,
|
||||
unsaved: new Set(), err: "" };
|
||||
parentTaskId: null, parentTaskTitle: "", parentStageName: "", taskId: null, registered: false, visible: true, taskExists: true,
|
||||
chain: null, unsaved: new Set(), err: "" };
|
||||
};
|
||||
function fromServer(t) {
|
||||
return { id: t.id, title: t.title || "", assignee: t.assignee_email || "", projectId: t.project_id,
|
||||
projectName: t.project_name || "", stageId: t.stage_id, stageName: t.stage_name || "",
|
||||
parentTaskId: t.parent_task_id || null, parentTaskTitle: t.parent_task_title || "", taskId: t.task_id,
|
||||
parentTaskId: t.parent_task_id || null, parentTaskTitle: t.parent_task_title || "", parentStageName: t.parent_stage_name || "",
|
||||
taskId: t.task_id,
|
||||
registered: !!t.registered, visible: t.visible !== false, taskExists: t.task_exists !== false, chain: null,
|
||||
unsaved: new Set(), err: "" };
|
||||
}
|
||||
@@ -12314,16 +12315,20 @@
|
||||
const cls = [r.registered ? "is-done" : (r.err && r.unsaved.size ? "is-unsaved" : ""),
|
||||
openable ? "is-openable" : "", depth ? "is-sub" : "", openable && panelOpen() && panelTask === r.taskId ? "is-panel-selected" : ""]
|
||||
.filter(Boolean).join(" ");
|
||||
// 열 = 담당자 · 프로젝트 · 섹션 · 업무 · 제목(2026-10-27 제목을 업무 오른쪽으로) · 버튼
|
||||
return '<tr data-i="' + i + '"' + (cls ? ' class="' + cls + '"' : "") + (depth ? ' style="--pj-quick-depth:' + depth + '"' : "") + ">" +
|
||||
'<td class="pj-meet-quick-title">' + titleCell + "</td>" +
|
||||
"<td>" + (r.assignee
|
||||
? '<button type="button" class="pj-meet-pick-cell is-person" data-pick="assignee"' + (ro ? " disabled" : "") + ">" +
|
||||
faceHtml(r.assignee) + "<span>" + escapeHtml(nameOf(r.assignee)) + "</span></button>"
|
||||
: cell("assignee", "", "담당자", ro)) + "</td>" +
|
||||
"<td>" + cell("project", r.projectName, "프로젝트", ro) + "</td>" +
|
||||
"<td>" + (r.parentTaskId ? '<span class="pj-meet-quick-inherit" title="세부 업무는 섹션이 없습니다(상위 업무를 따름)">—</span>'
|
||||
// 세부 업무 줄의 섹션 = 고른(상위) 업무의 섹션 — 바꿀 수 없음(상위 업무를 따름), 회색 글자(2026-10-27 예전엔 —)
|
||||
"<td>" + (r.parentTaskId
|
||||
? '<span class="pj-meet-quick-inherit" title="세부 업무는 상위 업무의 섹션을 따릅니다">' +
|
||||
escapeHtml(r.parentStageName || r.stageName || "—") + "</span>"
|
||||
: cell("stage", r.stageName, "섹션", ro)) + "</td>" +
|
||||
"<td>" + taskCell + "</td>" +
|
||||
'<td class="pj-meet-quick-title">' + titleCell + "</td>" +
|
||||
'<td class="pj-meet-quick-acts"><div class="pj-meet-quick-actbox">' + acts + "</div></td></tr>";
|
||||
}).join("");
|
||||
}
|
||||
@@ -12413,10 +12418,10 @@
|
||||
const all = await tasksOf(pid);
|
||||
const list = r.stageId ? all.filter(function (t) { return t.stage_id === r.stageId; }) : all;
|
||||
const set = function (t) {
|
||||
r.parentTaskId = t ? t.id : null; r.parentTaskTitle = t ? t.title : "";
|
||||
r.parentTaskId = t ? t.id : null; r.parentTaskTitle = t ? t.title : ""; r.parentStageName = "";
|
||||
if (t && t.stage_id) {
|
||||
const st = (stageCache[pid] || []).find(function (x) { return x.id === t.stage_id; });
|
||||
if (st) { r.stageId = st.id; r.stageName = st.name; }
|
||||
if (st) { r.stageId = st.id; r.stageName = st.name; r.parentStageName = st.name; }
|
||||
}
|
||||
render(); persist(r, { parent_task_id: r.parentTaskId, stage_id: r.stageId });
|
||||
};
|
||||
@@ -12431,7 +12436,8 @@
|
||||
function addSubRow(parent) {
|
||||
const b = blank();
|
||||
Object.assign(b, { projectId: parent.projectId, projectName: parent.projectName, stageId: parent.stageId,
|
||||
stageName: parent.stageName, parentTaskId: parent.taskId, parentTaskTitle: parent.title, subDraft: true });
|
||||
stageName: parent.stageName, parentTaskId: parent.taskId, parentTaskTitle: parent.title, subDraft: true,
|
||||
parentStageName: parent.parentTaskId ? (parent.parentStageName || parent.stageName) : parent.stageName });
|
||||
rows.push(b); render();
|
||||
const inp = tbody.querySelector('tr[data-i="' + rows.indexOf(b) + '"] input[data-field="title"]');
|
||||
if (inp) inp.focus();
|
||||
@@ -12575,9 +12581,11 @@
|
||||
tbody.addEventListener("keydown", function (e) {
|
||||
const inp = e.target.closest("input[data-field=title]");
|
||||
if (inp && !inp.readOnly && e.key === "Enter" && !isImeEnter(e)) {
|
||||
// 제목은 이제 맨 뒤 칸(2026-10-27) — Enter = 저장하고 [적용]으로(예전엔 다음 칸 담당자 목록을 열었다)
|
||||
e.preventDefault();
|
||||
flushTitle(rowOf(inp));
|
||||
inp.closest("tr").querySelector('[data-pick="assignee"]').click();
|
||||
const ap = inp.closest("tr").querySelector('[data-quick="apply"]');
|
||||
if (ap) ap.focus();
|
||||
}
|
||||
});
|
||||
tbody.addEventListener("click", function (e) {
|
||||
|
||||
Reference in New Issue
Block a user