diff --git a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js index 33362df65..a84347e25 100644 --- a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js +++ b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js @@ -67,14 +67,13 @@ class Studentshavecompletedthelist extends Component { dataIndex: 'number', key: 'number', align: 'center', - width: "84px", - className: "edu-txt-center", + className: "edu-txt-center font-14", render: (text, record) => ( {record.number === "--" ? - {record.number} + {record.number} : - {record.number} + {record.number} } @@ -85,14 +84,13 @@ class Studentshavecompletedthelist extends Component { dataIndex: 'name', key: 'name', align: 'center', - className: "edu-txt-center", - width: "110px", + className: "edu-txt-center font-14", render: (text, record) => ( {record.name === "--" ? - {record.name} + {record.name} : - {record.name} + {record.name} } @@ -103,28 +101,24 @@ class Studentshavecompletedthelist extends Component { dataIndex: 'stduynumber', key: 'stduynumber', align: 'center', - className: "edu-txt-center", - width: "175px", + className: "edu-txt-center font-14", render: (text, record) => ( {record.stduynumber === null ? -- : + }}>-- : record.stduynumber === "" ? -- : + }}>-- : {record.stduynumber} + }}>{record.stduynumber} } @@ -136,27 +130,23 @@ class Studentshavecompletedthelist extends Component { dataIndex: 'classroom', align: 'center', className: "edu-txt-center", - width: "120px", - render: (text, record) => ( + render: (text, record) => ( {record.classroom === null ? -- : + }}>-- : record.classroom === "" ? -- : + }}>-- : {record.classroom} + }}>{record.classroom} } @@ -167,19 +157,16 @@ class Studentshavecompletedthelist extends Component { dataIndex: 'submitstate', key: 'submitstate', align: 'center', - width: "124px", - className: "edu-txt-center", + className: "edu-txt-center", render: (text, record) => ( {record.submitstate} + }}>{record.submitstate} ) @@ -190,13 +177,12 @@ class Studentshavecompletedthelist extends Component { key: 'updatetime', align: 'center', className: "edu-txt-center", - width: "236.4px", - render: (text, record) => ( + render: (text, record) => ( {record.updatetime === "--" ? - {record.updatetime} + {record.updatetime} : - {record.updatetime} + {record.updatetime} } ), @@ -207,36 +193,30 @@ class Studentshavecompletedthelist extends Component { key: 'completion', align: 'center', className: "edu-txt-center", - width: "124px", - render: (text, record) => ( + render: (text, record) => ( { record.completion === "--" ? + }}> {record.completion} : 90 ? { "color": '#DD1717', "text-align": "center" - , "width": "124px" - } : parseInt(record.completion) <= 90 ? { + } : parseInt(record.completion) <= 90 ? { "color": '#FF6800', "text-align": "center" - , "width": "124px" - } : parseInt(record.completion) <= 60 ? { + } : parseInt(record.completion) <= 60 ? { "color": '#747A7F', "text-align": "center" - , "width": "124px" - } : + } : { "color": '#747A7F', "text-align": "center" - , "width": "124px" - }}>{record.completion} + }}>{record.completion} } @@ -247,32 +227,27 @@ class Studentshavecompletedthelist extends Component { dataIndex: 'levelscore', key: 'levelscore', align: 'center', - width: "124px", - className: "edu-txt-center", + className: "edu-txt-center", render: (text, record) => ( {record.levelscore === "--" ? + }}> {record.levelscore} : 90 ? { "color": '#DD1717', "text-align": "center" - , "width": "124px" - } : parseInt(record.levelscore) <= 90 ? { + } : parseInt(record.levelscore) <= 90 ? { "color": '#FF6800', "text-align": "center" - , "width": "124px" - } : parseInt(record.levelscore) <= 60 ? { + } : parseInt(record.levelscore) <= 60 ? { "color": '#747A7F', "text-align": "center" - , "width": "124px" - } : {"color": '#747A7F', "text-align": "center"}}>{record.levelscore} + } : {"color": '#747A7F', "text-align": "center"}}>{record.levelscore} } ) @@ -282,35 +257,30 @@ class Studentshavecompletedthelist extends Component { dataIndex: 'efficiencyscore', key: 'efficiencyscore', align: 'center', - width: "124px", - className: "edu-txt-center", + className: "edu-txt-center", render: (text, record) => ( {record.efficiencyscore === "--" ? + }}> {record.efficiencyscore} : 90 ? { "color": '#DD1717', "text-align": "center" - , "width": "124px" - } : parseInt(record.efficiencyscore) <= 90 ? { + } : parseInt(record.efficiencyscore) <= 90 ? { "color": '#FF6800', "text-align": "center" - , "width": "124px" - } : parseInt(record.efficiencyscore) <= 60 ? { + } : parseInt(record.efficiencyscore) <= 60 ? { "color": '#747A7F', "text-align": "center", } : { "color": '#747A7F', "text-align": "center" - , "width": "124px" - }}>{record.efficiencyscore} + }}>{record.efficiencyscore} } ) @@ -1013,6 +983,10 @@ class Studentshavecompletedthelist extends Component { } // console.log("Studentshavecompletedthelist"); // console.log(props.current_status); + // columnsys 老师列表 + // columnss 学生只能看自己的 未截止页面 + // columnstwo 截止显示自己的 + // columns 截止后显示其他学生 } paginationonChange = (pageNumber) => { @@ -4715,8 +4689,9 @@ class Studentshavecompletedthelist extends Component { (
+ {/*老师*/}