feat: 添加工作任务管理功能

- 新增 Task 模型(状态、优先级、进展百分比)
- 任务 API(列表、统计、进展更新、完成标记)
- 前端任务板块(统计卡片 + 任务列表)
- 进展可视化(进度条 + 进展记录)
This commit is contained in:
maoshen
2026-04-14 10:16:14 +00:00
parent b273789ae8
commit b680c573db
7 changed files with 292 additions and 17 deletions

13
makemigrations_tasks.py Normal file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env python3
import os
import sys
import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'diary_system.settings')
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'backend'))
django.setup()
from django.core.management import call_command
call_command('makemigrations', 'diary')
call_command('migrate')
print("✅ 数据库迁移完成")