试卷、个人中心功能调整

courseware
杨树明 5 years ago
parent de4b8ecd47
commit 62c6a1b0f8

@ -14,9 +14,9 @@ function CommonWorkAppraiseReviseAttachments(props) {
} }
`}</style> `}</style>
<div className={"color-grey-6 mb10 font-16"}> <div className={"color-grey-6 mb10 font-16"}>
补交附件 补交内容
</div> </div>
{/* {age} */} {/* {age} */}
<div className={"ml20"}> <div className={"ml20"}>
@ -47,6 +47,6 @@ function CommonWorkAppraiseReviseAttachments(props) {
</div>} </div>}
</React.Fragment> </React.Fragment>
) )
} }
export default CommonWorkAppraiseReviseAttachments; export default CommonWorkAppraiseReviseAttachments;

@ -295,10 +295,10 @@ class Studentshavecompletedthelist extends Component {
) )
}, },
{ {
title:<span>最终成绩<Tooltip placement="top" visible={true} title={<pre> title:<span>最终成绩<Tooltip placement="top" title={<pre>
鼠标停留具体分值上可查<br/> 鼠标停留具体分值上可查<br/>
看得分明细<br/> 看得分明细<br/>
</pre>}></Tooltip></span>, </pre>}><img src={getImageUrl("images/educoder/problem.png")} className={"ml2"}/></Tooltip></span>,
dataIndex: 'efficiencyscore', dataIndex: 'efficiencyscore',
key: 'efficiencyscore', key: 'efficiencyscore',
align: 'center', align: 'center',
@ -340,6 +340,22 @@ class Studentshavecompletedthelist extends Component {
}}>{record.efficiencyscore}</span> }}>{record.efficiencyscore}</span>
</Tooltip> </Tooltip>
: :
<Tooltip placement="right" title={<div>
<div>{record.objective_score===undefined?"":record.objective_score === "--" ? <span>客观题得分0</span> :
<span>客观题得分{record.objective_score}</span>}
</div>
<div>{record.subjective_score===undefined?"":record.subjective_score === "--" ? <span>主观题得分0</span> :
<span>主观题得分{record.subjective_score}</span>}
</div>
<div>{record.efficiencyscore === "--" ? <span>最终成绩0</span> :
<span>最终成绩{record.efficiencyscore}</span>}
</div>
</div>
}>
<span style={parseInt(record.efficiencyscore) > 90 ? { <span style={parseInt(record.efficiencyscore) > 90 ? {
color: '#DD1717', color: '#DD1717',
textAlign: "center" textAlign: "center"
@ -353,6 +369,7 @@ class Studentshavecompletedthelist extends Component {
color: '#747A7F', color: '#747A7F',
textAlign: "center" textAlign: "center"
}}>{record.efficiencyscore}</span> }}>{record.efficiencyscore}</span>
</Tooltip>
} }
</span> </span>
) )
@ -590,10 +607,10 @@ class Studentshavecompletedthelist extends Component {
) )
}, },
{ {
title:<span>最终成绩<Tooltip placement="top" visible={true} title={<pre> title:<span>最终成绩<Tooltip placement="top" title={<pre>
鼠标停留具体分值上可查<br/> 鼠标停留具体分值上可查<br/>
看得分明细<br/> 看得分明细<br/>
</pre>}></Tooltip></span>, </pre>}><img src={getImageUrl("images/educoder/problem.png")} className={"ml2"}/></Tooltip></span>,
dataIndex: 'efficiencyscore', dataIndex: 'efficiencyscore',
key: 'efficiencyscore', key: 'efficiencyscore',
align: 'center', align: 'center',
@ -637,6 +654,22 @@ class Studentshavecompletedthelist extends Component {
}}>{record.efficiencyscore}</span> }}>{record.efficiencyscore}</span>
</Tooltip> </Tooltip>
: :
<Tooltip placement="right" title={<div>
<div>{record.objective_score===undefined?"":record.objective_score === "--" ? <span>客观题得分0</span> :
<span>客观题得分{record.objective_score}</span>}
</div>
<div>{record.subjective_score===undefined?"":record.subjective_score === "--" ? <span>主观题得分0</span> :
<span>主观题得分{record.subjective_score}</span>}
</div>
<div>{record.efficiencyscore === "--" ? <span>最终成绩0</span> :
<span>最终成绩{record.efficiencyscore}</span>}
</div>
</div>
}>
<span style={parseInt(record.efficiencyscore) > 90 ? { <span style={parseInt(record.efficiencyscore) > 90 ? {
color: '#DD1717', color: '#DD1717',
textAlign: "center", textAlign: "center",
@ -654,6 +687,7 @@ class Studentshavecompletedthelist extends Component {
textAlign: "center", textAlign: "center",
width:"199px" width:"199px"
}}>{record.efficiencyscore}</span> }}>{record.efficiencyscore}</span>
</Tooltip>
} }
</span> </span>
@ -877,10 +911,10 @@ class Studentshavecompletedthelist extends Component {
) )
}, },
{ {
title: <span>最终成绩<Tooltip placement="top" visible={true} title={<pre> title: <span>最终成绩<Tooltip placement="top" title={<pre>
鼠标停留具体分值上可查<br/> 鼠标停留具体分值上可查<br/>
看得分明细<br/> 看得分明细<br/>
</pre>}></Tooltip></span>, </pre>}><img src={getImageUrl("images/educoder/problem.png")} className={"ml2"}/></Tooltip></span>,
dataIndex: 'efficiencyscore', dataIndex: 'efficiencyscore',
key: 'efficiencyscore', key: 'efficiencyscore',
align: 'center', align: 'center',
@ -918,6 +952,22 @@ class Studentshavecompletedthelist extends Component {
}}>{record.efficiencyscore}</span> }}>{record.efficiencyscore}</span>
</Tooltip> </Tooltip>
: :
<Tooltip placement="right" title={<div>
<div>{record.objective_score===undefined?"":record.objective_score === "--" ? <span>客观题得分0</span> :
<span>客观题得分{record.objective_score}</span>}
</div>
<div>{record.subjective_score===undefined?"":record.subjective_score === "--" ? <span>主观题得分0</span> :
<span>主观题得分{record.subjective_score}</span>}
</div>
<div>{record.efficiencyscore === "--" ? <span>最终成绩0</span> :
<span>最终成绩{record.efficiencyscore}</span>}
</div>
</div>
}>
<span style={parseInt(record.efficiencyscore) > 90 ? { <span style={parseInt(record.efficiencyscore) > 90 ? {
color: '#DD1717', color: '#DD1717',
textAlign: "center", textAlign: "center",
@ -931,6 +981,7 @@ class Studentshavecompletedthelist extends Component {
color: '#747A7F', color: '#747A7F',
textAlign: "center", textAlign: "center",
}}>{record.efficiencyscore}</span> }}>{record.efficiencyscore}</span>
</Tooltip>
} }
</span> </span>
) )
@ -1104,10 +1155,10 @@ class Studentshavecompletedthelist extends Component {
) )
}, },
{ {
title: <span>最终成绩<Tooltip placement="top" visible={true} title={<pre> title: <span>最终成绩<Tooltip placement="top" title={<pre>
鼠标停留具体分值上可查<br/> 鼠标停留具体分值上可查<br/>
看得分明细<br/> 看得分明细<br/>
</pre>}></Tooltip></span>, </pre>}><img src={getImageUrl("images/educoder/problem.png")} className={"ml2"}/></Tooltip></span>,
dataIndex: 'efficiencyscore', dataIndex: 'efficiencyscore',
key: 'efficiencyscore', key: 'efficiencyscore',
align: 'center', align: 'center',
@ -1144,6 +1195,22 @@ class Studentshavecompletedthelist extends Component {
}}>{record.efficiencyscore}</span> }}>{record.efficiencyscore}</span>
</Tooltip> </Tooltip>
: :
<Tooltip placement="right" title={<div>
<div>{record.objective_score===undefined?"":record.objective_score === "--" ? <span>客观题得分0</span> :
<span>客观题得分{record.objective_score}</span>}
</div>
<div>{record.subjective_score===undefined?"":record.subjective_score === "--" ? <span>主观题得分0</span> :
<span>主观题得分{record.subjective_score}</span>}
</div>
<div>{record.efficiencyscore === "--" ? <span>最终成绩0</span> :
<span>最终成绩{record.efficiencyscore}</span>}
</div>
</div>
}>
<span style={parseInt(record.efficiencyscore) > 90 ? { <span style={parseInt(record.efficiencyscore) > 90 ? {
color: '#DD1717', color: '#DD1717',
textAlign: "center", textAlign: "center",
@ -1157,6 +1224,7 @@ class Studentshavecompletedthelist extends Component {
color: '#747A7F', color: '#747A7F',
textAlign: "center", textAlign: "center",
}}>{record.efficiencyscore}</span> }}>{record.efficiencyscore}</span>
</Tooltip>
} }
</span> </span>
) )
@ -1511,6 +1579,8 @@ class Studentshavecompletedthelist extends Component {
completion: exercise_users[i].objective_score === undefined ? "--" : exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score, completion: exercise_users[i].objective_score === undefined ? "--" : exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score,
levelscore: exercise_users[i].subjective_score === undefined ? "--" : exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score, levelscore: exercise_users[i].subjective_score === undefined ? "--" : exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score,
efficiencyscore: exercise_users[i].score === null ? "--" : exercise_users[i].score === "" ? "--" : exercise_users[i].score, efficiencyscore: exercise_users[i].score === null ? "--" : exercise_users[i].score === "" ? "--" : exercise_users[i].score,
objective_score: exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score,
subjective_score:exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score,
operating: "评阅", operating: "评阅",
commit_method:exercise_users[i].commit_method, commit_method:exercise_users[i].commit_method,
}) })
@ -1527,6 +1597,8 @@ class Studentshavecompletedthelist extends Component {
completion: exercise_users[i].objective_score === undefined ? "--" : exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score, completion: exercise_users[i].objective_score === undefined ? "--" : exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score,
levelscore: exercise_users[i].subjective_score === undefined ? "--" : exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score, levelscore: exercise_users[i].subjective_score === undefined ? "--" : exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score,
efficiencyscore: exercise_users[i].score === null ? "--" : exercise_users[i].score === "" ? "--" : exercise_users[i].score, efficiencyscore: exercise_users[i].score === null ? "--" : exercise_users[i].score === "" ? "--" : exercise_users[i].score,
objective_score: exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score,
subjective_score:exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score,
operating: "--", operating: "--",
commit_method:exercise_users[i].commit_method commit_method:exercise_users[i].commit_method
}) })
@ -1552,6 +1624,8 @@ class Studentshavecompletedthelist extends Component {
submitstate: current_answer_user.commit_status === 1 ? "已提交" : "未提交", submitstate: current_answer_user.commit_status === 1 ? "已提交" : "未提交",
updatetime: moment(current_answer_user.end_at).format('YYYY-MM-DD HH:mm') === "Invalid date" ? "--" : moment(current_answer_user.end_at).format('YYYY-MM-DD HH:mm'), updatetime: moment(current_answer_user.end_at).format('YYYY-MM-DD HH:mm') === "Invalid date" ? "--" : moment(current_answer_user.end_at).format('YYYY-MM-DD HH:mm'),
efficiencyscore: current_answer_user.score === undefined ? "--" : current_answer_user.score === null ? "--" : current_answer_user.score === "" ? "--" : current_answer_user.score, efficiencyscore: current_answer_user.score === undefined ? "--" : current_answer_user.score === null ? "--" : current_answer_user.score === "" ? "--" : current_answer_user.score,
objective_score: exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score,
subjective_score:exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score,
review_status: current_answer_user.review_status, review_status: current_answer_user.review_status,
completion: current_answer_user.objective_score === undefined ? "--" : current_answer_user.objective_score === null ? "--" : current_answer_user.objective_score === "" ? "--" : current_answer_user.objective_score, completion: current_answer_user.objective_score === undefined ? "--" : current_answer_user.objective_score === null ? "--" : current_answer_user.objective_score === "" ? "--" : current_answer_user.objective_score,
levelscore: current_answer_user.subjective_score === undefined ? "--" : current_answer_user.subjective_score === null ? "--" : current_answer_user.subjective_score === "" ? "--" : current_answer_user.subjective_score, levelscore: current_answer_user.subjective_score === undefined ? "--" : current_answer_user.subjective_score === null ? "--" : current_answer_user.subjective_score === "" ? "--" : current_answer_user.subjective_score,
@ -1594,6 +1668,8 @@ class Studentshavecompletedthelist extends Component {
completion: exercise_users[i].objective_score === undefined ? "--" : exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score, completion: exercise_users[i].objective_score === undefined ? "--" : exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score,
levelscore: exercise_users[i].subjective_score === undefined ? "--" : exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score, levelscore: exercise_users[i].subjective_score === undefined ? "--" : exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score,
efficiencyscore: exercise_users[i].score === null ? "--" : exercise_users[i].score === "" ? "--" : exercise_users[i].score, efficiencyscore: exercise_users[i].score === null ? "--" : exercise_users[i].score === "" ? "--" : exercise_users[i].score,
objective_score: exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score,
subjective_score:exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score,
operating: "查看", operating: "查看",
commit_method:exercise_users[i].commit_method, commit_method:exercise_users[i].commit_method,
}) })
@ -1739,6 +1815,8 @@ class Studentshavecompletedthelist extends Component {
completion: exercise_users[i].objective_score === undefined ? "--" : exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score, completion: exercise_users[i].objective_score === undefined ? "--" : exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score,
levelscore: exercise_users[i].subjective_score === undefined ? "--" : exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score, levelscore: exercise_users[i].subjective_score === undefined ? "--" : exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score,
efficiencyscore: exercise_users[i].score === undefined ? "--" : exercise_users[i].score === null ? "--" : exercise_users[i].score === "" ? "--" : exercise_users[i].score, efficiencyscore: exercise_users[i].score === undefined ? "--" : exercise_users[i].score === null ? "--" : exercise_users[i].score === "" ? "--" : exercise_users[i].score,
objective_score: exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score,
subjective_score:exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score,
finalscore: "评阅", finalscore: "评阅",
user_id: exercise_users[i].user_id, user_id: exercise_users[i].user_id,
commit_method:exercise_users[i].commit_method commit_method:exercise_users[i].commit_method
@ -1756,6 +1834,8 @@ class Studentshavecompletedthelist extends Component {
completion: exercise_users[i].objective_score === undefined ? "--" : exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score, completion: exercise_users[i].objective_score === undefined ? "--" : exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score,
levelscore: exercise_users[i].subjective_score === undefined ? "--" : exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score, levelscore: exercise_users[i].subjective_score === undefined ? "--" : exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score,
efficiencyscore: exercise_users[i].score === undefined ? "--" : exercise_users[i].score === null ? "--" : exercise_users[i].score === "" ? "--" : exercise_users[i].score, efficiencyscore: exercise_users[i].score === undefined ? "--" : exercise_users[i].score === null ? "--" : exercise_users[i].score === "" ? "--" : exercise_users[i].score,
objective_score: exercise_users[i].objective_score === null ? "--" : exercise_users[i].objective_score === "" ? "--" : exercise_users[i].objective_score,
subjective_score:exercise_users[i].subjective_score === null ? "--" : exercise_users[i].subjective_score === "" ? "--" : exercise_users[i].subjective_score,
finalscore: "--", finalscore: "--",
user_id: exercise_users[i].user_id, user_id: exercise_users[i].user_id,
commit_method:exercise_users[i].commit_method commit_method:exercise_users[i].commit_method

@ -1204,10 +1204,10 @@ class Listofworksstudentone extends Component {
) )
}, },
{ {
title: <span>当前成绩<Tooltip placement="top" visible={true} title={<pre> title: <span>当前成绩<Tooltip placement="top"title={<pre>
鼠标停留具体分值上可查<br/> 鼠标停留具体分值上可查<br/>
看得分明细<br/> 看得分明细<br/>
</pre>}></Tooltip></span>, </pre>}><img src={getImageUrl("images/educoder/problem.png")} className={"ml2"}/></Tooltip></span>,
dataIndex: 'work_score', dataIndex: 'work_score',
key: 'work_score', key: 'work_score',
align: 'center', align: 'center',
@ -1572,10 +1572,10 @@ class Listofworksstudentone extends Component {
) )
}, },
{ {
title: <span>当前成绩<Tooltip placement="top" visible={true} title={<pre> title: <span>当前成绩<Tooltip placement="top" title={<pre>
鼠标停留具体分值上可查<br/> 鼠标停留具体分值上可查<br/>
看得分明细<br/> 看得分明细<br/>
</pre>}></Tooltip></span>, </pre>}><img src={getImageUrl("images/educoder/problem.png")} className={"ml2"}/></Tooltip></span>,
dataIndex: 'work_score', dataIndex: 'work_score',
key: 'work_score', key: 'work_score',
align: 'center', align: 'center',

@ -13,6 +13,7 @@ class AccountImg extends Component {
<ChangeHeaderPicModal <ChangeHeaderPicModal
{...this.props} ref="picModal" imageSrc={picUrl} userLogin={this.props.current_user ? this.props.current_user.login : '' }></ChangeHeaderPicModal> {...this.props} ref="picModal" imageSrc={picUrl} userLogin={this.props.current_user ? this.props.current_user.login : '' }></ChangeHeaderPicModal>
<style>{` <style>{`
/* /*
.headphoto { .headphoto {
text-align: center; text-align: center;
@ -26,11 +27,13 @@ class AccountImg extends Component {
margin-top: 19px; margin-top: 19px;
box-sizing: border-box; box-sizing: border-box;
} }
.headphoto img { .headphoto img {
width: 109px; width: 109px;
border-radius: 50%; border-radius: 50%;
height: 109px; height: 109px;
} }
.headphoto-black { .headphoto-black {
display: none; display: none;
cursor: pointer; cursor: pointer;
@ -45,9 +48,11 @@ class AccountImg extends Component {
background-color: rgba(0,0,0,0.3); background-color: rgba(0,0,0,0.3);
color: #fff; color: #fff;
} */ } */
.headphoto:hover .headphoto-black { .headphoto:hover .headphoto-black {
display: block; display: block;
} }
.newheadphotoblack{ .newheadphotoblack{
position: absolute; position: absolute;
top: 49px; top: 49px;
@ -59,9 +64,17 @@ class AccountImg extends Component {
line-height:23px; line-height:23px;
background: rgba(76,172,255,0.7); background: rgba(76,172,255,0.7);
} }
.borderradiusbox{
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
`}</style> `}</style>
<img alt="头像" id="user_avatar_show" nhname="avatar_image" src={`${picUrl}`}></img> <img alt="头像" id="user_avatar_show" nhname="avatar_image" className={"xiaoshou"} src={`${picUrl}`} onClick={this.editImg} ></img>
<p className="newheadphotoblack" onClick={this.editImg} >修改头像</p> <div className="newheadphotoblack xiaoshou borderradiusbox" onClick={this.editImg} >修改头像</div>
</div> </div>
); );
} }

Loading…
Cancel
Save