dev-tmp1^2
tangjie 2026-08-28 10:26:38 +08:00
parent 170d3af347
commit b00ea8f0c7
2 changed files with 11 additions and 4 deletions

View File

@ -89,6 +89,11 @@ function ClassAddPage(props) {
props.history.goBack(); props.history.goBack();
} }
})(); })();
return () => {
props.resetModelState(NS_COURSEWARE, {
classDetailData: {}
});
}
}, []); }, []);
const handleSubmit = async () => { const handleSubmit = async () => {

View File

@ -27,11 +27,13 @@ const buildQuery = (value) => {
return { return {
...rest, ...rest,
...(trainingDateRange?.[0] ...(trainingDateRange?.[0]
? { startDateBegin: trainingDateRange[0].format("YYYY-MM-DD") } ? { startDateBegin: trainingDateRange[0]?.startOf("day")
: {}), .format("YYYY-MM-DD HH:mm:ss") }
: {startDateBegin: undefined}),
...(trainingDateRange?.[1] ...(trainingDateRange?.[1]
? { endDateEnd: trainingDateRange[1].format("YYYY-MM-DD") } ? { endDateEnd: trainingDateRange[1]?.endOf("day")
: {}), .format("YYYY-MM-DD HH:mm:ss") }
: {endDateEnd: undefined}),
current: 1, current: 1,
size: 10, size: 10,
}; };