Compare commits

...

2 Commits

Author SHA1 Message Date
3af7812a3f merge: 合并前端代码审查修复
包含前端TypeScript类型完善、日期格式化修复、字典使用优化等修复。

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-15 20:16:10 +08:00
25d7ff7371 docs: 更新进度记录,添加代码审查修复信息 2026-01-15 20:16:01 +08:00
2 changed files with 34 additions and 4 deletions

View File

@ -199,6 +199,13 @@ MySQL Database
- ✅ Batch delete operations
- ✅ Menu permissions SQL scripts
**Recent Updates (2026-01-15)**:
- Code review completed for questionnaire modules (Question, Questionnaire, QuestionnaireRecord)
- Backend fixes: VO field synchronization, batch update optimization, empty validation
- Frontend fixes: TypeScript type definitions, date formatting standardization
- Added enum classes: QuestionnaireStatusEnum, QuestionnaireRecordStatusEnum, QuestionnaireRecordPassStatusEnum
- Added database migration scripts for new columns
## Database Configuration
**Development Database**:
@ -225,11 +232,33 @@ Password: (configured in application-local.yaml)
**Mock Settings** (application-local.yaml):
```yaml
yudao:
mock:
enable: true
secret: emsoft
security:
mock-enable: true # 是否开启 Token 的模拟机制(生产环境必须关闭)
mock-secret: emsoft # Token 模拟机制的 Token 前缀
```
**使用场景**:方便使用 Postman、Swagger 调试接口时模拟 Token 认证,无需真实登录。
**多租户调用方式**
```bash
# 格式Authorization: Bearer {mockSecret}{用户ID}
# 必须传递 tenant-id 请求头
curl -X GET "{{url}}" \
-H "Authorization: Bearer emsoft1" \
-H "tenant-id: 1"
```
**说明**
| 参数 | 说明 | 示例值 |
|------|------|--------|
| `Authorization` | mock token格式 `{mockSecret}{userId}` | `Bearer emsoft1` 表示用户 ID 为 1 |
| `tenant-id` | 租户 ID多租户场景必传 | `1` |
**示例**
- 模拟用户 ID=1租户 ID=1`Authorization: Bearer emsoft1` + `tenant-id: 1`
- 模拟用户 ID=2租户 ID=1`Authorization: Bearer emsoft2` + `tenant-id: 1`
### Frontend Configuration
**Location**: `frontend/`
@ -424,3 +453,4 @@ export const {Module}Api = {
**Debug Mode**:
- Backend: Add `--debug` to mvn command for remote debugging on port 5005
- Frontend: Browser dev tools + Vue DevTools browser extension

@ -1 +1 @@
Subproject commit 1ebf700cf2f689ee629596439b3477cf37120514
Subproject commit fdc6bf58e0e45d1f4673b9a2fc40d1dca24bfef4