|
|
|
@ -23,7 +23,7 @@ const App = (props) => {
|
|
|
|
|
total,
|
|
|
|
|
staticList,
|
|
|
|
|
changeParams,
|
|
|
|
|
initTotal
|
|
|
|
|
initTotal,
|
|
|
|
|
} = props;
|
|
|
|
|
// const [datas, setDatas] = useState([]);
|
|
|
|
|
// const [sortedInfo, setSortedInfo] = useState({});
|
|
|
|
@ -200,7 +200,8 @@ const App = (props) => {
|
|
|
|
|
sorter: (a, b) => a.cost_time - b.cost_time
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
changeParams({
|
|
|
|
|
page: 1
|
|
|
|
@ -212,14 +213,15 @@ const App = (props) => {
|
|
|
|
|
pathId && staticList(pathId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const {
|
|
|
|
|
study_count,
|
|
|
|
|
course_study_count,
|
|
|
|
|
initiative_study,
|
|
|
|
|
passed_count,
|
|
|
|
|
course_used_count,
|
|
|
|
|
school_used_count
|
|
|
|
|
} = subject_info;
|
|
|
|
|
|
|
|
|
|
// const {
|
|
|
|
|
// study_count,
|
|
|
|
|
// course_study_count,
|
|
|
|
|
// initiative_study,
|
|
|
|
|
// passed_count,
|
|
|
|
|
// course_used_count,
|
|
|
|
|
// school_used_count
|
|
|
|
|
// } = subject_info;
|
|
|
|
|
|
|
|
|
|
const maps = {
|
|
|
|
|
1: 'subject_info', // 实践课程使用情况
|
|
|
|
@ -237,7 +239,6 @@ const App = (props) => {
|
|
|
|
|
// 恢复初始值
|
|
|
|
|
changeParams(params);
|
|
|
|
|
initTotal();
|
|
|
|
|
console.log(staticList)
|
|
|
|
|
pathId && staticList(pathId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -323,8 +324,9 @@ const mapStateToProps = (state) => {
|
|
|
|
|
return {
|
|
|
|
|
subject_info,
|
|
|
|
|
other_info,
|
|
|
|
|
total
|
|
|
|
|
total,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = (dispatch) => ({
|
|
|
|
|