|
|
|
@ -1194,6 +1194,8 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
seacthdatas = (teacherdata,student_works) => {
|
|
|
|
|
console.log("1197");
|
|
|
|
|
console.log(this.props.isNotMember());
|
|
|
|
|
let {page, limit,work_efficiency} = this.state;
|
|
|
|
|
let datalist = [];
|
|
|
|
|
let datalists = [];
|
|
|
|
@ -1201,17 +1203,38 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
var arr =[];
|
|
|
|
|
for(var i=0;i<this.state.columnsstu.length;i++){
|
|
|
|
|
var item = this.state.columnsstu[i];
|
|
|
|
|
if (work_efficiency === false) {
|
|
|
|
|
if(item.title==="关卡得分"){
|
|
|
|
|
if(this.props.isNotMember()===true){
|
|
|
|
|
if(item.title==="关卡得分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="效率分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="最终成绩") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
else if(item.title==="效率分"){
|
|
|
|
|
if(item.title==="学号") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
arr.push(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if (work_efficiency === false) {
|
|
|
|
|
if(item.title==="关卡得分"){
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
else if(item.title==="效率分"){
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
|
}else{
|
|
|
|
|
arr.push(item);
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
arr.push(item);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
arr.push(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let columns2= arr;
|
|
|
|
@ -1300,8 +1323,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
// console.log("554");
|
|
|
|
|
// console.log(columns2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(arr);
|
|
|
|
|
this.setState({
|
|
|
|
|
data: datalist,
|
|
|
|
|
datas: datalists,
|
|
|
|
@ -1313,23 +1335,44 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
// 设置数据
|
|
|
|
|
seacthdata = (teacherdata) => {
|
|
|
|
|
console.log("1326");
|
|
|
|
|
console.log(this.props.isNotMember());
|
|
|
|
|
let datalist = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var arr =[];
|
|
|
|
|
for(var i=0;i<this.state.columnsstu.length;i++){
|
|
|
|
|
var item = this.state.columnsstu[i];
|
|
|
|
|
if (this.state.work_efficiency === false) {
|
|
|
|
|
if (item.title === "关卡得分") {
|
|
|
|
|
|
|
|
|
|
} else if (item.title === "效率分") {
|
|
|
|
|
if(this.props.isNotMember()===true){
|
|
|
|
|
if(item.title==="关卡得分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="效率分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="最终成绩") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="学号") {
|
|
|
|
|
continue
|
|
|
|
|
}else{
|
|
|
|
|
arr.push(item);
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
if (this.state.work_efficiency === false) {
|
|
|
|
|
if (item.title === "关卡得分") {
|
|
|
|
|
continue
|
|
|
|
|
} else if (item.title === "效率分") {
|
|
|
|
|
continue
|
|
|
|
|
}else{
|
|
|
|
|
arr.push(item);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
arr.push(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
arr.push(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
let columns2= arr;
|
|
|
|
@ -1715,66 +1758,144 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
if (work_efficiency === false) {
|
|
|
|
|
if(JSON.stringify(course_group_info) === "[]"|| course_group_info === undefined||course_group_info === null){
|
|
|
|
|
//这里没有分班 没有 关卡得分 没有效率分
|
|
|
|
|
console.log("1739");
|
|
|
|
|
console.log(this.props.isNotMember());
|
|
|
|
|
for(var i=0;i< this.state.columns.length;i++){
|
|
|
|
|
var item = this.state.columns[i];
|
|
|
|
|
if(item.title==="分班"){
|
|
|
|
|
}
|
|
|
|
|
else if(item.title==="关卡得分"){
|
|
|
|
|
}
|
|
|
|
|
else if(item.title==="效率分"){
|
|
|
|
|
}
|
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
|
|
|
|
|
|
if(this.props.isNotMember()===true){
|
|
|
|
|
if(item.title==="关卡得分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="效率分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="最终成绩") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="学号") {
|
|
|
|
|
continue
|
|
|
|
|
}else{
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
if(item.title==="分班"){
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="关卡得分"){
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="效率分"){
|
|
|
|
|
continue
|
|
|
|
|
}else {
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
console.log("1767");
|
|
|
|
|
console.log(this.props.isNotMember());
|
|
|
|
|
if(course_group_info.length < 2){
|
|
|
|
|
for(var i=0;i< this.state.columns.length;i++){
|
|
|
|
|
var item = this.state.columns[i];
|
|
|
|
|
if(item.title==="分班"){
|
|
|
|
|
}
|
|
|
|
|
else if(item.title==="关卡得分"){
|
|
|
|
|
}
|
|
|
|
|
else if(item.title==="效率分"){
|
|
|
|
|
}
|
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
|
|
|
|
|
|
if(this.props.isNotMember()===true){
|
|
|
|
|
if(item.title==="关卡得分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="效率分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="最终成绩") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="学号") {
|
|
|
|
|
continue
|
|
|
|
|
}else{
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
if(item.title==="分班"){
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="关卡得分"){
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="效率分"){
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
console.log("1795");
|
|
|
|
|
console.log(this.props.isNotMember());
|
|
|
|
|
for(var i=0;i< this.state.columns.length;i++){
|
|
|
|
|
var item = this.state.columns[i];
|
|
|
|
|
if(item.title==="关卡得分"){
|
|
|
|
|
}
|
|
|
|
|
else if(item.title==="效率分"){
|
|
|
|
|
}
|
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
|
|
|
|
|
|
if(this.props.isNotMember()===true){
|
|
|
|
|
if(item.title==="关卡得分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="效率分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="最终成绩") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="学号") {
|
|
|
|
|
continue
|
|
|
|
|
}else{
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
if(item.title==="关卡得分"){
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="效率分"){
|
|
|
|
|
continue
|
|
|
|
|
}else {
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
console.log("1821");
|
|
|
|
|
console.log(this.props.isNotMember());
|
|
|
|
|
if(JSON.stringify(course_group_info) === "[]"|| course_group_info === undefined || course_group_info === null){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(var i=0;i< this.state.columns.length;i++){
|
|
|
|
|
var item = this.state.columns[i];
|
|
|
|
|
if(item.title==="分班"){
|
|
|
|
|
}
|
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
|
|
|
|
|
|
if(this.props.isNotMember()===true){
|
|
|
|
|
if(item.title==="关卡得分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="效率分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="最终成绩") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="学号") {
|
|
|
|
|
continue
|
|
|
|
|
}else{
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
if(item.title==="分班"){
|
|
|
|
|
continue
|
|
|
|
|
}else{
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1782,15 +1903,34 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
console.log("1849");
|
|
|
|
|
console.log(this.props.isNotMember());
|
|
|
|
|
if(course_group_info.length < 2) {
|
|
|
|
|
for(var i=0;i< this.state.columns.length;i++){
|
|
|
|
|
var item = this.state.columns[i];
|
|
|
|
|
if(item.title==="分班"){
|
|
|
|
|
}
|
|
|
|
|
else if(this.props.isNotMember()===true&&item.title==="学号") {
|
|
|
|
|
|
|
|
|
|
if(this.props.isNotMember()===true){
|
|
|
|
|
if(item.title==="关卡得分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="效率分") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="最终成绩") {
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
if(item.title==="学号") {
|
|
|
|
|
continue
|
|
|
|
|
}else{
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
if(item.title==="分班"){
|
|
|
|
|
continue
|
|
|
|
|
}else{
|
|
|
|
|
columns2js.push(item);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1803,6 +1943,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
//
|
|
|
|
|
// console.log(datalist);
|
|
|
|
|
// console.log("1712");
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
datajs: datalistjs,
|
|
|
|
|
columns: columns2js,
|
|
|
|
@ -2628,7 +2769,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
|
|
|
|
|
<div className={"justify break_full_word new_li edu-back-white"} style={{minHeight: "480px"}}>
|
|
|
|
|
<div className={"justify break_full_word new_li "} style={{minHeight: "480px"}}>
|
|
|
|
|
<style>{`
|
|
|
|
|
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
|
|
|
|
|
top: 72%;}
|
|
|
|
@ -2647,7 +2788,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
padding: 9px;
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
<div className="edu-table edu-back-white ant-tables ysltableo">
|
|
|
|
|
<div className="edu-table edu-back-white ant-tables ysltableo table1">
|
|
|
|
|
{datajs === undefined ? "" : <Table
|
|
|
|
|
dataSource={datajs}
|
|
|
|
|
columns={columns}
|
|
|
|
@ -2822,7 +2963,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div className={"justify break_full_word new_li edu-back-white"}
|
|
|
|
|
<div className={"justify break_full_word new_li"}
|
|
|
|
|
style={{minHeight: "480px"}}>
|
|
|
|
|
<style>{`
|
|
|
|
|
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
|
|
|
|
@ -2838,7 +2979,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
padding: 9px;
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
<div className="edu-table edu-back-white ysltableow">
|
|
|
|
|
<div className="edu-table edu-back-white ysltableow table2">
|
|
|
|
|
{data === undefined ? "" : <Table
|
|
|
|
|
dataSource={data}
|
|
|
|
|
columns={columnsstu}
|
|
|
|
@ -2925,7 +3066,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="edu-table edu-back-white ysltableows">
|
|
|
|
|
<div className="edu-table edu-back-white ysltableows table3">
|
|
|
|
|
{data === undefined ? "" : <Table
|
|
|
|
|
style={styletable}
|
|
|
|
|
dataSource={data}
|
|
|
|
@ -3034,7 +3175,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className={"justify break_full_word new_li edu-back-white"}
|
|
|
|
|
<div className={"justify break_full_word new_li"}
|
|
|
|
|
style={{minHeight: "480px"}}>
|
|
|
|
|
<style>{`
|
|
|
|
|
.ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
|
|
|
|
@ -3050,7 +3191,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
padding: 9px;
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
<div className="edu-table edu-back-white ysltableowss">
|
|
|
|
|
<div className="edu-table edu-back-white ysltableowss table4">
|
|
|
|
|
{datas === undefined ? "" : <Table
|
|
|
|
|
dataSource={datas}
|
|
|
|
|
columns={columnsstu}
|
|
|
|
|