|
|
@ -110,6 +110,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
className: "edu-txt-center font-14 maxnamewidth175",
|
|
|
|
className: "edu-txt-center font-14 maxnamewidth175",
|
|
|
|
width:'175px',
|
|
|
|
width:'175px',
|
|
|
|
|
|
|
|
sorter: true,
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span className="maxnamewidth175" style={{
|
|
|
|
<span className="maxnamewidth175" style={{
|
|
|
|
width:'175px',
|
|
|
|
width:'175px',
|
|
|
@ -200,6 +201,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
width:'175px',
|
|
|
|
width:'175px',
|
|
|
|
|
|
|
|
sorter: true,
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span style={{
|
|
|
|
<span style={{
|
|
|
|
width:'175px',
|
|
|
|
width:'175px',
|
|
|
@ -294,6 +296,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
key: 'efficiencyscore',
|
|
|
|
key: 'efficiencyscore',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
|
|
|
sorter: true,
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
{record.efficiencyscore === "--" ?
|
|
|
|
{record.efficiencyscore === "--" ?
|
|
|
@ -877,6 +880,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
key: 'stduynumber',
|
|
|
|
key: 'stduynumber',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
|
|
|
sorter: true,
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
{record.stduynumber === "--" ?
|
|
|
|
{record.stduynumber === "--" ?
|
|
|
@ -930,6 +934,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
key: 'updatetime',
|
|
|
|
key: 'updatetime',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
|
|
|
sorter: true,
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
{record.updatetime==="--"?
|
|
|
|
{record.updatetime==="--"?
|
|
|
@ -978,6 +983,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
key: 'efficiencyscore',
|
|
|
|
key: 'efficiencyscore',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
className: "edu-txt-center font-14",
|
|
|
|
|
|
|
|
sorter: true,
|
|
|
|
render: (text, record) => (
|
|
|
|
render: (text, record) => (
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
{record.efficiencyscore === "--" ?
|
|
|
|
{record.efficiencyscore === "--" ?
|
|
|
@ -1221,6 +1227,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
exercise_status:0,
|
|
|
|
exercise_status:0,
|
|
|
|
|
|
|
|
order_type: "desc",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// console.log("Studentshavecompletedthelist");
|
|
|
|
// console.log("Studentshavecompletedthelist");
|
|
|
|
// console.log(props.current_status);
|
|
|
|
// console.log(props.current_status);
|
|
|
@ -1244,7 +1251,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) => {
|
|
|
|
paginationonChanges = (pageNumber) => {
|
|
|
@ -1261,7 +1268,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 +1466,9 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
thiss.Generatenewdatasy(response.data.exercise_users, response);
|
|
|
|
thiss.Generatenewdatasy(response.data.exercise_users, response);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((error) => {
|
|
|
|
}).catch((error) => {
|
|
|
|
console.log(error);
|
|
|
|
// console.log(error);
|
|
|
|
console.log("其实数据加载失败了");
|
|
|
|
// console.log("其实数据加载失败了");
|
|
|
|
console.log("1111");
|
|
|
|
// console.log("1111");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1613,60 +1620,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, order_type) => {
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Searchdata = (order, commit_status, review, exercise_group_id, search, page, limit) => {
|
|
|
|
|
|
|
|
var exercise_id = this.props.match.params.Id;
|
|
|
|
var exercise_id = this.props.match.params.Id;
|
|
|
|
// console.log(731); // 764 935
|
|
|
|
// console.log(731); // 764 935
|
|
|
|
var url = `/exercises/${exercise_id}/exercise_lists.json`;
|
|
|
|
var url = `/exercises/${exercise_id}/exercise_lists.json`;
|
|
|
@ -1678,6 +1633,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
search: "",
|
|
|
|
search: "",
|
|
|
|
page: page,
|
|
|
|
page: page,
|
|
|
|
limit: limit,
|
|
|
|
limit: limit,
|
|
|
|
|
|
|
|
order_type: order_type,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
axios.get(url, {
|
|
|
|
axios.get(url, {
|
|
|
|
params: params
|
|
|
|
params: params
|
|
|
@ -2050,7 +2006,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 exercise_id = this.props.match.params.Id;
|
|
|
|
var url = `/exercises/${exercise_id}/exercise_lists.json`;
|
|
|
|
var url = `/exercises/${exercise_id}/exercise_lists.json`;
|
|
|
|
axios.get((url), {
|
|
|
|
axios.get((url), {
|
|
|
@ -2062,6 +2018,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
search: search,
|
|
|
|
search: search,
|
|
|
|
page: page,
|
|
|
|
page: page,
|
|
|
|
limit: limit,
|
|
|
|
limit: limit,
|
|
|
|
|
|
|
|
order_type: order_type
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).then((response) => {
|
|
|
|
}).then((response) => {
|
|
|
|
// console.log("528");
|
|
|
|
// console.log("528");
|
|
|
@ -2098,7 +2055,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
page:1,
|
|
|
|
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 = () => {
|
|
|
|
// notlimiteds = () => {
|
|
|
|
// this.setState({
|
|
|
|
// this.setState({
|
|
|
@ -2125,7 +2082,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) => {
|
|
|
|
checkeboxstwo = (checkedValues, data) => {
|
|
|
|
// console.log(checkedValues)
|
|
|
|
// console.log(checkedValues)
|
|
|
@ -2146,7 +2103,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) {
|
|
|
|
} else if (checkedValues.length === data.length) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
@ -2163,10 +2120,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 {
|
|
|
|
} else {
|
|
|
|
// console.log(checkedValues);
|
|
|
|
// 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) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
loadingstate: true,
|
|
|
|
loadingstate: true,
|
|
|
@ -2196,7 +2153,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
course_groups: null,
|
|
|
|
course_groups: null,
|
|
|
|
unlimitedtwo: 0
|
|
|
|
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) => {
|
|
|
|
checkeboxs = (checkedValues, data) => {
|
|
|
@ -2225,7 +2182,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) {
|
|
|
|
} else if (checkedValues.length === data.length) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
@ -2242,7 +2199,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 {
|
|
|
|
} else {
|
|
|
|
// console.log(checkedValues);
|
|
|
|
// console.log(checkedValues);
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
@ -2260,7 +2217,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 +2240,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) => {
|
|
|
|
funtaskstatustwo = (checkedValues, data) => {
|
|
|
@ -2305,7 +2262,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) {
|
|
|
|
} else if (checkedValues.length === data.length) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
@ -2322,7 +2279,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 {
|
|
|
|
} else {
|
|
|
|
// console.log(checkedValues);
|
|
|
|
// console.log(checkedValues);
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
@ -2343,7 +2300,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)
|
|
|
|
this.props.setcourse_groupysls(checkedValues)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2364,7 +2321,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 +2338,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);
|
|
|
|
// this.Startsorting(this.state.order,this.state.checkedValuesine,this.state.checkedValuesineinfo,value);
|
|
|
|
// console.log(value)
|
|
|
|
// console.log(value)
|
|
|
|
|
|
|
|
|
|
|
@ -2416,60 +2373,175 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//排序
|
|
|
|
//老师试卷table 列表塞选数据
|
|
|
|
funordersy = (e) => {
|
|
|
|
table1handleChange = (pagination, filters, sorter) => {
|
|
|
|
console.log(this.state.course_groupyslstwo);
|
|
|
|
//"ascend" 升序
|
|
|
|
debugger
|
|
|
|
//"descend" 降序
|
|
|
|
if (e === "end_at") {
|
|
|
|
if (JSON.stringify(sorter) === "{}") {
|
|
|
|
// 时间
|
|
|
|
//没有选择
|
|
|
|
// 时间排序是从小到大
|
|
|
|
} else {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
try {
|
|
|
|
this.setState({
|
|
|
|
//时间排序
|
|
|
|
order: "end_at",
|
|
|
|
if (sorter.columnKey === "updatetime") {
|
|
|
|
loadingstate: true,
|
|
|
|
if (sorter.order === "ascend") {
|
|
|
|
})
|
|
|
|
//升序
|
|
|
|
} else {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
order: "end_at",
|
|
|
|
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") {
|
|
|
|
}
|
|
|
|
// 成绩
|
|
|
|
}
|
|
|
|
//成绩排序是从大到小
|
|
|
|
} catch (e) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
}
|
|
|
|
order: "score",
|
|
|
|
|
|
|
|
loadingstate: true,
|
|
|
|
try {
|
|
|
|
})
|
|
|
|
//成绩排序排序
|
|
|
|
} else {
|
|
|
|
if (sorter.columnKey === "efficiencyscore") {
|
|
|
|
this.setState({
|
|
|
|
if (sorter.order === "ascend") {
|
|
|
|
order: "score",
|
|
|
|
//升序
|
|
|
|
})
|
|
|
|
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 = () => {
|
|
|
|
setExerciseReviewAndAnswer = () => {
|
|
|
@ -2635,23 +2707,6 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
style={{color: '#FF6800'}}>{Teacherliststudentlist === undefined ? "0" : Teacherliststudentlist.exercise_types.total_users}</span><span
|
|
|
|
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>
|
|
|
|
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>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -2676,6 +2731,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
columns={columnsys}
|
|
|
|
columns={columnsys}
|
|
|
|
className="mysjysltable1"
|
|
|
|
className="mysjysltable1"
|
|
|
|
pagination={false}
|
|
|
|
pagination={false}
|
|
|
|
|
|
|
|
onChange={this.table1handleChange}
|
|
|
|
loading={loadingstate}
|
|
|
|
loading={loadingstate}
|
|
|
|
// onChange={this.TablePaginationsy}
|
|
|
|
// onChange={this.TablePaginationsy}
|
|
|
|
/>}
|
|
|
|
/>}
|
|
|
@ -2882,26 +2938,8 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
<span
|
|
|
|
<span
|
|
|
|
style={{color: '#FF6800'}}> {Teacherliststudentlist === undefined ? "0" : Teacherliststudentlist.exercise_types.exercise_end_time}</span>}
|
|
|
|
style={{color: '#FF6800'}}> {Teacherliststudentlist === undefined ? "0" : Teacherliststudentlist.exercise_types.exercise_end_time}</span>}
|
|
|
|
</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>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -2936,6 +2974,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
columns={columns}
|
|
|
|
columns={columns}
|
|
|
|
pagination={false}
|
|
|
|
pagination={false}
|
|
|
|
className="mysjysltable4"
|
|
|
|
className="mysjysltable4"
|
|
|
|
|
|
|
|
onChange={this.table1handleChangestuden}
|
|
|
|
loading={loadingstate}
|
|
|
|
loading={loadingstate}
|
|
|
|
/>}</div>
|
|
|
|
/>}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|