调整 issues/24776

competitions
杨树林 6 years ago
parent 25791baf47
commit 58da1ab1c3

@ -2239,9 +2239,9 @@ class Listofworksstudentone extends Component {
var homeworkid = this.props.match.params.homeworkid; var homeworkid = this.props.match.params.homeworkid;
let urll = `/homework_commons/${homeworkid}/works_list.json?`; let urll = `/homework_commons/${homeworkid}/works_list.json?`;
var order = "asc"; var order = "asc";
// if (ordervlue === "update_time") { if (ordervlue === "update_time") {
// order = "desc"; order = "desc";
// } }
var checkedValuesines = checkedValuesine; var checkedValuesines = checkedValuesine;
var checkedValuesineinfos = checkedValuesineinfo; var checkedValuesineinfos = checkedValuesineinfo;
var searchtexts = searchtext var searchtexts = searchtext
@ -2653,15 +2653,15 @@ class Listofworksstudentone extends Component {
} }
//排序 //排序
funordert = (e) => { funordert = (e) => {
// if (e === "update_time") { if (e === "update_time") {
// // 时间 // 时间
// // 时间排序是从小到大 // 时间排序是从小到大
// this.setState({ this.setState({
// orders: "update_time", orders: "update_time",
// loadingstate: true, loadingstate: true,
// }) })
// this.Startsortingt("update_time", this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit); this.Startsortingt("update_time", this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit);
// } }
if (e === "work_score") { if (e === "work_score") {
// 成绩 // 成绩
@ -3365,7 +3365,7 @@ class Listofworksstudentone extends Component {
{orders === "work_score" ? "成绩" : orders === "student_id" ? "学号" : ""}排序</a> {orders === "work_score" ? "成绩" : orders === "student_id" ? "学号" : ""}排序</a>
<i className="iconfont icon-xiajiantou ml5 font-12 "></i> <i className="iconfont icon-xiajiantou ml5 font-12 "></i>
<ul className="edu-position-hide undis mt10"> <ul className="edu-position-hide undis mt10">
{/*<li> <a onClick={(e) => this.funordert("update_time")} data-remote="true" className=" font-12" style={{textAlign: "center"}}>更新时间</a></li>*/} <li> <a onClick={(e) => this.funordert("update_time")} data-remote="true" className=" font-12" style={{textAlign: "center"}}>更新时间</a></li>
<li> <a onClick={(e) => this.funordert("work_score")} data-remote="true" className=" font-12" style={{textAlign: "center"}}>最终成绩</a></li> <li> <a onClick={(e) => this.funordert("work_score")} data-remote="true" className=" font-12" style={{textAlign: "center"}}>最终成绩</a></li>
<li> <a onClick={(e) => this.funordert("student_id")} data-remote="true" className=" font-12" style={{textAlign: "center"}}>学生学号</a></li> <li> <a onClick={(e) => this.funordert("student_id")} data-remote="true" className=" font-12" style={{textAlign: "center"}}>学生学号</a></li>
</ul> </ul>

Loading…
Cancel
Save