feat(家庭事项): 只显示未完成的事项,不按人过滤

- 修改家庭事项视图,排除已完成状态的事项
- 修改首页待处理事项查询逻辑,与家庭事项页面保持一致
- 更新家庭事项页面标题和空状态提示信息
This commit is contained in:
2026-03-08 18:14:05 +08:00
parent 0cf404de95
commit c123d03922
2 changed files with 9 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
<!-- 页面标题 -->
<div class="d-flex justify-content-between align-items-center mb-4">
<h2 class="mb-0">
<i class="bi bi-list-check me-2 text-warning"></i>家庭事项
<i class="bi bi-list-check me-2 text-warning"></i>家庭事项 <small class="text-muted fs-5">(未完成)</small>
</h2>
<div>
<a href="{% url 'add_family_task' %}" class="btn btn-primary">
@@ -79,9 +79,9 @@
</div>
{% else %}
<div class="text-center py-5">
<i class="bi bi-inbox text-muted" style="font-size: 5rem;"></i>
<h5 class="text-muted mt-3">还没有家庭事项</h5>
<p class="text-muted">点击上方按钮添加您的第一条家庭事项</p>
<i class="bi bi-check-all text-success" style="font-size: 5rem;"></i>
<h5 class="text-muted mt-3">太棒了!没有未完成的家庭事项</h5>
<p class="text-muted">所有家庭事项都已完成,可以添加新的家庭事项</p>
<a href="{% url 'add_family_task' %}" class="btn btn-primary">
<i class="bi bi-plus-lg me-1"></i>添加家庭事项
</a>