fix: 诊所和药店分开管理
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
This commit is contained in:
@@ -72,8 +72,18 @@ const [Modal, modalApi] = useVbenModal({
|
||||
// 设置表单值,并处理时间字段(转换为dayjs对象)
|
||||
formApi.setValues({
|
||||
...values,
|
||||
start_time: dayjs(values.start_time, 'HH:mm'),
|
||||
end_time: dayjs(values.end_time, 'HH:mm')
|
||||
start_time: dayjs(values.start_time || '08:00', 'HH:mm'),
|
||||
end_time: dayjs(values.end_time || '20:00', 'HH:mm')
|
||||
});
|
||||
} else {
|
||||
console.log({
|
||||
|
||||
start_time: dayjs('08:00', 'HH:mm'),
|
||||
end_time: dayjs('20:00', 'HH:mm')
|
||||
})
|
||||
formApi.setValues({
|
||||
start_time: dayjs('08:00', 'HH:mm'),
|
||||
end_time: dayjs('20:00', 'HH:mm')
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,8 +56,8 @@ const [Modal, modalApi] = useVbenModal({
|
||||
values.address = [values.province_id, values.city_id];
|
||||
formApi.setValues({
|
||||
...values,
|
||||
start_time: dayjs(values.start_time, 'HH:mm'),
|
||||
end_time: dayjs(values.end_time, 'HH:mm')
|
||||
start_time: dayjs(values.start_time || '08:00', 'HH:mm'),
|
||||
end_time: dayjs(values.end_time || '20:00', 'HH:mm')
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user