Commit Graph

150 Commits

Author SHA1 Message Date
Cheng Zhou a17f4cc522 完善项目级权限与项目管理入口
- 新增项目成员候选用户接口,避免 PM 读取全局用户列表
- 按项目角色和权限矩阵控制项目管理、成员、中心与审计入口
- 合并侧边栏管理后台入口,统一从项目管理进入成员等模块
- 加强成员管理安全约束,禁止 PM 修改自己、系统管理员或更高权限角色
- 修复多项目角色缓存串用问题,并补充前后端回归测试
2026-05-13 14:16:15 +08:00
Cheng Zhou ab1975d3c6 登录注册:优化协议弹窗与PM后台落点
授权项目负责人登录后,若当前项目具备项目成员、中心管理或审计导出读取权限,优先进入对应管理后台页面,避免仍停留在我的工作台。

抽取登录协议为共享内容模块,注册页新增服务条款和隐私政策弹窗,并在注册成功后展示待管理员审核提示。

补充路由、登录页和注册页静态回归测试,覆盖 PM 管理后台默认落点和协议弹窗行为。
2026-05-13 11:03:46 +08:00
Cheng Zhou 89cecce6b5 权限管理:新增医学审核项目角色
新增 MEDICAL_REVIEW 项目角色,界面显示为医学审核,并通过 Alembic 迁移扩展 user_role 枚举。

为医学审核配置独立默认权限:项目总览、参与者、风险问题、监查稽查、FAQ、共享库按医学审核职责开放,不再复制 PV 默认权限。

同步前后端类型、项目成员角色下拉、权限矩阵展示、文件分发角色兜底和用户协议文案,并补充权限矩阵回归测试。
2026-05-13 09:25:37 +08:00
Cheng Zhou 1049599147 Merge remote-tracking branch 'origin/main' into dev 2026-05-13 08:58:09 +08:00
Cheng Zhou 939fc70532 权限管理:接入项目级权限矩阵
新增项目级角色权限矩阵,覆盖 PM、CRA、PV、IMP、QA 等项目角色,并通过迁移表持久化各业务模块的读写权限。

后端将参与者、合同费用、物资、启动、里程碑、风险问题、监查稽查、FAQ、共享库、文件版本等接口接入矩阵校验,修复审计日志导出权限和登录 502 的依赖导入问题。

前端新增权限管理页面和项目路由权限映射,按矩阵控制导航显示、直接访问拦截、操作按钮启停,并限制管理后台仅 admin 和授权 PM 可进入。

补充后端权限归一化与接口静态测试、前端路由/权限工具/权限管理页面/工作台等回归测试。
2026-05-13 08:58:03 +08:00
Cheng Zhou 77e842637d 中文:收口权限与中心/立项配置改造 2026-05-12 10:16:52 +08:00
Cheng Zhou 6e90370a5f 移除特殊费用模块 2026-05-12 10:15:18 +08:00
Cheng Zhou ad575d024c Merge branch 'dev' 2026-05-11 14:54:41 +08:00
Cheng Zhou cd7e12ce1f feat: 增加 CTMS 一键安装脚本 2026-05-11 14:51:07 +08:00
Cheng Zhou 5513ec764a merge: 同步项目配置草稿修复 2026-05-11 11:03:56 +08:00
Cheng Zhou 20d45cfdfe 修复项目配置草稿原子保存逻辑 2026-05-11 11:03:06 +08:00
Cheng Zhou 8d061a1520 兼容旧草稿避免项目信息被清空 2026-05-11 09:02:14 +08:00
Cheng Zhou f6a7a3d6ee 修复工作流表删除迁移幂等 2026-05-11 08:54:45 +08:00
Cheng Zhou 4592ff375d 修复迁移幂等并补部署检查 2026-05-11 08:45:41 +08:00
Cheng Zhou 917ab7ccf1 feat: refine subject visits and project workflows
Add early termination visit workflow with ordering, non-applicable visit handling, visit window display, and medication adherence support.

Extend monitoring visit issue template fields, site scoping, setup draft project info handling, login security UI, attachment behavior, and related tests/migrations.
2026-05-09 17:10:34 +08:00
Cheng Zhou b0f45030b0 merge: sync dev into main
# Conflicts:
#	README.md
#	frontend/src/views/ia/ProjectMilestones.vue
2026-05-08 22:22:38 +08:00
Cheng Zhou 74feca4467 feat: harden auth and study workflows
- replace plaintext login and unlock requests with RSA-OAEP/AES-GCM encrypted payloads

- add login challenge replay protection, production RSA key validation, and auth tests

