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:
1 parent
8d9f0b259e
commit
b9ff9c9d67
9 files changed
+319
-70
No files matched your search
@@ -88,6 +88,7 @@ def ensure_duty_dict(
|
||||
dict_type=body.dictType,
|
||||
label=body.label,
|
||||
user_id=user_id,
|
||||
preferred_value=body.preferredValue,
|
||||
)
|
||||
db.commit()
|
||||
return success_response(data, message="已保存")
|
||||
|
||||
Reference in new issue
Block a user