|
|
@ -1,6 +1,6 @@
|
|
|
|
import React, {Component} from "react";
|
|
|
|
import React, {Component} from "react";
|
|
|
|
import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
import {WordsBtn, ActionBtn, sortDirections} from 'educoder';
|
|
|
|
import {WordsBtn, publicSearchs, sortDirections} from 'educoder';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
Form,
|
|
|
|
Form,
|
|
|
|
Select,
|
|
|
|
Select,
|
|
|
@ -65,6 +65,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
//关卡得分final_score
|
|
|
|
//关卡得分final_score
|
|
|
|
|
|
|
|
|
|
|
|
this.state = {
|
|
|
|
this.state = {
|
|
|
|
|
|
|
|
searchtypes:false,
|
|
|
|
jobsettingsdata: undefined,
|
|
|
|
jobsettingsdata: undefined,
|
|
|
|
endTime: "2018/11/10 17:10:00",
|
|
|
|
endTime: "2018/11/10 17:10:00",
|
|
|
|
type: "day",
|
|
|
|
type: "day",
|
|
|
@ -2588,6 +2589,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
challenges_count: result.data.challenges_count,
|
|
|
|
challenges_count: result.data.challenges_count,
|
|
|
|
homework_status: result.data.homework_status,
|
|
|
|
homework_status: result.data.homework_status,
|
|
|
|
answer_open_evaluation:result.data.answer_open_evaluation,
|
|
|
|
answer_open_evaluation:result.data.answer_open_evaluation,
|
|
|
|
|
|
|
|
page:page
|
|
|
|
});
|
|
|
|
});
|
|
|
|
allow_lates=result.data.allow_late;
|
|
|
|
allow_lates=result.data.allow_late;
|
|
|
|
answer_open_evaluation=result.data.answer_open_evaluation;
|
|
|
|
answer_open_evaluation=result.data.answer_open_evaluation;
|
|
|
@ -2959,10 +2961,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//搜索学生 文字输入
|
|
|
|
//搜索学生 文字输入
|
|
|
|
inputSearchValuest = (e) => {
|
|
|
|
inputSearchValuest = (e) => {
|
|
|
|
// console.log(e.target.value)
|
|
|
|
if (e.target.value === ""||e.target.value===undefined) {
|
|
|
|
if (e.target.value === "") {
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
searchtext: undefined
|
|
|
|
searchtext: undefined,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
@ -2983,8 +2984,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
loadingstate: true,
|
|
|
|
loadingstate: true,
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
|
|
|
|
|
searchtypes:true
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.Startsortingt(this.state.orders, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, value, 1, 20, this.state.myorders);
|
|
|
|
this.Startsortingt(this.state.orders, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, value, 1, 20, this.state.myorders);
|
|
|
|
// console.log(value)
|
|
|
|
// console.log(value)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -3576,12 +3578,18 @@ class Listofworksstudentone extends Component {
|
|
|
|
</div>:
|
|
|
|
</div>:
|
|
|
|
homework_status && homework_status.length === 0 ?
|
|
|
|
homework_status && homework_status.length === 0 ?
|
|
|
|
<div className="edu-back-white">
|
|
|
|
<div className="edu-back-white">
|
|
|
|
<NoneData></NoneData>
|
|
|
|
<NoneData
|
|
|
|
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
homework_status && homework_status.length > 0 && homework_status[0] === "未发布" ?
|
|
|
|
homework_status && homework_status.length > 0 && homework_status[0] === "未发布" ?
|
|
|
|
<div className="edu-back-white">
|
|
|
|
<div className="edu-back-white">
|
|
|
|
<NoneData></NoneData>
|
|
|
|
<NoneData
|
|
|
|
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<div className={"educontent "}>
|
|
|
|
<div className={"educontent "}>
|
|
|
@ -3664,15 +3672,16 @@ class Listofworksstudentone extends Component {
|
|
|
|
{/*}*/}
|
|
|
|
{/*}*/}
|
|
|
|
{/*</span>}*/}
|
|
|
|
{/*</span>}*/}
|
|
|
|
<span className="search-newyslw fr ml20">
|
|
|
|
<span className="search-newyslw fr ml20">
|
|
|
|
<Search
|
|
|
|
{/*<Search*/}
|
|
|
|
placeholder="请输入姓名或学号搜索"
|
|
|
|
{/* placeholder="请输入姓名或学号搜索"*/}
|
|
|
|
id="subject_search_input"
|
|
|
|
{/* id="subject_search_input"*/}
|
|
|
|
autoComplete="off"
|
|
|
|
{/* autoComplete="off"*/}
|
|
|
|
value={searchtext}
|
|
|
|
{/* value={searchtext}*/}
|
|
|
|
onKeyUp={(e) => this.onSearchKeywordKeyUpt(e)}
|
|
|
|
{/* // onKeyUp={(e) => this.onSearchKeywordKeyUpt(e)}*/}
|
|
|
|
onInput={this.inputSearchValuest}
|
|
|
|
{/* onInput={this.inputSearchValuest}*/}
|
|
|
|
onSearch={this.searchValuest}
|
|
|
|
{/* onSearch={this.searchValuest}*/}
|
|
|
|
></Search>
|
|
|
|
{/*></Search>*/}
|
|
|
|
|
|
|
|
{publicSearchs("请输入姓名或学号搜索",this.searchValuest,this.inputSearchValuest,this.inputSearchValuest)}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span className="fl mr10 color-grey-8 ">作品状态:</span>
|
|
|
|
<span className="fl mr10 color-grey-8 ">作品状态:</span>
|
|
|
@ -3760,7 +3769,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
<div className="mh650 edu-back-white">
|
|
|
|
<div className="mh650 edu-back-white">
|
|
|
|
<div className="edu-tab-con-box clearfix edu-txt-center">
|
|
|
|
<div className="edu-tab-con-box clearfix edu-txt-center">
|
|
|
|
<img className="edu-nodata-img mb20" src={getImageUrl("images/educoder/nodata.png")}/>
|
|
|
|
<img className="edu-nodata-img mb20" src={getImageUrl("images/educoder/nodata.png")}/>
|
|
|
|
<p className="edu-nodata-p mb30">暂时还没有相关数据哦!</p>
|
|
|
|
<p className="edu-nodata-p mb30">{this.state.searchtypes===false?"暂时还没有相关数据哦!":"抱歉没有您要搜索的内容,请换个词语试试看"}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -3769,9 +3778,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<div className={"justify break_full_word new_li "} style={{minHeight: "480px"}}>
|
|
|
|
<div className={"justify break_full_word new_li "} style={{minHeight: "480px"}}>
|
|
|
|
<style>{`
|
|
|
|
<style>{`
|
|
|
|
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
|
|
|
|
// .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
|
|
|
|
top: 72%;}
|
|
|
|
// top: 72%;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
.edu-table thead th,.edu-table tbody tr:last-child td{
|
|
|
|
.edu-table thead th,.edu-table tbody tr:last-child td{
|
|
|
|
border-bottom: none!important;
|
|
|
|
border-bottom: none!important;
|
|
|
|
height: 58px;
|
|
|
|
height: 58px;
|
|
|
@ -3787,13 +3796,16 @@ class Listofworksstudentone extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
`}</style>
|
|
|
|
<div className="edu-table edu-back-white ant-tables ysltableo table1">
|
|
|
|
<div className="edu-table edu-back-white ant-tables ysltableo table1">
|
|
|
|
{datajs === undefined ? "" : <Table
|
|
|
|
<Spin tip="正在加载..." spinning={loadingstate}>
|
|
|
|
dataSource={datajs}
|
|
|
|
{datajs === undefined ? "" : <Table
|
|
|
|
columns={columns}
|
|
|
|
dataSource={datajs}
|
|
|
|
pagination={false}
|
|
|
|
columns={columns}
|
|
|
|
onChange={this.table1handleChange}
|
|
|
|
pagination={false}
|
|
|
|
loading={loadingstate}
|
|
|
|
onChange={this.table1handleChange}
|
|
|
|
/>}
|
|
|
|
loading={false}
|
|
|
|
|
|
|
|
/>}
|
|
|
|
|
|
|
|
</Spin>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3898,12 +3910,18 @@ class Listofworksstudentone extends Component {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
homework_status && homework_status.length && homework_status.length === 0 ?
|
|
|
|
homework_status && homework_status.length && homework_status.length === 0 ?
|
|
|
|
<div className=" clearfix edu-back-white" style={{margin: "auto", minWidth: "1200px"}}>
|
|
|
|
<div className=" clearfix edu-back-white" style={{margin: "auto", minWidth: "1200px"}}>
|
|
|
|
<NoneData></NoneData>
|
|
|
|
<NoneData
|
|
|
|
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
homework_status && homework_status.length > 0 && homework_status && homework_status[0] === "未发布" ?
|
|
|
|
homework_status && homework_status.length > 0 && homework_status && homework_status[0] === "未发布" ?
|
|
|
|
<div className=" clearfix edu-back-white " style={{margin: "auto", minWidth: "1200px"}}>
|
|
|
|
<div className=" clearfix edu-back-white " style={{margin: "auto", minWidth: "1200px"}}>
|
|
|
|
<NoneData></NoneData>
|
|
|
|
<NoneData
|
|
|
|
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
|
@ -4029,7 +4047,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
<div className="edu-tab-con-box clearfix edu-txt-center">
|
|
|
|
<div className="edu-tab-con-box clearfix edu-txt-center">
|
|
|
|
<img className="edu-nodata-img mb20"
|
|
|
|
<img className="edu-nodata-img mb20"
|
|
|
|
src={getImageUrl("images/educoder/nodata.png")}/>
|
|
|
|
src={getImageUrl("images/educoder/nodata.png")}/>
|
|
|
|
<p className="edu-nodata-p mb30">暂时还没有相关数据哦!</p>
|
|
|
|
<p className="edu-nodata-p mb30">{this.state.searchtypes===false?"暂时还没有相关数据哦!":"抱歉没有您要搜索的内容,请换个词语试试看"}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -4069,12 +4087,18 @@ class Listofworksstudentone extends Component {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
homework_status && homework_status.length === 0 ?
|
|
|
|
homework_status && homework_status.length === 0 ?
|
|
|
|
<div className=" clearfix edu-back-white" style={{margin: "auto", minWidth: "1200px"}}>
|
|
|
|
<div className=" clearfix edu-back-white" style={{margin: "auto", minWidth: "1200px"}}>
|
|
|
|
<NoneData></NoneData>
|
|
|
|
<NoneData
|
|
|
|
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
homework_status && homework_status.length > 0 && homework_status && homework_status[0] === "未发布" ?
|
|
|
|
homework_status && homework_status.length > 0 && homework_status && homework_status[0] === "未发布" ?
|
|
|
|
<div className=" clearfix edu-back-white" style={{margin: "auto", minWidth: "1200px"}}>
|
|
|
|
<div className=" clearfix edu-back-white" style={{margin: "auto", minWidth: "1200px"}}>
|
|
|
|
<NoneData></NoneData>
|
|
|
|
<NoneData
|
|
|
|
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<div className={"educontent mb20"}>
|
|
|
|
<div className={"educontent mb20"}>
|
|
|
@ -4226,9 +4250,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
<div className={"justify break_full_word new_li"}
|
|
|
|
<div className={"justify break_full_word new_li"}
|
|
|
|
style={{minHeight: "480px"}}>
|
|
|
|
style={{minHeight: "480px"}}>
|
|
|
|
<style>{`
|
|
|
|
<style>{`
|
|
|
|
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
|
|
|
|
// .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
|
|
|
|
top: 72%;}
|
|
|
|
// top: 72%;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
.edu-table .ant-table-tbody > tr > td {
|
|
|
|
.edu-table .ant-table-tbody > tr > td {
|
|
|
|
height: 58px;
|
|
|
|
height: 58px;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -4246,12 +4270,16 @@ class Listofworksstudentone extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
`}</style>
|
|
|
|
<div className="edu-table edu-back-white ysltableowss table4">
|
|
|
|
<div className="edu-table edu-back-white ysltableowss table4">
|
|
|
|
{datas === undefined ? "" : <Table
|
|
|
|
{datas === undefined ? "" :
|
|
|
|
dataSource={datas}
|
|
|
|
<Spin tip="正在加载..." spinning={loadingstate}>
|
|
|
|
columns={columnsstu}
|
|
|
|
<Table
|
|
|
|
pagination={false}
|
|
|
|
dataSource={datas}
|
|
|
|
loading={loadingstate}
|
|
|
|
columns={columnsstu}
|
|
|
|
/>}
|
|
|
|
pagination={false}
|
|
|
|
|
|
|
|
loading={false}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</Spin>
|
|
|
|
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -4270,7 +4298,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
<div className="edu-tab-con-box clearfix edu-txt-center">
|
|
|
|
<div className="edu-tab-con-box clearfix edu-txt-center">
|
|
|
|
<img className="edu-nodata-img mb20"
|
|
|
|
<img className="edu-nodata-img mb20"
|
|
|
|
src={getImageUrl("images/educoder/nodata.png")}/>
|
|
|
|
src={getImageUrl("images/educoder/nodata.png")}/>
|
|
|
|
<p className="edu-nodata-p mb30">暂时还没有相关数据哦!</p>
|
|
|
|
<p className="edu-nodata-p mb30">{this.state.searchtypes===false?"暂时还没有相关数据哦!":"抱歉没有您要搜索的内容,请换个词语试试看"}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|