数据库时间保存也是字符串“HH:mm:ss”格式, constants.tsx里面的valueType: ‘time’, 但是回显的时候列表上显示invalid date.
graphql commit格式
{
"courseId": "785b20c0-4265-4a9b-b6b7-2c32c211ebde",
"params": {
"weeklySchedule": [
{
"week": "MON",
"dailySchedule": [
{
"key": 1,
"startTime": "08:00:00",
"endTime": "09:00:00"
},
{
"key": 2,
"startTime": "14:00:00",
"endTime": "15:00:00"
}
]
},
{
"week": "TUE",
"dailySchedule": [
{
"key": 1,
"startTime": "09:30:00",
"endTime": "10:30:00"
},
{
"key": 2,
"startTime": "15:30:00",
"endTime": "16:30:00"
}
]
}
]
}
}
数据库字段