|
|
@ -1246,43 +1246,43 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
this.Generatenewdatas(response.data.exercise_users);
|
|
|
|
this.Generatenewdatas(response.data.exercise_users);
|
|
|
|
if (response.data.exercise_types.subjective === 0) {
|
|
|
|
if (response.data.exercise_types.subjective === 0) {
|
|
|
|
if (this.state.noclassroom === undefined || this.state.noclassroom === "" || this.state.noclassroom === null) {
|
|
|
|
if (this.state.noclassroom === undefined || this.state.noclassroom === "" || this.state.noclassroom === null) {
|
|
|
|
this.state.columnss.map((item,key)=>{
|
|
|
|
var arr =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columnss.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columnss[i];
|
|
|
|
if(item.title==="分班"){
|
|
|
|
if(item.title==="分班"){
|
|
|
|
this.state.columnss.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
else if(item.title==="客观题得分"){
|
|
|
|
this.state.columnss.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
else if(item.title==="主观题得分"){
|
|
|
|
this.state.columnss.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columnss.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
let columnss2=this.state.columnss;
|
|
|
|
arr.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
columnss: columnss2,
|
|
|
|
columnss: arr,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.state.columnss.map((item,key)=>{
|
|
|
|
var arr =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columnss.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columnss[i];
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
this.state.columnss.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
this.state.columnss.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columnss.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
let columnss2=this.state.columnss;
|
|
|
|
arr.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
columnss: columnss2
|
|
|
|
columnss: arr
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1291,73 +1291,73 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
//学生已截止
|
|
|
|
//学生已截止
|
|
|
|
if (response.data.exercise_types.subjective === 0) {
|
|
|
|
if (response.data.exercise_types.subjective === 0) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
if (this.state.loadingstate === false) {
|
|
|
|
this.state.columnstwo.map((item,key)=>{
|
|
|
|
var arr =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columnstwo.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columnstwo[i];
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
this.state.columnstwo.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
else if(item.title==="主观题得分"){
|
|
|
|
this.state.columnstwo.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columnstwo.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
let columnstwo2=this.state.columnstwo;
|
|
|
|
arr.push(item);
|
|
|
|
this.state.columns.map((item,key)=>{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var arr2 =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columns.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columns[i];
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
this.state.columns.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
else if(item.title==="主观题得分"){
|
|
|
|
this.state.columns.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columns.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
let columns2=this.state.columns
|
|
|
|
arr2.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
thiss.setState({
|
|
|
|
thiss.setState({
|
|
|
|
columns: columns2,
|
|
|
|
columns: arr2,
|
|
|
|
columnstwo: columnstwo2,
|
|
|
|
columnstwo: arr,
|
|
|
|
loadingstate: true,
|
|
|
|
loadingstate: true,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.state.columnstwo.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
|
|
var arr =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columnstwo.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columnstwo[i];
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
this.state.columnstwo.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
else if(item.title==="主观题得分"){
|
|
|
|
this.state.columnstwo.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columnstwo.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
let columnstwo2=this.state.columnstwo;
|
|
|
|
arr.push(item);
|
|
|
|
this.state.columns.map((item,key)=>{
|
|
|
|
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
|
|
|
|
this.state.columns.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
}
|
|
|
|
this.state.columns.splice(key,1)
|
|
|
|
var arr2 =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columns.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columns[i];
|
|
|
|
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(item.title==="主观题得分"){
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columns.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
let columns2=this.state.columns
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
arr2.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
thiss.setState({
|
|
|
|
thiss.setState({
|
|
|
|
columns: columns2,
|
|
|
|
columns: arr2,
|
|
|
|
columnstwo:columnstwo2,
|
|
|
|
columnstwo:arr,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1610,37 +1610,39 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
current_answer_user: response.data.current_answer_user,
|
|
|
|
current_answer_user: response.data.current_answer_user,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
if (response.data.exercise_types.subjective === 0) {
|
|
|
|
if (response.data.exercise_types.subjective === 0) {
|
|
|
|
this.state.columnstwo.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
|
|
var arr =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columnstwo.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columnstwo[i];
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
this.state.columnstwo.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
else if(item.title==="主观题得分"){
|
|
|
|
this.state.columnstwo.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columnstwo.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
let columnstwo2=this.state.columnstwo;
|
|
|
|
arr.push(item);
|
|
|
|
this.state.columns.map((item,key)=>{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var arr2 =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columns.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columns[i];
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
this.state.columns.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
else if(item.title==="主观题得分"){
|
|
|
|
this.state.columns.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columns.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
let columns2=this.state.columns
|
|
|
|
arr2.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
columns: columns2,
|
|
|
|
columns: arr2,
|
|
|
|
columnstwo: columnstwo2,
|
|
|
|
columnstwo: arr,
|
|
|
|
loadingstate: false,
|
|
|
|
loadingstate: false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1706,7 +1708,6 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (response.data.exercise_types.subjective === 0) {
|
|
|
|
if (response.data.exercise_types.subjective === 0) {
|
|
|
|
//===0 不包括主观题
|
|
|
|
//===0 不包括主观题
|
|
|
|
if (indexi === exercise_users.length) {
|
|
|
|
if (indexi === exercise_users.length) {
|
|
|
@ -1715,20 +1716,25 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
// console.log("77771111111");
|
|
|
|
// console.log("77771111111");
|
|
|
|
//分班大于0显示分班
|
|
|
|
//分班大于0显示分班
|
|
|
|
//7ge
|
|
|
|
//7ge
|
|
|
|
this.state.columnsys.map((item,key)=>{
|
|
|
|
// this.state.columnsys.map((item,key)=>{
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
var arr =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columnsys.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columnsys[i];
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
else if(item.title==="主观题得分"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
thiss.setState({
|
|
|
|
arr.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
data: datalist,
|
|
|
|
data: datalist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
|
Teacherliststudentlist: response.data,
|
|
|
|
Teacherliststudentlist: response.data,
|
|
|
@ -1737,27 +1743,27 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
loadingstate: false,
|
|
|
|
loadingstate: false,
|
|
|
|
columnsys: this.state.columnsys,
|
|
|
|
columnsys: arr,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//分班小于0不显示分班
|
|
|
|
//分班小于0不显示分班
|
|
|
|
//6ge
|
|
|
|
//6ge
|
|
|
|
this.state.columnsys.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
|
|
var arr =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columnsys.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columnsys[i];
|
|
|
|
if(item.title==="分班"){
|
|
|
|
if(item.title==="分班"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
else if(item.title==="客观题得分"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
else if(item.title==="主观题得分"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
|
|
|
|
arr.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
thiss.setState({
|
|
|
|
thiss.setState({
|
|
|
|
data: datalist,
|
|
|
|
data: datalist,
|
|
|
@ -1768,7 +1774,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
columnsys: this.state.columnsys,
|
|
|
|
columnsys: arr,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1778,19 +1784,23 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
if (response.data.exercise_types.groups_count > 0) {
|
|
|
|
if (response.data.exercise_types.groups_count > 0) {
|
|
|
|
//显示分班
|
|
|
|
//显示分班
|
|
|
|
//8ge
|
|
|
|
//8ge
|
|
|
|
this.state.columnsys.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
|
|
var arr =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columnsys.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columnsys[i];
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
else if(item.title==="主观题得分"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
}else{
|
|
|
|
}
|
|
|
|
arr.push(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// console.log(thiss.state.columnsys);
|
|
|
|
|
|
|
|
// console.log(arr);
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
data: datalist,
|
|
|
|
data: datalist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
@ -1800,27 +1810,28 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
loadingstate: false,
|
|
|
|
loadingstate: false,
|
|
|
|
columnsys: this.state.columnsys,
|
|
|
|
columnsys: arr,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//不显示分班
|
|
|
|
//不显示分班
|
|
|
|
//7ge
|
|
|
|
//7ge
|
|
|
|
this.state.columnsys.map((item,key)=>{
|
|
|
|
var arr =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columnsys.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columnsys[i];
|
|
|
|
if(item.title==="分班"){
|
|
|
|
if(item.title==="分班"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="客观题得分"){
|
|
|
|
else if(item.title==="客观题得分"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.title==="主观题得分"){
|
|
|
|
else if(item.title==="主观题得分"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
}else{
|
|
|
|
}
|
|
|
|
arr.push(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
data: datalist,
|
|
|
|
data: datalist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
@ -1830,7 +1841,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
loadingstate: false,
|
|
|
|
loadingstate: false,
|
|
|
|
columnsys: this.state.columnsys,
|
|
|
|
columnsys: arr,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1842,13 +1853,16 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
console.log("2548包含主观题不包含分班");
|
|
|
|
console.log("2548包含主观题不包含分班");
|
|
|
|
|
|
|
|
|
|
|
|
if (response.data.exercise_types.groups_count > 0) {
|
|
|
|
if (response.data.exercise_types.groups_count > 0) {
|
|
|
|
this.state.columnsys.map((item,key)=>{
|
|
|
|
var arr =[];
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
for(var i=0;i<this.state.columnsys.length;i++){
|
|
|
|
if(item.title==="学号"){
|
|
|
|
var item = this.state.columnsys[i];
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
|
|
|
|
arr.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
data: datalist,
|
|
|
|
data: datalist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
@ -1857,19 +1871,22 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
columnsys: this.state.columnsys,
|
|
|
|
columnsys: arr,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.state.columnsys.map((item,key)=>{
|
|
|
|
var arr =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columnsys.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columnsys[i];
|
|
|
|
if(item.title==="分班"){
|
|
|
|
if(item.title==="分班"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
|
|
|
|
arr.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
data: datalist,
|
|
|
|
data: datalist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
@ -1878,7 +1895,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
commit_status: response.data.commit_status,
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
columnsys: this.state.columnsys,
|
|
|
|
columnsys:arr,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -1896,16 +1913,19 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
columnsys: this.state.columnsystwo,
|
|
|
|
columnsys: this.state.columnsystwo,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.state.columnsys.map((item,key)=>{
|
|
|
|
var arr =[];
|
|
|
|
|
|
|
|
for(var i=0;i<this.state.columnsys.length;i++){
|
|
|
|
|
|
|
|
var item = this.state.columnsys[i];
|
|
|
|
if(item.title==="分班"){
|
|
|
|
if(item.title==="分班"){
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(this.props.isNotMember()===true) {
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
if(item.title==="学号"){
|
|
|
|
|
|
|
|
this.state.columnsys.splice(key,1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else{
|
|
|
|
|
|
|
|
arr.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
data: datalist,
|
|
|
|
data: datalist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
|
teacherlist: teacherlist,
|
|
|
@ -1915,7 +1935,7 @@ class Studentshavecompletedthelist extends Component {
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
exercise_users: response.data.exercise_users,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
loadingstate: false,
|
|
|
|
loadingstate: false,
|
|
|
|
columnsys: this.state.columnsys,
|
|
|
|
columnsys: arr,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|