diff --git a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js index 34564a79d..75ba7c5b5 100644 --- a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js +++ b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js @@ -81,32 +81,7 @@ class PathDetailIndex extends Component{ cardsModalsave:this.cardsModalsave, user_id:undefined, loadtype:false, - courses:[ - { - course_id: 1309, - first_category_url: "/courses/1309/informs", - start_date: "2019-07-16", // 开始时间 - end_date: "2050-12-31", // 结束时间 - student_count: 112, // 学习人数 - course_identity: 5, // 当前用户在该课堂的身份 - course_status: { - status: 1, // status:0:即将开课 1:进行中 2:已结束 - time: "进行至第5周,共1642周" // time:当前进度 - } - }, - { - course_id: 1319, - first_category_url: "/courses/1319/shixun_homeworks/11549", - start_date:"2019-08-16", - end_date:"2050-12-31", - student_count: 112, - course_identity: 1, - course_status: { - status: 0, - time: "" - } - } - ], + courses:undefined, items: getItems(10) } this.onDragEnd = this.onDragEnd.bind(this); @@ -187,7 +162,7 @@ class PathDetailIndex extends Component{ if(result.data.allow_visit===true){ this.setState({ detailInfoList:result.data, - // courses:result.data.courses + courses:result.data.courses // items: getItems(result.data.members.length), }) }