- wire compose to environment-driven dev/prod settings without committing local secrets

- update setup-config smoke scripts and Postman docs for encrypted login

- add visit schedule migrations/tests and update study/subject setup workflows
2026-05-08 22:16:43 +08:00
Cheng Zhou a7bbcaa5dc fix: 优化业务表格展示与登录会话体验 2026-03-31 14:37:06 +08:00
Cheng Zhou ceda34fd1d fix: 修复筛选栏空关联告警 2026-03-31 12:16:04 +08:00
Cheng Zhou 546c0e04c9 release(main): 清理示例数据并统一空态体验 2026-03-31 11:21:27 +08:00
Cheng Zhou 4bebc64662 feat: 清理示例数据并统一空态体验 2026-03-31 11:20:57 +08:00
Cheng Zhou ec142498f4 release(main): 对齐用户接口尾斜杠路径 2026-03-31 10:08:55 +08:00
Cheng Zhou fc74d1e9a9 fix: 对齐用户接口尾斜杠路径 2026-03-31 10:08:26 +08:00
Cheng Zhou 62ef8847de release(main): 移除前端 API 环境入口 2026-03-31 09:45:17 +08:00
Cheng Zhou ba880dad9a fix: 移除前端 API 环境入口 2026-03-31 09:44:49 +08:00
Cheng Zhou fccfc60bc8 release(main): 调整 nginx 入口为 8888 端口 2026-03-31 09:35:32 +08:00
Cheng Zhou 84f865a7b0 chore: 调整 nginx 入口为 8888 端口 2026-03-31 09:34:29 +08:00
Cheng Zhou e5e97e640b release(main): 集成 nginx 同域入口恢复 2026-03-31 09:17:12 +08:00
Cheng Zhou 9535fece6c feat: 按历史痕迹恢复 nginx 同域入口 2026-03-31 09:16:41 +08:00
Cheng Zhou ada3beca8e merge: back-merge release hotfix v0.1.2 into dev 2026-03-31 08:56:01 +08:00
Cheng Zhou 38b9838d63 hotfix: 修复生产前端 API 默认地址 2026-03-31 08:52:46 +08:00
Cheng Zhou da54eef06a release(main): 移除腾讯云发布链路 2026-03-30 22:53:39 +08:00
Cheng Zhou fa96d4b6db chore: 移除 GitHub 到腾讯云的发布链路 2026-03-30 22:51:41 +08:00
Cheng Zhou 97c1fc3c32 Merge branch 'main' into dev 2026-03-30 22:17:52 +08:00
Cheng Zhou e15f3dd887 fix: use writable remote build path 2026-03-30 22:17:39 +08:00
Cheng Zhou 5677f6823a release(main): 集成 nginx 移除里程碑 2026-03-30 22:05:02 +08:00
Cheng Zhou 27ba5eabff feat: 移除仓库内 nginx 并拆分前端运行时 2026-03-30 22:04:15 +08:00
Cheng Zhou 7ccb8c20cc Merge branch 'main' into dev 2026-03-30 20:20:42 +08:00
Cheng Zhou 956c47218e feat: automate tencent private registry publishing 2026-03-30 20:15:06 +08:00
Cheng Zhou aa6cdd40e9 release(main): 清理本地配置并重组文档结构 2026-03-30 19:03:17 +08:00
Cheng Zhou 3a1415d1e1 chore: 清理本地配置并重组文档结构 2026-03-30 17:36:09 +08:00
Cheng Zhou 244c424126 docs: add branch governance policy 2026-03-30 16:59:48 +08:00
Cheng Zhou 8c5d03f1cb 移除示例项目初始化并修复前后端稳定性问题 2026-03-30 15:35:22 +08:00
Cheng Zhou a67991740e feat: 统一生产初始化流程并保护系统管理员 2026-03-27 17:26:46 +08:00
Cheng Zhou f2f856ea24 chore: productionize compose deployment 2026-03-27 16:13:28 +08:00
Cheng Zhou d8c5413b26 style: normalize CSS selector spacing 2026-03-27 15:22:48 +08:00
Cheng Zhou 8bec268a5b 优化登录页UI、新增占满布局类 2026-03-10 11:37:19 +08:00
Cheng Zhou 4c98147f3e 登录页UI及长时间未操作锁定逻辑优化 2026-03-10 10:10:58 +08:00
Cheng Zhou 7936c55f3f Merge branch 'codex/enterprise-ui-implementation' into dev 2026-03-04 17:23:20 +08:00
Cheng Zhou 8bf22dcae1 docs(ui): add enterprise refresh acceptance and release gates 2026-03-04 17:18:12 +08:00