diff --git a/public/react/src/modules/courses/Index.js b/public/react/src/modules/courses/Index.js index f5e62a134..27424821f 100644 --- a/public/react/src/modules/courses/Index.js +++ b/public/react/src/modules/courses/Index.js @@ -89,10 +89,6 @@ const Trainingjobsetting= Loadable({ loading: Loading, }) //实训作业列表教师 -const Listofworks= Loadable({ - loader: () => import('./shixunHomework/Listofworks'), - loading: Loading, -}) // //实训作业列表学生未完成的 // const Studentnotcompleted= Loadable({ @@ -773,11 +769,6 @@ class CoursesIndex extends Component{ } > {/*/!*实训作品列表教师*!/*/} - {/* ()*/} - {/* }*/} - {/*>*/} {/*提交总结*/} ( - {record.number} - - ) - }, - { - title: '姓名', - dataIndex: 'name', - key: 'name', - align: 'center', - className:'font-14', - width:'120px', - render: (text, record) => ( - {record.name} - ) - }, - { - title: '学号', - dataIndex: 'stduynumber', - key: 'stduynumber', - align: 'center', - className:'font-14', - render: (text, record) => ( - {record.stduynumber === undefined ? "--" : record.stduynumber === null ? "--" : record.stduynumber === "" ? "--" : record.stduynumber} - - ), - }, - { - title: '分班', - key: 'classroom', - dataIndex: 'classroom', - align: 'center', - className:'font-14', - render: (text, record) => ( - {record.classroom} - ) - }, - { - title: '提交状态', - dataIndex: 'submitstate', - key: 'submitstate', - align: 'center', - className:'font-14', - render: (text, record) => ( - {record.submitstate} - - ) - - }, - { - title: '实战耗时', - dataIndex: 'cost_time', - key: 'cost_time', - align: 'center', - className:'font-14', - render: (text, record) => ( - {record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time } - - ) - - }, - { - title: '更新时间', - dataIndex: 'updatetime', - key: 'updatetime', - align: 'center', - className:'font-14', - render: (text, record) => ( - {record.updatetime} - ), - }, - { - title: '完成情况', - dataIndex: 'completion', - key: 'completion', - align: 'center', - className:'font-14', - render: (text, record) => ( - - - -
已通过{record.completion}关,共{this.state.challenges_count}关
- }> - {record.completion+"/"+this.state.challenges_count} -
- -
- ) - }, - { - title: '关卡得分', - dataIndex: 'levelscore', - key: 'levelscore', - align: 'center', - className:'font-14', - render: (text, record) => ( - - = 90 ? {"color": '#DD1717', "text-align": "center"} : { - "color": '#747A7F', - "text-align": "center" - }}>{record.levelscore} - - ) - }, - { - title: '效率分', - dataIndex: 'efficiencyscore', - key: 'efficiencyscore', - align: 'center', - className:'font-14', - render: (text, record) => ( - - { - record.efficiencyscore&& record.efficiencyscore=== "--"?( - this.state.allow_late&&this.state.allow_late===false? - -
作业截止时,系统根据学生在课堂成员中的效率表现自动评分
- }> - - -- - -
- : - this.state.allow_late&&this.state.allow_late===true? - -
补交结束时,系统根据学生在课堂成员中的效率表现自动评分
- }> - - -- - -
- : - - -- - - ) - : - = 90 ? { - "color": '#DD1717', - "text-align": "center" - } : {"color": '#747A7F', "text-align": "center"}}>{record.efficiencyscore} - } - -
- ) - }, - { - title: '最终成绩', - dataIndex: 'finalscore', - key: 'finalscore', - align: 'center', - className:'font-14', - render: (text, record) => ( - - { - record.ultimate_score=== true? - -
{record.user_name}{record.user_login}
-
{record.finalscore === "--"?最终调整成绩:0分 :最终调整成绩:{record.finalscore}分}
- }> - { - record.finalscore&&record.finalscore==="--"? - {record.finalscore} - : - = 90 ? {"color": '#DD1717', "text-align": "center"} : { - "color": '#747A7F', - "text-align": "center" - }}>{record.finalscore} - } -
- : - -
{record.user_name}{record.user_login}
-
{record.levelscore === "--"?关卡得分:0分 :关卡得分:{record.levelscore}分}
-
{record.efficiencyscore === "--"?效率评分:0分 :效率评分:{record.efficiencyscore}分}
-
{record.late_penalty === "--"?迟交扣分:0分 :迟交扣分:{record.late_penalty}分}
-
{record.finalscore === "--"?最终成绩:0分 :最终成绩:{record.finalscore}分}
- }> - { - record.finalscore&&record.finalscore==="--"? - {record.finalscore} - : - = 90 ? {"color": '#DD1717', "text-align": "center"} : { - "color": '#747A7F', - "text-align": "center" - }}>{record.finalscore} - } -
- - } -
- ) - }, - { - title: '操作', - dataIndex: 'operating', - key: 'operating', - display: 'block', - align: 'center', - className:'font-14', - render: (text, record) => ( - record.submitstate === "未提交" ? -- : - - this.Viewstudenttraininginformationt(record)}>{record.operating} - - ) - }, - ], - columnss: [ - { - title: '序号', - dataIndex: 'number', - key: 'number', - align: 'center', - className:'font-14', - render: (text, record) => ( - {record.number} - - ) - }, - { - title: '姓名', - dataIndex: 'name', - key: 'name', - align: 'center', - className:'font-14', - width:'120px', - render: (text, record) => ( - {record.name} - ) - }, - { - title: '学号', - dataIndex: 'stduynumber', - key: 'stduynumber', - align: 'center', - className:'font-14', - render: (text, record) => ( - {record.stduynumber === undefined ? "--" : record.stduynumber === null ? "--" : record.stduynumber === "" ? "--" : record.stduynumber} - - ), - }, - { - title: '分班', - key: 'classroom', - dataIndex: 'classroom', - align: 'center', - className:'font-14', - render: (text, record) => ( - {record.classroom} - ) - }, - { - title: '提交状态', - dataIndex: 'submitstate', - key: 'submitstate', - align: 'center', - className:'font-14', - render: (text, record) => ( - {record.submitstate} - - ) - - }, - { - title: '更新时间', - dataIndex: 'updatetime', - key: 'updatetime', - align: 'center', - className:'font-14', - render: (text, record) => ( - {record.updatetime} - ), - }, - { - title: '实战耗时', - dataIndex: 'cost_time', - key: 'cost_time', - align: 'center', - className:'font-14', - render: (text, record) => ( - {record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time } - - ) - - }, - { - title: '完成情况', - dataIndex: 'completion', - key: 'completion', - align: 'center', - className:'font-14', - render: (text, record) => ( - - - -
已通过{record.completion}关,共{this.state.challenges_count}关
- }> - {record.completion+"/"+this.state.challenges_count} -
- -
- ) - }, - { - title: '关卡得分', - dataIndex: 'levelscore', - key: 'levelscore', - align: 'center', - className:'font-14', - render: (text, record) => ( - - = 90 ? {"color": '#DD1717', "text-align": "center"} : { - "color": '#747A7F', - "text-align": "center" - }}>{record.levelscore} - - ) - }, - { - title: '效率分', - dataIndex: 'efficiencyscore', - key: 'efficiencyscore', - align: 'center', - className:'font-14', - render: (text, record) => ( - - { - record.efficiencyscore&& record.efficiencyscore=== "--"?( - this.state.allow_late&&this.state.allow_late===false? - -
作业截止时,系统根据学生在课堂成员中的效率表现自动评分
- }> - - -- - -
- : - this.state.allow_late&&this.state.allow_late===true? - -
补交结束时,系统根据学生在课堂成员中的效率表现自动评分
- }> - - -- - -
- : - - -- - - ) - : - = 90 ? { - "color": '#DD1717', - "text-align": "center" - } : {"color": '#747A7F', "text-align": "center"}}>{record.efficiencyscore} - } - -
- ) - }, - { - title: '最终成绩', - dataIndex: 'finalscore', - key: 'finalscore', - align: 'center', - className:'font-14', - render: (text, record) => ( - - { - record.ultimate_score=== true? - -
{record.user_name}{record.user_login}
-
{record.finalscore === "--"?最终调整成绩:0分 :最终调整成绩:{record.finalscore}分}
- }> - { - record.finalscore&&record.finalscore==="--"? - {record.finalscore} - : - = 90 ? {"color": '#DD1717', "text-align": "center"} : { - "color": '#747A7F', - "text-align": "center" - }}>{record.finalscore} - } -
- : - -
{record.user_name}{record.user_login}
-
{record.levelscore === "--"?关卡得分:0分 :关卡得分:{record.levelscore}分}
-
{record.efficiencyscore === "--"?效率评分:0分 :效率评分:{record.efficiencyscore}分}
-
{record.late_penalty === "--"?迟交扣分:0分 :迟交扣分:{record.late_penalty}分}
-
{record.finalscore === "--"?最终成绩:0分 :最终成绩:{record.finalscore}分}
- }> - { - record.finalscore&&record.finalscore==="--"? - {record.finalscore} - : - = 90 ? {"color": '#DD1717', "text-align": "center"} : { - "color": '#747A7F', - "text-align": "center" - }}>{record.finalscore} - } -
- - } -
- ) - }, - { - title: '操作', - dataIndex: 'operating', - key: 'operating', - display: 'block', - align: 'center', - className:'font-14', - render: (text, record) => ( - record.submitstate === "未提交" ? -- : - - this.Viewstudenttraininginformationt(record)}>{record.operating} - - ) - }, - ], - - - } - - } - - componentDidMount() { - console.log("Listofworks"); - console.log("componentDidMount"); - this.tearchar(); - - } - - - render() { - // console.log("Listofworks.js000") - - let {columns,computeTimetype, page, boolgalist,limit,experience,course_groupysls, course_groupyslstwo, unlimited, unlimitedtwo, loadingstate, viewtrainingdata, game_list, data, course_group_info, orders, teacherdata, task_status, checkedValuesine, searchtext, teacherlist, visible, visibles, jobsettingsdata} = this.state; - // - // console.log(teacherdata&&teacherdata.shixun_identifier) - // console.log(this.props.teacherdata&&this.props.teacherdata.publish_immediately) - // console.log(JSON.stringify(this.props)); - return ( -
- {visible === true ? this.saveModulationModal(value, num)} - /> : ""} - - {this.state.showmodel === true ? this.hideshowmodel()} - updatas={() => this.isupdatas()} - /> : ""} - - - {visibles === true ? -
- - this.cancelModulationModels()} - /> - -
- : "" - } - - {/*立即发布*/} - this.getcourse_groupslist(id)} - starttimes={this.state.starttimes} - typs={this.state.typs} - /> -
- - -
- - - - {computeTimetype===false?
  • - - 正在执行成绩计算,请稍后刷新页面查看结果 - 温馨提示:执行时间因作品数量而异 - -
  • :""} - - {/*作品状态GraduationTaskssettinglist*/} -
      -
    • - 计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')} - - {teacherdata&&teacherdata.publish_immediately===false&&computeTimetype===true?
      - 计算成绩 -
      : -
      - {teacherdata&&teacherdata.homework_status[0]=== "未发布"? "": -
      - 计算成绩 -
      - } -
      } -
      - -
      - this.onSearchKeywordKeyUpt(e)} - onInput={this.inputSearchValuest} - onSearch={this.searchValuest} - > -
      -
    • - -
    • - - 作品状态: - this.notlimiteds()}>不限 - this.funtaskstatust(e, task_status && task_status)} - style={{paddingTop: '4px'}}> - - {task_status === undefined ? "" : task_status.map((item, key) => { - return ( - - {item.name} - ({item.count}) - - - - ) - })} - - {/*请输入姓名或学号搜索*/} - - -
    • - - - {/*分班情况*/} - -
    • - {JSON.stringify(course_group_info) === "[]" ? "" : course_group_info === undefined ? "" : course_group_info.length < 2 ? "" : -
      - 分班情况: - this.notlimitedst()}>不限 - this.funtaskstatustwot(e, course_group_info && course_group_info)} - style={{paddingTop: '4px',width:'1017px'}}> - {course_group_info === undefined ? "" : - course_group_info.map((item, key) => { - return ( - - {item.group_group_name} - ({item.count}) - - - ) - }) - } - -
      } -
    • - -
    - - - - { - JSON.stringify(data) === "[]" ? - -
    -
    -
    - -

    没有数据可以显示!

    -
    -
    - -
    - : - -
    - -
    - {data === undefined ? "" : } - - - } - - - - { - teacherdata && teacherdata.work_count && teacherdata.work_count > limit ? -
    - -
    - : "" - } - - - - - ) - } -} - -export default Listofworks; - -{/*
    */} -{/*

    */} -{/* {jobsettingsdata === undefined ? "" : jobsettingsdata.data.course_name}*/} -{/* >*/} -{/* {jobsettingsdata === undefined ? "" : jobsettingsdata.data.category.category_name}*/} -{/* >*/} -{/* 作业详情*/} -{/*

    */} -{/*
    */} -{/*
    */} -{/*

    */} -{/*{teacherdata === undefined ? "" : teacherdata.homework_name}*/} -{/*

    */} -{/**/} -{/*返回*/} -{/*实训详情*/} - - -{/*
    */} -//
    -//
    -// this.ChangeTab(0)}>作品列表 -// this.ChangeTab(1)}>作业问答 -// {this.props.isAdmin() ? -// this.state.code_review === true ||jobsettingsdata === undefined ? [""] : jobsettingsdata.data.homework_status[0]==="未发布"? "" : this.ChangeTab(2)}> -// 代码查重 : ""} -// this.ChangeTab(3)} -// >设置 -// {/*{this.props.isAdmin() ? 导出 : ""}*/} -// -// {this.props.isAdmin()?
  • -// 导出 -// -//
  • :""} -// {this.props.isAdmin() ? -// teacherdata && teacherdata.end_immediately === true ? -// 立即截止 -// : "" -// : ""} -// {this.props.isAdmin() ? -// teacherdata && teacherdata.publish_immediately === true ? -// 立即发布 -// : "" -// : ""} -// {this.props.isAdmin() ? -// teacherdata && teacherdata.code_review === true ? -// 代码查重 -// : "": ""} -{/*
    */} -{/*
    */} diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index c38c0aeff..3c031367f 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -66,7 +66,7 @@ class Listofworksstudentone extends Component { pages: 1, limit: 20, loadingstate: true, - order: "updated_at", + order: "update_time", search: null, day: 0, hour: 0, @@ -96,23 +96,23 @@ class Listofworksstudentone extends Component { {record.number === undefined ? -- : record.number === "" ? -- : record.number === "--" ? -- : {record.number} } @@ -900,6 +900,8 @@ class Listofworksstudentone extends Component { }, ], yslpros:false, + datajs:[], + } // console.log("902"); // console.log("902"); @@ -930,22 +932,34 @@ class Listofworksstudentone extends Component { // // } componentDidMount() { - console.log("componentDidMount"); - - // console.log(this.props.isAdmin()); - if(this.props.isAdmin() === true){ - this.tearchar(); - // console.log("909"); - }else{ - this.student(); - // console.log("911"); - - } + // console.log("componentDidMount "); + // console.log("调用子组件 "); + // console.log(this.props); + // console.log(this.props.isAdmin()) + this.student(); } + isupdatas = () => { + var homeworkid = this.props.match.params.homeworkid; + // this.Gettitleinformation(homeworkid); + this.Getalistofworks(homeworkid); + } + /////////老师操作 + // tearchar=()=>{ + // var homeworkid = this.props.match.params.homeworkid; + // // console.log(homeworkid) + // // this.Gettitleinformation(homeworkid); + // this.Getalistofworkst(homeworkid); + // let query = this.props.location.pathname; + // const type = query.split('/'); + // this.setState({ + // shixuntypes: type[3] + // }) + // this.props.triggerRef(this) + // } student=()=>{ // console.log("914"); // debugger - this.props.triggerRef(this); + var homeworkid = this.props.match.params.homeworkid; this.Getalistofworks(homeworkid); let query = this.props.location.pathname; @@ -953,6 +967,7 @@ class Listofworksstudentone extends Component { this.setState({ shixuntypes: type[3] }) + this.props.triggerRef(this); } @@ -977,12 +992,11 @@ class Listofworksstudentone extends Component { course_group: "", } axios.post(urll, data).then((result) => { + console.log("980000000____________________"); + if(result === undefined){ return } - // console.log("951"); - // console.log(result); - // debugger this.setState({ teacherdata: result.data, task_status: result.data.task_status, @@ -996,13 +1010,17 @@ class Listofworksstudentone extends Component { code_review: result.data.code_review, challenges_count: result.data.challenges_count, view_report: result.data.view_report, + allow_late:result.data.allow_late, + loadingstate: false, }) - this.props.Getdataback(result,result.data); + this.seacthdatat(result.data,result.data.student_works,result.data.work_efficiency,result.data.course_group_info,1); + if (result.data.student_works === undefined || result.data.student_works === null || JSON.stringify(result.data.student_works) === "[]") { this.seacthdata(result.data); } else { this.seacthdatas(result.data, result.data.student_works); } + this.props.Getdataback(result,result.data); }).catch((error) => { console.log(error); @@ -1052,12 +1070,12 @@ class Listofworksstudentone extends Component { challenges_count:result.data.challenges_count, view_report:result.data.view_report, }) - this.props.Getdataback(result,result.data); if (result.data.student_works === undefined || result.data.student_works === null || JSON.stringify(result.data.student_works) === "[]") { this.seacthdata(result.data); } else { this.seacthdatas(result.data,result.data.student_works); } + this.props.Getdataback(result,result.data); } }).catch((error) => { @@ -1152,7 +1170,8 @@ class Listofworksstudentone extends Component { if (student_works !== undefined) { for (var i = 0; i { console.log(error) @@ -1468,77 +1487,6 @@ class Listofworksstudentone extends Component { } - /////////老师操作 - tearchar=()=>{ - this.props.triggerRef(this) - var homeworkid = this.props.match.params.homeworkid; - // console.log(homeworkid) - // this.Gettitleinformation(homeworkid); - this.Getalistofworkst(homeworkid); - let query = this.props.location.pathname; - const type = query.split('/'); - this.setState({ - shixuntypes: type[3] - }) - } - - isupdatas = () => { - var homeworkid = this.props.match.params.homeworkid; - // this.Gettitleinformation(homeworkid); - this.Getalistofworkst(homeworkid); - } - - // 获取作品列表 - Getalistofworkst = (homeworkid) => { - // console.log("获取作品列表");7009 - // debugger - - let urll = `/homework_commons/${homeworkid}/works_list.json`; - // console.log(homeworkid); - - // search:搜索关键字 - // order:排序方式:更新时间:update_time,最终成绩:work_score,学号:student_id - // b_order:desc:倒序 , asc:顺序 - // work_status:0:未提交, 1:按时提交, 2:延时提交,“”不限 - // course_group:分班情况 [232, 231], []:不限(空数组) - var data = { - search: "", - order: this.state.orders, - b_order: "desc", - work_status: "", - course_group: "", - page:1, - limit:20, - } - axios.post(urll, data).then((result) => { - if (result) { - // console.log(url) - // console.log("作品列表6789077") - // console.log(JSON.stringify(result)) - this.setState({ - teacherdata: result.data, - task_status: result.data.task_status, - allow_late:result.data.allow_late, - course_group_info: result.data.course_group_info, - loadingstate: false, - jobsettingsdata: result, - publish_immediately: result.data.publish_immediately, - work_efficiency: result.data.work_efficiency, - end_immediately: result.data.end_immediately, - code_review: result.data.code_review, - challenges_count:result.data.challenges_count, - }) - this.seacthdatat(result.data,result.data.student_works,result.data.work_efficiency,result.data.course_group_info,1); - this.props.Getdataback(result,result.data); - } - }).catch((error) => { - console.log(error) - this.setState({ - loadingstate: false, - }) - }) - } - //开始排序操作 Startsortingt = (ordervlue, checkedValuesine, checkedValuesineinfo, searchtext, page, limit) => { //要提交的作品状态checkedValuesine @@ -1607,14 +1555,19 @@ class Listofworksstudentone extends Component { seacthdatat = (teacherdata,student_works,work_efficiency,course_group_info) => { let {page, limit} = this.state; - let datalist = []; + let datalistjs = []; let columns = this.state.columns; - var columns2=[]; - if (teacherdata !== undefined) { + var columns2js=[]; + // console.log("1614++++++++++++++++++++++="); + // console.log(student_works); + // console.log(teacherdata); + if (student_works !== undefined) { + // console.log("1618____________________"); + // console.log(student_works); // console.log("1588"); for (var i = 0; i < student_works.length; i++) { var timedata = moment(student_works[i].update_time).format('YYYY-MM-DD HH:mm'); - datalist.push({ + datalistjs.push({ myid: student_works[i].id, number: (parseInt(page) - 1) * parseInt(limit) + (i + 1), name: student_works[i].user_name, @@ -1635,8 +1588,6 @@ class Listofworksstudentone extends Component { user_name: student_works[i].user_name, user_login: student_works[i].user_login, }) - // console.log(datalist); - // console.log("1612"); } @@ -1659,7 +1610,7 @@ class Listofworksstudentone extends Component { else if(this.props.isNotMember()===true&&item.title==="学号") { }else{ - columns2.push(item); + columns2js.push(item); } } @@ -1677,7 +1628,7 @@ class Listofworksstudentone extends Component { else if(this.props.isNotMember()===true&&item.title==="学号") { }else{ - columns2.push(item); + columns2js.push(item); } } @@ -1691,7 +1642,7 @@ class Listofworksstudentone extends Component { else if(this.props.isNotMember()===true&&item.title==="学号") { }else{ - columns2.push(item); + columns2js.push(item); } } } @@ -1707,7 +1658,7 @@ class Listofworksstudentone extends Component { else if(this.props.isNotMember()===true&&item.title==="学号") { }else{ - columns2.push(item); + columns2js.push(item); } } @@ -1723,11 +1674,11 @@ class Listofworksstudentone extends Component { else if(this.props.isNotMember()===true&&item.title==="学号") { }else{ - columns2.push(item); + columns2js.push(item); } } } - columns2=this.state.columnss; + columns2js=this.state.columnss; } } @@ -1737,8 +1688,8 @@ class Listofworksstudentone extends Component { // console.log(datalist); // console.log("1712"); this.setState({ - data: datalist, - columns: columns2, + datajs: datalistjs, + columns: columns2js, loadingstate: false, }) } @@ -2265,18 +2216,19 @@ class Listofworksstudentone extends Component { }) } render() { - let {columns,course_groupysls,isAdmin, course_groupyslstwo, unlimited, unlimitedtwo, course_group_info, orders, task_status, checkedValuesine, searchtext, teacherlist, visible,visibles, game_list,columnsstu, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate,computeTimetype} = this.state; + let {columns,course_groupysls,datajs,isAdmin, course_groupyslstwo, unlimited, unlimitedtwo, course_group_info, orders, task_status, checkedValuesine, searchtext, teacherlist, visible,visibles, game_list,columnsstu, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate,computeTimetype} = this.state; - // console.log(this.state.data); + // console.log(this.state.student_works); // console.log("841"); // console.log(this.state.columns); - // console.log(data); + // console.log(datajs); // console.log("2202"); // console.log(this.props.isAdmin()); return ( this.props.isAdmin() === true ? + ( { - JSON.stringify(data) === "[]" ? + JSON.stringify(datajs) === "[]" ?
    -

    没有数据可以显示!

    +

    没有数据可以显示.!

    @@ -2558,8 +2510,8 @@ class Listofworksstudentone extends Component { } `}
    - {data === undefined ? "" :
    + ) : + (
    { teacherdata === undefined || teacherdata.student_works === undefined || teacherdata.student_works === null || JSON.stringify(teacherdata.student_works) === "[]" ? @@ -2679,8 +2633,8 @@ class Listofworksstudentone extends Component {
    @@ -2694,7 +2648,7 @@ class Listofworksstudentone extends Component { } {teacherdata === undefined ? "0" : teacherdata.left_time === undefined ? "0" : teacherdata.left_time === null ? "0" : {teacherdata.left_time.time} + style={{color: '#FF6800'}}>{teacherdata.left_time.time} } @@ -2747,7 +2701,7 @@ class Listofworksstudentone extends Component {
    -

    没有数据可以显示!

    +

    没有数据可以显示,,!

    @@ -2808,8 +2762,8 @@ class Listofworksstudentone extends Component { {JSON.stringify(datas) !== "[]" ?
    @@ -2821,7 +2775,7 @@ class Listofworksstudentone extends Component { {teacherdata.left_time.status}} {teacherdata === undefined ? "0" : teacherdata.left_time === undefined ? "0" : teacherdata.left_time === null ? "0" : {teacherdata.left_time.time}} + style={{color: '#FF6800'}}>{teacherdata.left_time.time}}
    - {/*/courses/1309/9373/listofworks*/} + {/*to={`/courses/${this.props.match.params.coursesId}/${discussMessage.homework_id}/jobsettings`}*/} { this.props.isAdmin?自定义分值 {testscripttiptype===true? -
    +

    diff --git a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js index 385c2d4b8..1dc6a10fd 100644 --- a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js +++ b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js @@ -84,7 +84,6 @@ class Workquestionandanswer extends Component { componentDidMount() { console.log("Workquestionandanswer"); console.log("componentDidMount"); - this.props.triggerRef(this); var homeworkid = this.props.match.params.homeworkid; // console.log(homeworkid) this.Gettitleinformation(homeworkid) @@ -93,6 +92,8 @@ class Workquestionandanswer extends Component { this.setState({ shixuntypes: type[3] }) + this.props.triggerRef(this); + } // componentWillReceiveProps(nextProps) { // // console.log("+++++++++916");