- Organization Management: Visualization tree, Import from CSV.
- Employee Management: List view, filtering, Import from CSV.
- Ensure
.envfile is present in the root directory. - Run
docker-compose up -d --build. - Access the application at
http://localhost.
cd backend
source venv/bin/activate
uvicorn main:app --reload --port 8003npm install
npm run devThe system supports importing Organization and Employee data from CSV files.
- Place
组织架构.csvand导出的员工信息数据.csvin the root directory (mapped in Docker or local). - Use the "Import" buttons in the PC interface.
To reset the database and import initial data (including departments and employees):
# From project root
python backend/init_system.pyThis script will:
- Drop all existing tables.
- Recreate the database schema.
- Import departments from
组织架构.csv. - Import employees from
导出的员工信息数据.csv.
Warning: This will erase all existing data!