|
|
|
@ -91,6 +91,7 @@ class Listofworks extends Component {
|
|
|
|
|
unlimited: 0,
|
|
|
|
|
unlimitedtwo: 1,
|
|
|
|
|
code_review: false,
|
|
|
|
|
boolgalist:false,
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
title: '序号',
|
|
|
|
@ -778,7 +779,7 @@ class Listofworks extends Component {
|
|
|
|
|
// console.log(JSON.stringify(result))
|
|
|
|
|
let datalist = [];
|
|
|
|
|
var game_list = result.data.game_list
|
|
|
|
|
|
|
|
|
|
var boolgalist=false;
|
|
|
|
|
for (var i = 0; i < game_list.length; i++) {
|
|
|
|
|
|
|
|
|
|
datalist.push({
|
|
|
|
@ -789,6 +790,10 @@ class Listofworks extends Component {
|
|
|
|
|
complete_status: game_list[i].complete_status,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if(game_list[i].complete_status === 1){
|
|
|
|
|
boolgalist=true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// console.log("viewtraining");
|
|
|
|
|
// console.log(datalist);
|
|
|
|
@ -796,7 +801,8 @@ class Listofworks extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
viewtrainingdata: result.data,
|
|
|
|
|
visibles: true,
|
|
|
|
|
game_list: datalist
|
|
|
|
|
game_list: datalist,
|
|
|
|
|
boolgalist:boolgalist,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -1001,7 +1007,7 @@ class Listofworks extends Component {
|
|
|
|
|
render() {
|
|
|
|
|
// console.log("Listofworks.js000")
|
|
|
|
|
|
|
|
|
|
let {columns, page, limit, course_groupysls, course_groupyslstwo, unlimited, unlimitedtwo, loadingstate, viewtrainingdata, game_list, data, course_group_info, order, teacherdata, task_status, checkedValuesine, searchtext, teacherlist, visible, visibles, jobsettingsdata} = this.state;
|
|
|
|
|
let {columns, page, boolgalist,limit, course_groupysls, course_groupyslstwo, unlimited, unlimitedtwo, loadingstate, viewtrainingdata, game_list, data, course_group_info, order, teacherdata, task_status, checkedValuesine, searchtext, teacherlist, visible, visibles, jobsettingsdata} = this.state;
|
|
|
|
|
//
|
|
|
|
|
// console.log(teacherdata&&teacherdata.shixun_identifier)
|
|
|
|
|
// console.log(course_group_info)
|
|
|
|
@ -1045,6 +1051,7 @@ class Listofworks extends Component {
|
|
|
|
|
viewtrainingdata={viewtrainingdata}
|
|
|
|
|
game_list={game_list}
|
|
|
|
|
visible={visibles}
|
|
|
|
|
boolgalist={boolgalist}
|
|
|
|
|
Cancel={() => this.cancelModulationModels()}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
@ -1080,12 +1087,12 @@ class Listofworks extends Component {
|
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
|
<ActionBtn
|
|
|
|
|
className=" btn colorgrey fl hovercolorblue "
|
|
|
|
|
to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${jobsettingsdata === undefined ? "" : jobsettingsdata.data.category.category_id}`}>{jobsettingsdata === undefined ? "" : jobsettingsdata.data.category.category_name}</ActionBtn>
|
|
|
|
|
to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${jobsettingsdata === undefined ? "" : jobsettingsdata.data.category.category_id===undefined?"":jobsettingsdata.data.category.category_id}`}>{jobsettingsdata === undefined ? "" : jobsettingsdata.data.category.category_name}</ActionBtn>
|
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
|
<WordsBtn className="fl">作业详情</WordsBtn>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="educontent mb30">
|
|
|
|
|
<div className="educontent mb30" style={{width:"1250px"}}>
|
|
|
|
|
<p className=" fl color-black summaryname">
|
|
|
|
|
{teacherdata === undefined ? "" : teacherdata.homework_name}
|
|
|
|
|
</p>
|
|
|
|
@ -1101,7 +1108,7 @@ class Listofworks extends Component {
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="edu-back-white">
|
|
|
|
|
<div className="edu-back-white" style={{width:"1250px"}}>
|
|
|
|
|
<div className="stud-class-set bor-bottom-greyE ">
|
|
|
|
|
<div className=" clearfix edu-back-white poll_list">
|
|
|
|
|
<Link className="active"
|
|
|
|
@ -1164,7 +1171,7 @@ class Listofworks extends Component {
|
|
|
|
|
</CheckboxGroup>
|
|
|
|
|
{/*请输入姓名或学号搜索*/}
|
|
|
|
|
|
|
|
|
|
<div className="fr mr5 search-new" style={{marginBottom: '1px'}}>
|
|
|
|
|
<div className="fr mr5 search-newysl" style={{marginBottom: '1px'}}>
|
|
|
|
|
<Search
|
|
|
|
|
placeholder="请输入姓名或学号搜索"
|
|
|
|
|
id="subject_search_input"
|
|
|
|
|