自己分支调整

dev_cs
杨树林 5 years ago
parent 671e05622d
commit 6be83e182d

@ -93,27 +93,32 @@ class Listofworksstudentone extends Component {
key: 'number',
align: "center",
className:'font-14',
width:'100px',
render: (text, record) => (
<span>
<span style={{width:'100px'}}>
{record.number === undefined ?
<span style={{
color: '#9A9A9A',
textAlign: "center"
textAlign: "center",
width:'100px'
}}> --</span>
: record.number === "" ?
<span style={{
color: '#9A9A9A',
textAlign: "center"
textAlign: "center",
width:'100px'
}}>--</span>
: record.number === "--" ?
<span style={{
color: '#9A9A9A',
textAlign: "center"
textAlign: "center",
width:'100px'
}}>--</span>
:
<span style={{
color: '#07111B',
textAlign: "center"
textAlign: "center",
width:'100px'
}}> {record.number}</span>
}
</span>
@ -124,37 +129,42 @@ class Listofworksstudentone extends Component {
dataIndex: 'name',
key: 'name',
align: "center",
className:'font-14 maxnamewidth100',
className:'font-14 maxnamewidth110',
width:'100px',
render: (text, record) => (
<span className="maxnamewidth100">
<span className="maxnamewidth110">
{record.name === undefined ?
<span style={{
"color": '#9A9A9A',
textAlign: "center"
color: '#9A9A9A',
textAlign: "center",
width:'100px'
}}>--</span>
:
record.name === "" ?
<span style={{
"color": '#9A9A9A',
textAlign: "center"
color: '#9A9A9A',
textAlign: "center",
width:'100px'
}}>--</span>
:
record.name === null ?
<span style={{
"color": '#9A9A9A',
textAlign: "center"
color: '#9A9A9A',
textAlign: "center",
width:'100px'
}}>--</span>
:
record.name === "--" ?
<span style={{
"color": '#9A9A9A',
textAlign: "center"
color: '#9A9A9A',
textAlign: "center",
width:'100px'
}}>--</span>
:
<a className="maxnamewidth100" title={record.name} style={{
"color": '#07111B',
textAlign: "center"
<a className="maxnamewidth110" title={record.name} style={{
color: '#07111B',
textAlign: "center",
width:'100px'
}}>{record.name}</a>
}
@ -166,34 +176,41 @@ class Listofworksstudentone extends Component {
dataIndex: 'stduynumber',
key: 'stduynumber',
align: "center",
className:'font-14 maxnamewidth110',
className:'font-14 maxnamewidth145',
width:'145px',
render: (text, record) => (
<span className="maxnamewidth110">
<span className="maxnamewidth145" style={{
width:'145px',
}}>
{record.stduynumber === undefined ?
<span style={{
"color": '#9A9A9A',
textAlign: "center"
color: '#9A9A9A',
textAlign: "center",
width:'145px',
}}>--
</span>
: record.stduynumber === null ?
<span style={{
"color": '#9A9A9A',
textAlign: "center"
color: '#9A9A9A',
textAlign: "center",
width:'145px',
}}>--
</span>
: record.stduynumber === "" ?
<span style={{
"color": '#9A9A9A',
textAlign: "center"
color: '#9A9A9A',
textAlign: "center",
width:'145px',
}}>--
</span>
:
<a
title={record.stduynumber}
className="maxnamewidth110"
className="maxnamewidth145"
style={{
"color": '#9A9A9A',
textAlign: "center"
color:'#9A9A9A',
textAlign: "center",
width:'145px',
}}>{
record.stduynumber
}
@ -210,11 +227,13 @@ class Listofworksstudentone extends Component {
dataIndex: 'classroom',
align: "center",
className:'font-14',
width:'145px',
render: (text, record) => (
<span>
<span className="ysltable" style={{
"color": '#9A9A9A',
textAlign: "center"
<span className="font-14 maxnamewidth145" style={{width:'145px'}}>
<span className=" font-14 maxnamewidth145" style={{
color: '#9A9A9A',
textAlign: "center",
width:'145px',
}}>{record.classroom === undefined ? "--" : record.classroom === "" ? "--" : record.classroom === null ? "--" : record.classroom}</span>
</span>
),
@ -225,14 +244,17 @@ class Listofworksstudentone extends Component {
key: 'submitstate',
align: "center",
className:'font-14',
width:'98px',
render: (text, record) => (
<span>
<span style={{width:'98px',}}>
<span style={record.submitstate === "延时提交" ? {
"color": '#DD1717',
textAlign: "center"
} : record.submitstate === "按时提交" ? {"color": '#29BD8B', textAlign: "center"} : {
"color": '#747A7F',
textAlign: "center"
color: '#DD1717',
textAlign: "center",
width:'98px',
} : record.submitstate === "按时提交" ? {color: '#29BD8B', textAlign: "center",width:'98px',} : {
color: '#747A7F',
textAlign: "center",
width:'98px',
}}>{record.submitstate === undefined ? "--" : record.submitstate === "" ? "--" : record.submitstate === null ? "--" : record.submitstate}</span>
</span>
@ -244,11 +266,13 @@ class Listofworksstudentone extends Component {
key: 'cost_time',
align: 'center',
className:'font-14',
width:'145px',
render: (text, record) => (
<span style={
{
color: '#747A7F',
textAlign: "center"
textAlign: "center",
width:'145px',
}
}>
{record.cost_time === null? "--":record.cost_time === undefined?"--":record.cost_time === "--"?"--":
@ -258,7 +282,8 @@ class Listofworksstudentone extends Component {
<span style={
{
color: '#747A7F',
textAlign: "center"
textAlign: "center",
width:'145px',
}
}
>{record.cost_time === null ? "--":record.cost_time === undefined ?"--":record.cost_time}
@ -278,7 +303,7 @@ class Listofworksstudentone extends Component {
// render: (text, record) => (
// <span>
// <span style={{
// "color": '#9A9A9A',
// color: '#9A9A9A',
// "text-align": "center"
// }}>{record.updatetime === undefined ? "--" : record.updatetime === "" ? "--" : record.updatetime}</span>
// </span>
@ -290,9 +315,12 @@ class Listofworksstudentone extends Component {
key: 'completion',
align: "center",
className:'font-14',
width:'99px',
render: (text, record) => (
<span>
<span style={{color: '#07111B',textAlign: "center"}}>{record.completion+"/"+this.state.challenges_count}</span>
<span style={{
width:'99px',
}}>
<span style={{color: '#07111B',textAlign: "center", width:'99px'}}>{record.completion+"/"+this.state.challenges_count}</span>
</span>
),
},
@ -302,17 +330,23 @@ class Listofworksstudentone extends Component {
key: 'levelscore',
align: 'center',
className:'font-14',
width:'99px',
render: (text, record) => (
<span>
<span style={{
width:'99px',
}}>
<span style={parseInt(record.levelscore) <= 60 ? {
color: '#747A7F',
textAlign: "center"
textAlign: "center",
width:'99px',
} : parseInt(record.levelscore) < 90 ? {
color: '#FF6800',
textAlign: "center"
} : parseInt(record.levelscore) >= 90 ? {color: '#DD1717', textAlign: "center"} : {
textAlign: "center",
width:'99px',
} : parseInt(record.levelscore) >= 90 ? {color: '#DD1717', textAlign: "center", width:'99px',} : {
color: '#747A7F',
textAlign: "center"
textAlign: "center",
width:'99px',
}}>{record.levelscore}</span>
</span>
)
@ -323,25 +357,31 @@ class Listofworksstudentone extends Component {
key: 'efficiencyscore',
align: 'center',
className:'font-14',
width:'80px',
render: (text, record) => (
<span>
<span style={{
width:'80px',
}}>
{
record.efficiencyscore&& record.efficiencyscore=== "--"?(
<span style={{color:"#9A9A9A"}}>
<span style={{color:"#9A9A9A", width:'80px',}}>
--
</span>
)
:
<span style={parseInt(record.efficiencyscore) <= 60 ? {
color: '#747A7F',
textAlign: "center"
textAlign: "center",
width:'80px',
} : parseInt(record.efficiencyscore) < 90 ? {
color: '#FF6800',
textAlign: "center"
textAlign: "center",
width:'80px',
} : parseInt(record.efficiencyscore) >= 90 ? {
color: '#DD1717',
textAlign: "center"
} : {color: '#747A7F', textAlign: "center"}}>{record.efficiencyscore}</span>
textAlign: "center",
width:'80px',
} : {color: '#747A7F', textAlign: "center", width:'80px',}}>{record.efficiencyscore}</span>
}
</span>
@ -353,19 +393,22 @@ class Listofworksstudentone extends Component {
key: 'levelscore',
align: "center",
className:'font-14',
width:'99px',
render: (text, record) => (
<span>
<span style={{width:'99px',}}>
{
record.levelscore && record.levelscore === "--"?
<span style={{color: '#9A9A9A', textAlign: "center"}}>{record.levelscore}</span>
<span style={{color: '#9A9A9A', textAlign: "center",width:'99px',}}>{record.levelscore}</span>
:
<span style={parseInt(record.levelscore) >=90 ? {
color: '#DD1717',
textAlign: "center"
textAlign: "center",
width:'99px',
} : parseInt(record.levelscore) <= 60?{
color: '#FF6800',
textAlign: "center",
}: {color: '#747A7F', textAlign: "center"}}>{record.levelscore}</span>
width:'99px',
}: {color: '#747A7F', textAlign: "center",width:'99px',}}>{record.levelscore}</span>
}
</span>
@ -391,7 +434,6 @@ class Listofworksstudentone extends Component {
),
},
],
orders: "",
b_order:"desc",
allow_late:false,
@ -408,8 +450,8 @@ class Listofworksstudentone extends Component {
course_group: null,
publish_immediately: undefined,
end_immediately: undefined,
mystyle: {"display": "block", "color": '#07111B', textAlign: "center"},
mystyles: {"display": "none", "color": '#07111B', textAlign: "center"},
mystyle: {"display": "block", color: '#07111B', textAlign: "center"},
mystyles: {"display": "none", color: '#07111B', textAlign: "center"},
mystyle1: {"display": "block"},
mystyles1: {"display": "none"},
unlimited: 0,
@ -426,7 +468,7 @@ class Listofworksstudentone extends Component {
align: 'center',
className:'font-14',
render: (text, record) => (
<span style={{"color": '#07111B', textAlign: "center"}}>{record.number}
<span style={{color: '#07111B', textAlign: "center"}}>{record.number}
</span>
)
},
@ -438,7 +480,7 @@ class Listofworksstudentone extends Component {
className:'font-14 maxnamewidth100',
width:'100px',
render: (text, record) => (
<a className="maxnamewidth100" title={record.name} style={{"color": '#07111B', textAlign: "center"}}>{record.name}</a>
<a className="maxnamewidth100" title={record.name} style={{color: '#07111B', textAlign: "center"}}>{record.name}</a>
)
},
{
@ -492,7 +534,7 @@ class Listofworksstudentone extends Component {
className:'font-14',
render: (text, record) => (
<span>
{record.classroom === undefined ?<span className="ysltable" style={{"color": '#07111B', textAlign: "center"}}> --</span> : record.classroom === "" ? <span className="ysltable" style={{"color": '#07111B',textAlign: "center"}}>--</span>: record.classroom === null ? <span className="ysltable" style={{"color": '#07111B', textAlign: "center"}}>--</span> : <span className="ysltable" style={{"color": '#07111B',textAlign: "center"}}>{record.classroom}</span>}
{record.classroom === undefined ?<span className="ysltable" style={{color: '#07111B', textAlign: "center"}}> --</span> : record.classroom === "" ? <span className="ysltable" style={{color: '#07111B',textAlign: "center"}}>--</span>: record.classroom === null ? <span className="ysltable" style={{color: '#07111B', textAlign: "center"}}>--</span> : <span className="ysltable" style={{color: '#07111B',textAlign: "center"}}>{record.classroom}</span>}
</span>
)
},
@ -544,7 +586,7 @@ class Listofworksstudentone extends Component {
</span>
// <a style={
// {
// "color": '#747A7F',
// color: '#747A7F',
// "text-align": "center"
// }
// }
@ -561,7 +603,7 @@ class Listofworksstudentone extends Component {
// align: 'center',
// className:'font-14',
// render: (text, record) => (
// <span style={{"color": '#9A9A9A', "text-align": "center"}}>{record.updatetime}</span>
// <span style={{color: '#9A9A9A', "text-align": "center"}}>{record.updatetime}</span>
// ),
// },
{
@ -576,7 +618,7 @@ class Listofworksstudentone extends Component {
<Tooltip placement="bottom" title={<div>
<div>已通过{record.completion}{this.state.challenges_count}</div>
</div>}>
<span style={{"color": '#07111B', "text-align": "center"}}>{record.completion+"/"+this.state.challenges_count} </span>
<span style={{color: '#07111B', "text-align": "center"}}>{record.completion+"/"+this.state.challenges_count} </span>
</Tooltip>
</span>
@ -591,13 +633,13 @@ class Listofworksstudentone extends Component {
render: (text, record) => (
<span>
<span style={parseInt(record.levelscore) <= 60 ? {
"color": '#747A7F',
color: '#747A7F',
"text-align": "center"
} : parseInt(record.levelscore) < 90 ? {
"color": '#FF6800',
color: '#FF6800',
"text-align": "center"
} : parseInt(record.levelscore) >= 90 ? {"color": '#DD1717', "text-align": "center"} : {
"color": '#747A7F',
} : parseInt(record.levelscore) >= 90 ? {color: '#DD1717', "text-align": "center"} : {
color: '#747A7F',
"text-align": "center"
}}>{record.levelscore}</span>
</span>
@ -637,15 +679,15 @@ class Listofworksstudentone extends Component {
)
:
<span style={parseInt(record.efficiencyscore) <= 60 ? {
"color": '#747A7F',
color: '#747A7F',
"text-align": "center"
} : parseInt(record.efficiencyscore) < 90 ? {
"color": '#FF6800',
color: '#FF6800',
"text-align": "center"
} : parseInt(record.efficiencyscore) >= 90 ? {
"color": '#DD1717',
color: '#DD1717',
"text-align": "center"
} : {"color": '#747A7F', "text-align": "center"}}>{record.efficiencyscore}</span>
} : {color: '#747A7F', "text-align": "center"}}>{record.efficiencyscore}</span>
}
</span>
@ -669,18 +711,18 @@ class Listofworksstudentone extends Component {
record.finalscore&&record.finalscore==="--"?
<span style=
{{
"color": '#9A9A9A',
color: '#9A9A9A',
"text-align": "center"
}}>{record.finalscore}</span>
:
<span style={parseInt(record.finalscore) <= 60 ? {
"color": '#747A7F',
color: '#747A7F',
"text-align": "center"
} : parseInt(record.finalscore) < 90 ? {
"color": '#FF6800',
color: '#FF6800',
"text-align": "center"
} : parseInt(record.finalscore) >= 90 ? {"color": '#DD1717', "text-align": "center"} : {
"color": '#747A7F',
} : parseInt(record.finalscore) >= 90 ? {color: '#DD1717', "text-align": "center"} : {
color: '#747A7F',
"text-align": "center"
}}>{record.finalscore}</span>
}
@ -697,18 +739,18 @@ class Listofworksstudentone extends Component {
record.finalscore&&record.finalscore==="--"?
<span style=
{{
"color": '#9A9A9A',
color: '#9A9A9A',
"text-align": "center"
}}>{record.finalscore}</span>
:
<span style={parseInt(record.finalscore) <= 60 ? {
"color": '#747A7F',
color: '#747A7F',
"text-align": "center"
} : parseInt(record.finalscore) < 90 ? {
"color": '#FF6800',
color: '#FF6800',
"text-align": "center"
} : parseInt(record.finalscore) >= 90 ? {"color": '#DD1717', "text-align": "center"} : {
"color": '#747A7F',
} : parseInt(record.finalscore) >= 90 ? {color: '#DD1717', "text-align": "center"} : {
color: '#747A7F',
"text-align": "center"
}}>{record.finalscore}</span>
}
@ -742,7 +784,7 @@ class Listofworksstudentone extends Component {
align: 'center',
className:'font-14',
render: (text, record) => (
<span style={{"color": '#07111B', "text-align": "center"}}>{record.number}
<span style={{color: '#07111B', "text-align": "center"}}>{record.number}
</span>
)
},
@ -754,7 +796,7 @@ class Listofworksstudentone extends Component {
className:'font-14 maxnamewidth100',
width:'100px',
render: (text, record) => (
<a className="maxnamewidth100" title={record.name} style={{"color": '#07111B', "text-align": "center"}}>{record.name}</a>
<a className="maxnamewidth100" title={record.name} style={{color: '#07111B', "text-align": "center"}}>{record.name}</a>
)
},
{
@ -767,19 +809,19 @@ class Listofworksstudentone extends Component {
<span className="maxnamewidth110">
{record.stduynumber === undefined ?
<span style={{
"color": '#9A9A9A',
color: '#9A9A9A',
"text-align": "center"
}}>--
</span>
: record.stduynumber === null ?
<span style={{
"color": '#9A9A9A',
color: '#9A9A9A',
"text-align": "center"
}}>--
</span>
: record.stduynumber === "" ?
<span style={{
"color": '#9A9A9A',
color: '#9A9A9A',
"text-align": "center"
}}>--
</span>
@ -837,7 +879,7 @@ class Listofworksstudentone extends Component {
// align: 'center',
// className:'font-14',
// render: (text, record) => (
// <span style={{"color": '#9A9A9A', "text-align": "center"}}>{record.updatetime}</span>
// <span style={{color: '#9A9A9A', "text-align": "center"}}>{record.updatetime}</span>
// ),
// },
{
@ -1044,10 +1086,6 @@ class Listofworksstudentone extends Component {
datajs:[],
}
// console.log("902");
// console.log("902");
// console.log(this.props);
}
componentDidCatch(error, info){
console.log("-----------------------------905错误信息");

@ -38,13 +38,27 @@
.TopicDetailTable .bottomBody li:last-child{border-bottom: none;}
.maxnamewidth100{
max-width: 145px;
max-width: 100px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
cursor: default;
}
.maxnamewidth110{
max-width: 100px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
cursor: default;
}
.maxnamewidth145{
max-width: 145px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
cursor: default;
}
.maxnamewidth145{
max-width: 145px;
overflow:hidden;
text-overflow:ellipsis;

Loading…
Cancel
Save