Commit 6d699242 by zhangleyuan

feat:处理创建任务的排序

parent 55d5f7a2
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: zhangleyuan * @Author: zhangleyuan
* @Date: 2021-02-20 16:45:51 * @Date: 2021-02-20 16:45:51
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2021-03-03 10:06:14 * @LastEditTime: 2021-03-08 17:39:37
* @Description: 描述一下 * @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -156,6 +156,8 @@ class TrainingTask extends React.Component { ...@@ -156,6 +156,8 @@ class TrainingTask extends React.Component {
} }
onSortEnd = ({ oldIndex, newIndex }) => { onSortEnd = ({ oldIndex, newIndex }) => {
const { dataSource } = this.state; const { dataSource } = this.state;
console.log("oldIndex",oldIndex); console.log("oldIndex",oldIndex);
...@@ -287,8 +289,6 @@ class TrainingTask extends React.Component { ...@@ -287,8 +289,6 @@ class TrainingTask extends React.Component {
render() { render() {
const { dataSource,selectedTaskIndex,relatedCourseModalVisible} = this.state; const { dataSource,selectedTaskIndex,relatedCourseModalVisible} = this.state;
console.log("dataSource",dataSource);
const { data } = this.props; const { data } = this.props;
return ( return (
<div className="training-task"> <div className="training-task">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment