diff --git a/public/react/src/modules/courses/gradinforms/Eduinforms.js b/public/react/src/modules/courses/gradinforms/Eduinforms.js index 01fb52cab..13c3c0545 100644 --- a/public/react/src/modules/courses/gradinforms/Eduinforms.js +++ b/public/react/src/modules/courses/gradinforms/Eduinforms.js @@ -4,8 +4,6 @@ import { WordsBtn,on, off, trigger } from 'educoder'; import '../css/members.css'; import '../css/busyWork.css' -const Search = Input.Search; - class Eduinforms extends Component{ constructor(props){ super(props); @@ -15,8 +13,18 @@ class Eduinforms extends Component{ } componentDidMount() { + console.log("获取到数据"); + console.log(this.props); + // let url = "/courses/:id/informs.json"; + // + // axios.get(url).then((response) => { + // if(response){ + // + // } + // }).catch((error) => { + // console.log(error) + // }); - on('updateNavSuccess', this.updateNavSuccess) } @@ -37,134 +45,19 @@ class Eduinforms extends Component{

- {datas&&datas.category_name===undefined||datas&&datas.category_name===null?datas&&datas.main_category_name:datas&&datas.category_name+" 作业列表"} -

  • - {this.props.isAdmin()===true?datas&&datas.category_name===undefined||datas&&datas.category_name===null? - - this.addDir()} className={"mr30 font-16"}>添加目录 - {/*this.editname(datas&&datas.main_category_name)} className={"mr30"}>目录重命名*/} - : - this.editDir(datas&&datas.category_name)} className={"mr30 font-16"}>目录重命名:""} - {this.props.isAdmin()===true?datas&&datas.category_name===undefined||datas&&datas.category_name===null?选用实践课程:"":""} - {this.props.isAdmin()===true?this.createCommonWork()}>选用实训:""} + 公告栏 +
  • + 编辑
  • -
    -

    -

    - 共 {datas&&datas.all_count}个实训作业 - 已发布:{datas&&datas.published_count}个 - 未发布: {datas&&datas.unpublished_count}个 -
    -

    -
    - - 全部 - {this.props.isAdmin()?未发布:""} - 提交中 - 补交中 - 评阅中 - -
    -
    - this.SearchCoursename(value)} - > -
    -
    - - {this.props.isAdmin()===true?
    - -
    - 已选 {checkBoxValues&&checkBoxValues.length} 个 -
    -
  • 删除
  • -
  • 立即发布
  • - {/*onClick={this.homeworkstart}*/} -
  • 立即截止
  • -
  • - 设为公开 -
  • -
  • - {/*onClick={()=>this.selectBlank(4)}*/} - 移动到... -
      - { course_modules&&course_modules.homework_category.length > 10 &&

      - {this.setState({dirSearchValue: e.target.value})}}/> -

      } - - {course_modules&&course_modules.main_category.map((item,key)=>{ - return( - datas&&datas.category_id===null?"":
    • this.moveTos(item.main_category_id)}>{item.main_category_name}
    • - ) - })} - - - { course_modules&&course_modules.homework_category.filter((item,key)=> { - return (!this.state.dirSearchValue || item.category_name.indexOf(this.state.dirSearchValue) != -1) - }).map( (item,key) => { - if(datas&&datas.category_id!=null&&datas&&datas.category_id===item.category_id===false){ - return
    • this.moveTos(item.category_id )}>{item.category_name}
    • - } - if(datas&&datas.category_id===null){ - return
    • this.moveTos(item.category_id )}>{item.category_name}
    • - } - })} - - - - {course_modules&&course_modules.homework_category.length===0&&datas&&datas.category_id===null? -
      暂无数据
      :""} - - {/*{course_modules&&course_modules.homework_category.map((item,key)=>{*/} - {/*return(*/} - {/*
    • this.moveTos(item.category_id )}>{item.category_name}
    • */} - {/*)*/} - {/*})}*/} - - {this.props.isAdmin()?datas&&datas.category_name===undefined||datas&&datas.category_name===null? -

      - this.addDir()}>添加目录... -

      - :"":""} - -
    -
  • -
    -
    - -
    :""} - - - -
    + {/**/} + + + + {/**/} diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index 7f821bde4..6ef194380 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -2412,7 +2412,7 @@ class Listofworksstudentone extends Component { console.log(error) }); - } + }; // // setComputeTime=()=>{ // this.setState({