fix
parent
170d3af347
commit
b00ea8f0c7
|
|
@ -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 () => {
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue