feat(duty): make duty time range a single-select dict like work plans

Add duty_time_range dictionary with day/night presets, parse typed ranges on ensure, and replace time pickers with allow-create select in the schedule dialog.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-20 21:58:18 +08:00
1 parent 8d9f0b259e
commit b9ff9c9d67
9 files changed
+319 -70

No files matched your search

+2 -1
View File
@@ -91,8 +91,9 @@ export function fetchDutyUserOptions() {
}
export function ensureDutyDict(data: {
dictType: 'duty_shift_type' | 'duty_work_plan'
dictType: 'duty_shift_type' | 'duty_work_plan' | 'duty_time_range'
label: string
preferredValue?: string
}) {
return request.post<{ label: string; value: string }>({
url: '/web/admin/duty/dict/ensure',