fix(登录页、周报、绩效下签): 修复工作报表日期格式化和类型安全问题
- 移除了未使用的文件夹ZIP图标类型定义 - 添加了formatWeeklyPeriodLabel函数用于周报期间标签格式化 - 改进了日期范围计算逻辑并增加了类型安全检查 - 隐藏了登录页面的版权页脚以优化界面显示 - 修复了绩效签核对话框中的文本描述问题 - 在API响应中增加了对报表开始和结束日期的规范化处理
This commit is contained in:
@@ -287,6 +287,8 @@ function normalizeWeeklyReport(response: WeeklyReportResponse): Api.WorkReport.W
|
||||
allowEdit: normalizeBooleanFlag(response.allowEdit),
|
||||
terminal: normalizeBooleanFlag(response.terminal),
|
||||
isBusinessTrip: normalizeBooleanFlag(response.isBusinessTrip),
|
||||
periodStartDate: normalizeDateText(response.periodStartDate) ?? '',
|
||||
periodEndDate: normalizeDateText(response.periodEndDate) ?? '',
|
||||
totalWorkHours: normalizeReportTotalWorkHours(response.totalWorkHours, fallbackTotalWorkHours),
|
||||
submitTime: response.submitTime ?? null,
|
||||
reviewItems: response.reviewItems?.map(normalizeReviewItem) ?? [],
|
||||
|
||||
Reference in New Issue
Block a user