调整一键评阅

dev_new_shixunsrepository
杨树林 5 years ago
parent 5303b77851
commit 524894dadb

@ -1864,11 +1864,12 @@ class Listofworksstudentone extends Component {
console.log(error); console.log(error);
}) })
} }
//一键评阅的按钮
AkeyreviewitGetalistofworkstwo=()=>{ AkeyreviewitGetalistofworkstwo=()=>{
this.setState({ this.setState({
loadingstate: true, loadingstate: true,
}) })
this.Getalistofworkstwo("", "", "", "", 1, 20); this.Startsortingt("", "", "", "", 1, 20);
} }
// 获取作品列表 // 获取作品列表
Getalistofworkstwo = (ordervlue, checkedValuesine, checkedValuesineinfo, searchtext, page, limit) => { Getalistofworkstwo = (ordervlue, checkedValuesine, checkedValuesineinfo, searchtext, page, limit) => {
@ -2075,6 +2076,7 @@ class Listofworksstudentone extends Component {
user_name: teacherdata.user_name, user_name: teacherdata.user_name,
user_login: teacherdata.user_login, user_login: teacherdata.user_login,
Curcomlevel: teacherdata.current_complete_count===undefined||teacherdata.current_complete_count===null||teacherdata.current_complete_count===""?0:teacherdata.current_complete_count, Curcomlevel: teacherdata.current_complete_count===undefined||teacherdata.current_complete_count===null||teacherdata.current_complete_count===""?0:teacherdata.current_complete_count,
}) })
// } // }
@ -2649,11 +2651,7 @@ class Listofworksstudentone extends Component {
} }
// var teacherlist = { //分页
// total: student_works.length, //数据总数量
// pageSize: 20, //一页显示几条
// current: page,
// }
if (work_efficiency === false) { if (work_efficiency === false) {
if (JSON.stringify(course_group_info) === "[]" || course_group_info === undefined || course_group_info === null) { if (JSON.stringify(course_group_info) === "[]" || course_group_info === undefined || course_group_info === null) {
@ -2870,11 +2868,15 @@ class Listofworksstudentone extends Component {
} }
} else { } else {
} }
// //
// console.log(datalist); // console.log(datalist);
// console.log("1712"); // console.log("1712");
console.log("开始赋值了");
console.log(datalistjs);
this.setState({ this.setState({
datajs: datalistjs, datajs: datalistjs,
columns: columns2js, columns: columns2js,
@ -3376,27 +3378,7 @@ class Listofworksstudentone extends Component {
}); });
}; };
//
// setComputeTime=()=>{
// this.setState({
// computeTimetype:false
// })
// let homeworkid = this.props.match.params.homeworkid;
// let url = "/homework_commons/"+homeworkid+"/update_score.json";
//
// axios.get(url).then((response) => {
// if(response){
// this.props.showNotification(response.data.message);
// this.setState({
// loadingstate: true
// })
// this.Startsortingt(this.state.order, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
// }
// }).catch((error) => {
// console.log(error)
// });
//
// }
daochushixunbaogao = () => { daochushixunbaogao = () => {
let url = `/zip/shixun_report?homework_common_id=${this.props.match.params.homeworkid}&work_status=${this.state.course_groupyslstwo === undefined || this.state.course_groupyslstwo === null ? "" : this.state.course_groupyslstwo}&course_group=${this.state.checkedValuesineinfo === undefined || this.state.checkedValuesineinfo === null ? "" : this.state.checkedValuesineinfo}&search=${this.state.searchtext === undefined || this.state.searchtext === null ? "" : this.state.searchtext}` let url = `/zip/shixun_report?homework_common_id=${this.props.match.params.homeworkid}&work_status=${this.state.course_groupyslstwo === undefined || this.state.course_groupyslstwo === null ? "" : this.state.course_groupyslstwo}&course_group=${this.state.checkedValuesineinfo === undefined || this.state.checkedValuesineinfo === null ? "" : this.state.checkedValuesineinfo}&search=${this.state.searchtext === undefined || this.state.searchtext === null ? "" : this.state.searchtext}`

Loading…
Cancel
Save