|
|
|
@ -20,7 +20,7 @@ import '../poll/pollStyle.css'
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import 'moment/locale/zh-cn';
|
|
|
|
|
import './yslexercisetable.css';
|
|
|
|
|
import {getImageUrl, toPath} from 'educoder';
|
|
|
|
|
import {getImageUrl, toPath, sortDirections} from 'educoder';
|
|
|
|
|
import CheckBoxGroup from "../../page/component/CheckBoxGroup";
|
|
|
|
|
import NoneData from '../../../modules/courses/coursesPublic/NoneData'
|
|
|
|
|
const Search = Input.Search;
|
|
|
|
@ -110,6 +110,8 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14 maxnamewidth175",
|
|
|
|
|
width:'175px',
|
|
|
|
|
sorter: true,
|
|
|
|
|
sortDirections: sortDirections,
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span className="maxnamewidth175" style={{
|
|
|
|
|
width:'175px',
|
|
|
|
@ -200,6 +202,9 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
width:'175px',
|
|
|
|
|
sorter: true,
|
|
|
|
|
defaultSortOrder: 'descend',
|
|
|
|
|
sortDirections: sortDirections,
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span style={{
|
|
|
|
|
width:'175px',
|
|
|
|
@ -294,6 +299,8 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
key: 'efficiencyscore',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
sorter: true,
|
|
|
|
|
sortDirections: sortDirections,
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.efficiencyscore === "--" ?
|
|
|
|
@ -877,6 +884,8 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
key: 'stduynumber',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
sorter: true,
|
|
|
|
|
sortDirections: sortDirections,
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.stduynumber === "--" ?
|
|
|
|
@ -930,6 +939,9 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
key: 'updatetime',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
sorter: true,
|
|
|
|
|
defaultSortOrder: 'descend',
|
|
|
|
|
sortDirections: sortDirections,
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.updatetime==="--"?
|
|
|
|
@ -978,6 +990,8 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
key: 'efficiencyscore',
|
|
|
|
|
align: 'center',
|
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
sorter: true,
|
|
|
|
|
sortDirections: sortDirections,
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
{record.efficiencyscore === "--" ?
|
|
|
|
@ -1221,6 +1235,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
exercise_status:0,
|
|
|
|
|
order_type: "desc",
|
|
|
|
|
}
|
|
|
|
|
// console.log("Studentshavecompletedthelist");
|
|
|
|
|
// console.log(props.current_status);
|
|
|
|
@ -1244,7 +1259,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, pageNumber, 20);
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, pageNumber, 20, this.state.order_type);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
paginationonChanges = (pageNumber) => {
|
|
|
|
@ -1261,7 +1276,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdata(this.state.order, null, null, null, null, pageNumber, this.state.limit)
|
|
|
|
|
this.Searchdata(this.state.order, null, null, null, null, pageNumber, this.state.limit, this.state.order_type);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -1459,9 +1474,9 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
thiss.Generatenewdatasy(response.data.exercise_users, response);
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
console.log("其实数据加载失败了");
|
|
|
|
|
console.log("1111");
|
|
|
|
|
// console.log(error);
|
|
|
|
|
// console.log("其实数据加载失败了");
|
|
|
|
|
// console.log("1111");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1613,60 +1628,8 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//排序
|
|
|
|
|
funorder = (e) => {
|
|
|
|
|
if (e === "end_at") {
|
|
|
|
|
// 时间
|
|
|
|
|
// 时间排序是从小到大
|
|
|
|
|
if (this.state.loadingstate === true) {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "end_at",
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "end_at",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdata(e, null, null, null, null, this.state.page, this.state.limit)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (e === "score") {
|
|
|
|
|
// 成绩
|
|
|
|
|
//成绩排序是从大到小
|
|
|
|
|
if (this.state.loadingstate === true) {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "score",
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "score",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdata(e, null, null, null, null, this.state.page, this.state.limit)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (e === "student_id") {
|
|
|
|
|
//学号
|
|
|
|
|
//学号排序是从大到小
|
|
|
|
|
if (this.state.loadingstate === true) {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "student_id",
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "student_id",
|
|
|
|
|
loadingstate: true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdata(e, null, null, null, null, this.state.page, this.state.limit)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Searchdata = (order, commit_status, review, exercise_group_id, search, page, limit) => {
|
|
|
|
|
Searchdata = (order, commit_status, review, exercise_group_id, search, page, limit, order_type) => {
|
|
|
|
|
var exercise_id = this.props.match.params.Id;
|
|
|
|
|
// console.log(731); // 764 935
|
|
|
|
|
var url = `/exercises/${exercise_id}/exercise_lists.json`;
|
|
|
|
@ -1678,6 +1641,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
search: "",
|
|
|
|
|
page: page,
|
|
|
|
|
limit: limit,
|
|
|
|
|
order_type: order_type,
|
|
|
|
|
}
|
|
|
|
|
axios.get(url, {
|
|
|
|
|
params: params
|
|
|
|
@ -2050,7 +2014,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
Searchdatasys = (order, commit_status, review, exercise_group_id, search, page, limit) => {
|
|
|
|
|
Searchdatasys = (order, commit_status, review, exercise_group_id, search, page, limit, order_type) => {
|
|
|
|
|
var exercise_id = this.props.match.params.Id;
|
|
|
|
|
var url = `/exercises/${exercise_id}/exercise_lists.json`;
|
|
|
|
|
axios.get((url), {
|
|
|
|
@ -2062,6 +2026,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
search: search,
|
|
|
|
|
page: page,
|
|
|
|
|
limit: limit,
|
|
|
|
|
order_type: order_type
|
|
|
|
|
}
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
// console.log("528");
|
|
|
|
@ -2098,7 +2063,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
page:1,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, null, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, null, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit, this.state.order_type);
|
|
|
|
|
}
|
|
|
|
|
// notlimiteds = () => {
|
|
|
|
|
// this.setState({
|
|
|
|
@ -2125,7 +2090,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, undefined, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
|
this.Searchdatasys(this.state.order, undefined, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit, this.state.order_type);
|
|
|
|
|
}
|
|
|
|
|
checkeboxstwo = (checkedValues, data) => {
|
|
|
|
|
// console.log(checkedValues)
|
|
|
|
@ -2146,7 +2111,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, checkedValues, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
|
this.Searchdatasys(this.state.order, checkedValues, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit, this.state.order_type);
|
|
|
|
|
} else if (checkedValues.length === data.length) {
|
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
|
this.setState({
|
|
|
|
@ -2163,10 +2128,10 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, checkedValues, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
|
this.Searchdatasys(this.state.order, checkedValues, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit, this.state.order_type);
|
|
|
|
|
} else {
|
|
|
|
|
// console.log(checkedValues);
|
|
|
|
|
this.Searchdatasys(this.state.order, checkedValues, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
|
this.Searchdatasys(this.state.order, checkedValues, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit, this.state.order_type);
|
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
|
this.setState({
|
|
|
|
|
loadingstate: true,
|
|
|
|
@ -2196,7 +2161,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
course_groups: null,
|
|
|
|
|
unlimitedtwo: 0
|
|
|
|
|
})
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.commit_status, this.state.review, undefined, this.state.searchtext, null, null)
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.commit_status, this.state.review, undefined, this.state.searchtext, null, null, this.state.order_type)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
checkeboxs = (checkedValues, data) => {
|
|
|
|
@ -2225,7 +2190,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, checkedValues, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, checkedValues, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit, this.state.order_type);
|
|
|
|
|
} else if (checkedValues.length === data.length) {
|
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
|
this.setState({
|
|
|
|
@ -2242,7 +2207,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, checkedValues, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, checkedValues, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit, this.state.order_type);
|
|
|
|
|
} else {
|
|
|
|
|
// console.log(checkedValues);
|
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
@ -2260,7 +2225,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, checkedValues, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, checkedValues, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit, this.state.order_type);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -2283,7 +2248,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, undefined, this.state.searchtext, 1, this.state.limit)
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, undefined, this.state.searchtext, 1, this.state.limit, this.state.order_type)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
funtaskstatustwo = (checkedValues, data) => {
|
|
|
|
@ -2305,7 +2270,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, checkedValues, this.state.searchtext, 1, this.state.limit)
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, checkedValues, this.state.searchtext, 1, this.state.limit, this.state.order_type)
|
|
|
|
|
} else if (checkedValues.length === data.length) {
|
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
|
this.setState({
|
|
|
|
@ -2322,7 +2287,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, checkedValues, this.state.searchtext, 1, this.state.limit)
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, checkedValues, this.state.searchtext, 1, this.state.limit, this.state.order_type)
|
|
|
|
|
} else {
|
|
|
|
|
// console.log(checkedValues);
|
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
@ -2343,7 +2308,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, checkedValues, this.state.searchtext, 1, this.state.limit)
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, checkedValues, this.state.searchtext, 1, this.state.limit, this.state.order_type)
|
|
|
|
|
this.props.setcourse_groupysls(checkedValues)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -2364,7 +2329,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit, this.state.order_type);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
//搜索学生按钮输入 老师
|
|
|
|
@ -2381,7 +2346,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, value, 1, this.state.limit);
|
|
|
|
|
this.Searchdatasys(this.state.order, this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, value, 1, this.state.limit, this.state.order_type);
|
|
|
|
|
// this.Startsorting(this.state.order,this.state.checkedValuesine,this.state.checkedValuesineinfo,value);
|
|
|
|
|
// console.log(value)
|
|
|
|
|
|
|
|
|
@ -2416,60 +2381,175 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//排序
|
|
|
|
|
funordersy = (e) => {
|
|
|
|
|
console.log(this.state.course_groupyslstwo);
|
|
|
|
|
debugger
|
|
|
|
|
if (e === "end_at") {
|
|
|
|
|
// 时间
|
|
|
|
|
// 时间排序是从小到大
|
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "end_at",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "end_at",
|
|
|
|
|
})
|
|
|
|
|
//老师试卷table 列表塞选数据
|
|
|
|
|
table1handleChange = (pagination, filters, sorter) => {
|
|
|
|
|
//"ascend" 升序
|
|
|
|
|
//"descend" 降序
|
|
|
|
|
if (JSON.stringify(sorter) === "{}") {
|
|
|
|
|
//没有选择
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
|
|
|
|
//时间排序
|
|
|
|
|
if (sorter.columnKey === "updatetime") {
|
|
|
|
|
if (sorter.order === "ascend") {
|
|
|
|
|
//升序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "end_at",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "asc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdatasys("end_at", this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit, "asc");
|
|
|
|
|
} else if (sorter.order === "descend") {
|
|
|
|
|
//降序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "end_at",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "desc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdatasys("end_at", this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit, "desc");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(e, this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page,this.state.limit);
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
//学生学号排序
|
|
|
|
|
if (sorter.columnKey === "stduynumber") {
|
|
|
|
|
if (sorter.order === "ascend") {
|
|
|
|
|
//升序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "student_id",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "asc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdatasys("student_id", this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit, "asc");
|
|
|
|
|
|
|
|
|
|
} else if (sorter.order === "descend") {
|
|
|
|
|
//降序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "student_id",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "desc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdatasys("student_id", this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit, "desc");
|
|
|
|
|
|
|
|
|
|
if (e === "score") {
|
|
|
|
|
// 成绩
|
|
|
|
|
//成绩排序是从大到小
|
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "score",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "score",
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
//成绩排序排序
|
|
|
|
|
if (sorter.columnKey === "efficiencyscore") {
|
|
|
|
|
if (sorter.order === "ascend") {
|
|
|
|
|
//升序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "score",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "asc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdatasys("score", this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit, "asc");
|
|
|
|
|
|
|
|
|
|
} else if (sorter.order === "descend") {
|
|
|
|
|
//降序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "score",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "desc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdatasys("score", this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit, "desc");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(e, this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page,this.state.limit);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//学生问卷table 列表塞选数据
|
|
|
|
|
table1handleChangestuden = (pagination, filters, sorter) => {
|
|
|
|
|
if (JSON.stringify(sorter) === "{}") {
|
|
|
|
|
//没有选择
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
|
|
|
|
//时间排序
|
|
|
|
|
if (sorter.columnKey === "updatetime") {
|
|
|
|
|
if (sorter.order === "ascend") {
|
|
|
|
|
//升序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "end_at",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "asc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdata("end_at", null, null, null, null, this.state.page, this.state.limit, "asc");
|
|
|
|
|
} else if (sorter.order === "descend") {
|
|
|
|
|
//降序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "end_at",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "desc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdata("end_at", null, null, null, null, this.state.page, this.state.limit, "desc");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
//学生学号排序
|
|
|
|
|
if (sorter.columnKey === "stduynumber") {
|
|
|
|
|
if (sorter.order === "ascend") {
|
|
|
|
|
//升序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "student_id",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "asc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdata("student_id", null, null, null, null, this.state.page, this.state.limit, "asc");
|
|
|
|
|
} else if (sorter.order === "descend") {
|
|
|
|
|
//降序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "student_id",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "desc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdata("student_id", null, null, null, null, this.state.page, this.state.limit, "desc");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
if (e === "student_id") {
|
|
|
|
|
//学号
|
|
|
|
|
//学号排序是从大到小
|
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "student_id",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "student_id",
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.Searchdatasys(e, this.state.course_groupyslstwo, this.state.review, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page,this.state.limit);
|
|
|
|
|
try {
|
|
|
|
|
//成绩排序排序
|
|
|
|
|
if (sorter.columnKey === "efficiencyscore") {
|
|
|
|
|
if (sorter.order === "ascend") {
|
|
|
|
|
//升序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "score",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "asc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdata("score", null, null, null, null, this.state.page, this.state.limit, "asc");
|
|
|
|
|
|
|
|
|
|
} else if (sorter.order === "descend") {
|
|
|
|
|
//降序
|
|
|
|
|
this.setState({
|
|
|
|
|
order: "score",
|
|
|
|
|
loadingstate: true,
|
|
|
|
|
order_type: "desc"
|
|
|
|
|
})
|
|
|
|
|
this.Searchdata("score", null, null, null, null, this.state.page, this.state.limit, "desc");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
setExerciseReviewAndAnswer = () => {
|
|
|
|
@ -2635,23 +2715,6 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
style={{color: '#FF6800'}}>{Teacherliststudentlist === undefined ? "0" : Teacherliststudentlist.exercise_types.total_users}</span><span
|
|
|
|
|
className="color-orange-tip"></span>个检索结果({Teacherliststudentlist === undefined ? "0" : Teacherliststudentlist.exercise_types.exercise_all_users}学生) </span>
|
|
|
|
|
|
|
|
|
|
<div className="fr color-grey-6 edu-menu-panel">
|
|
|
|
|
<ul>
|
|
|
|
|
<li className="edu-position edu-position-hidebox">
|
|
|
|
|
<a className="font-12">
|
|
|
|
|
{order === "end_at" ? "时间" : order === "score" ? "成绩" : order === "student_id" ? "学号" : ""}排序</a>
|
|
|
|
|
<i className="iconfont icon-xiajiantou ml5 font-12"></i>
|
|
|
|
|
<ul className="edu-position-hide undis mt10">
|
|
|
|
|
<li><a onClick={(e) => this.funordersy("end_at")} data-remote="true"
|
|
|
|
|
className=" font-12" style={{textAlign: "center "}}>提交时间</a></li>
|
|
|
|
|
<li><a onClick={(e) => this.funordersy("score")} data-remote="true"
|
|
|
|
|
className=" font-12" style={{textAlign: "center "}}>最终成绩</a></li>
|
|
|
|
|
<li><a onClick={(e) => this.funordersy("student_id")} data-remote="true"
|
|
|
|
|
className=" font-12" style={{textAlign: "center "}}>学生学号</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -2676,6 +2739,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
columns={columnsys}
|
|
|
|
|
className="mysjysltable1"
|
|
|
|
|
pagination={false}
|
|
|
|
|
onChange={this.table1handleChange}
|
|
|
|
|
loading={loadingstate}
|
|
|
|
|
// onChange={this.TablePaginationsy}
|
|
|
|
|
/>}
|
|
|
|
@ -2882,26 +2946,8 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
<span
|
|
|
|
|
style={{color: '#FF6800'}}> {Teacherliststudentlist === undefined ? "0" : Teacherliststudentlist.exercise_types.exercise_end_time}</span>}
|
|
|
|
|
</span>
|
|
|
|
|
<div className="fr color-grey-6 edu-menu-panel">
|
|
|
|
|
<ul>
|
|
|
|
|
<li className="edu-position edu-position-hidebox">
|
|
|
|
|
<a className="font-12 ">
|
|
|
|
|
{order === "end_at" ? "时间" : order === "score" ? "成绩" : order === "student_id" ? "学号" : ""}排序</a>
|
|
|
|
|
<i className="iconfont icon-xiajiantou ml5 font-12 color-grey-6"></i>
|
|
|
|
|
<ul className="edu-position-hide undis mt10">
|
|
|
|
|
<li><a onClick={(e) => this.funorder("end_at")} data-remote="true"
|
|
|
|
|
className=" font-12" style={{textAlign: "center "}}>提交时间</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li><a onClick={(e) => this.funorder("score")} data-remote="true"
|
|
|
|
|
className=" font-12" style={{textAlign: "center "}}>最终成绩</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li><a onClick={(e) => this.funorder("student_id")} data-remote="true"
|
|
|
|
|
className=" font-12" style={{textAlign: "center "}}>学生学号</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
@ -2936,6 +2982,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
columns={columns}
|
|
|
|
|
pagination={false}
|
|
|
|
|
className="mysjysltable4"
|
|
|
|
|
onChange={this.table1handleChangestuden}
|
|
|
|
|
loading={loadingstate}
|
|
|
|
|
/>}</div>
|
|
|
|
|
</div>
|
|
|
|
@ -2973,4 +3020,4 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
|
// subjective 主要是用于判断答题列表页是否存在 主观题 一栏的
|
|
|
|
|
// 客观题没有判断。当主观题存在时,就会有客观题出现,否则只有总成绩
|
|
|
|
|
// 当subjective 等于1时,就出现3列,客观题,主观题,最终成绩。当subjective等于0时,你就只出现最终成绩一列就行了
|
|
|
|
|
export default Studentshavecompletedthelist;
|
|
|
|
|
export default Studentshavecompletedthelist;
|
|
|
|
|