feat(project): 좌측 트리를 클라이언트 렌더 → 업무 추가/수정/삭제 즉시 반영
- 사이드 프로젝트 트리를 tasks 로부터 JS 로 재렌더(renderTree) - refreshActiveView 에서 트리도 갱신 → 새로고침 없이 좌측에 바로 표시 - 새 업무 추가 시 해당 프로젝트 자동 펼침 - projectsMeta 에 created_by 추가(트리 삭제 권한용) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -418,6 +418,7 @@ async def project_page(request: Request, project_id: int) -> HTMLResponse:
|
||||
"color": p.get("color") or "#4573d2",
|
||||
"start_date": p.get("start_date"),
|
||||
"due_date": p.get("due_date"),
|
||||
"created_by": p.get("created_by") or "",
|
||||
})
|
||||
nav_projects.append({
|
||||
"id": p["id"],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260626a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260626b" />
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
{% endblock %}
|
||||
|
||||
@@ -167,5 +167,5 @@
|
||||
<script>
|
||||
window.PJ_COLORS = {{ ["#4573d2","#37a3a3","#62a420","#e8a33d","#e8384f","#aa62e3","#f06a6a","#5a6772"] | tojson }};
|
||||
</script>
|
||||
<script src="/static/project.js?v=20260626a" defer></script>
|
||||
<script src="/static/project.js?v=20260626b" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "erp_base.html" %}
|
||||
|
||||
{% block head_extra %}
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260626a" />
|
||||
<link rel="stylesheet" href="/static/project.css?v=20260626b" />
|
||||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||
<!-- 타임라인 vis-timeline — self-host -->
|
||||
@@ -37,7 +37,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if nav_projects %}
|
||||
<ul class="pj-tree">
|
||||
<ul class="pj-tree" id="pj-tree-root">
|
||||
{% for p in nav_projects %}
|
||||
<li class="pj-tree-li" data-id="{{ p.id }}">
|
||||
<div class="pj-tree-row {% if p.id == project.id %}is-active{% endif %}">
|
||||
@@ -291,5 +291,5 @@
|
||||
</script>
|
||||
|
||||
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
||||
<script src="/static/project.js?v=20260626a" defer></script>
|
||||
<script src="/static/project.js?v=20260626b" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user