Commit Graph

9 Commits

Author SHA1 Message Date
sudomarcma 14d412544e feat: Implement worker authentication and device validation in backend
- Added login route with JWT token generation and device validation for non-manager roles.
- Implemented clocking functionality with geofence validation and distance calculation.
- Created routes for managing workers, including password change and device registration.
- Added security status and app blacklist retrieval endpoints.

feat: Develop Geofence Management component

- Created a Vue component for managing geofences with map integration using Leaflet.
- Implemented functionality to draw, save, activate/deactivate, and delete geofences.
- Added UI for displaying existing geofences in a table format.

feat: Introduce Kill Switch Management component

- Developed a calendar-based UI for managing enabled/disabled dates.
- Implemented functionality to apply or discard changes to the work schedule.
- Added visual indicators for pending changes in the calendar.

feat: Create Warning Reporting component

- Implemented a reporting interface for failed clock records with search and filter options.
- Added detail modal for viewing specific failed record details.
- Implemented sorting functionality for the records table.
2025-07-16 17:57:25 +08:00
sudomarcma 3aa4897bc5 feat(i18n): 添加多语言支持并实现国际化功能 2025-07-02 13:43:16 +08:00
sudomarcma d322404007 feat(地理围栏): 添加地理围栏功能并优化打卡记录处理
- 添加@turf/turf依赖用于地理围栏计算
- 实现地理围栏检查,拒绝围栏外的打卡并记录失败事件
- 过滤掉失败事件在工人历史记录中显示
- 修复地图链接中的错误语法
- 移除开发提示和HTTPS相关代码
- 优化视图按钮样式和事件类型颜色标识
2025-06-30 16:03:12 +08:00
sudomarcma 0676d64af3 feat: 添加密码修改功能并集成Tailwind CSS
refactor: 重构UI组件使用Tailwind CSS
feat(router): 添加密码修改路由
feat(views): 实现密码修改页面
feat(api): 添加密码修改API端点
style: 移除旧CSS文件并配置Tailwind
chore: 添加Tailwind CSS相关依赖
2025-06-26 17:16:57 +08:00
sudomarcma e563f17283 feat(安全): 实现JWT认证和HTTPS支持
- 添加JWT认证中间件保护API端点
- 在登录流程中使用bcrypt哈希密码和JWT令牌
- 配置HTTPS服务器使用自签名证书
- 更新前端API调用以包含认证令牌
2025-06-26 10:41:23 +08:00
sudomarcma 4a04cfe15b feat: 重构前端界面并优化API集成
- 添加vite环境类型定义文件
- 优化考勤记录视图
- 修复后端时间戳处理问题
- 重构管理仪表盘响应式布局
- 改进工人历史视图卡片式布局
- 优化人员管理组件表格响应式
- 增强二维码管理组件移动端适配
- 重构考勤报表组件添加全选功能
2025-06-17 17:09:04 +08:00
sudomarcma 6b2b95ce8b doc: 更新 README 2025-06-16 17:26:59 +08:00
sudomarcma cac82a2c36 feat(考勤管理): 新增考勤记录查看、人员管理和报表生成功能
添加考勤记录查看页面,支持按日期筛选和展示员工考勤数据
实现人员管理组件,包含添加员工、搜索分页和删除功能
新增考勤报表生成组件,支持多员工筛选和导出CSV
2025-06-13 18:24:58 +08:00
sudomarcma f839e9d6b2 init 2025-06-12 13:50:51 +08:00