diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.css b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.css
index 23dfe3895..6a204e127 100644
--- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.css
+++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.css
@@ -357,4 +357,11 @@
font-size: 16px;
color: rgba(119,119,119,1);
+}
+
+.youranklist{
+ background: rgba(226,241,255,1);
+ line-height: 50px;
+ text-align: center;
+ padding-left: 20px;
}
\ No newline at end of file
diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js
index 17baca3d6..eec2176e5 100644
--- a/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js
+++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js
@@ -226,7 +226,40 @@ class CompetitionContents extends Component{
})}
+ {chartdata===undefined?"":chartdata.user_ranks.length===0?"":
+
+ {chartdata.user_ranks.map((item,key)=>{
+ return(
+
+
+ 您当前排名:{item.rank}
+
+
+ {item.user_name}
+
+
+ {item.team_name}
+
+
+ {item.cost_time}
+
+
+ {item.score}
+
+
+ )
+ })}
+
}
{chartdata===undefined?"":chartdata.teams.length===0?"":}
diff --git a/public/react/src/modules/tpm/shixunchild/Repository/Repository.js b/public/react/src/modules/tpm/shixunchild/Repository/Repository.js
index 85659a3a6..c477422e8 100644
--- a/public/react/src/modules/tpm/shixunchild/Repository/Repository.js
+++ b/public/react/src/modules/tpm/shixunchild/Repository/Repository.js
@@ -31,7 +31,9 @@ function jsCopy(){
class Repository extends Component {
constructor(props) {
super(props);
+ this.state={
+ }
}
componentDidMount() {
}
@@ -41,7 +43,8 @@ class Repository extends Component {
}
render() {
- let { match, author, git_url, lastest_commit, trees, commits,repositoryLoading, pathArray , TPMRightSectionData } = this.props;
+ let { match, author, git_url, lastest_commit,repositoryLoading, commits,trees,pathArray , TPMRightSectionData } = this.props;
+
if (!author) {
author = {}
}
@@ -174,9 +177,9 @@ class Repository extends Component {
{/* 用户、最近提交时间 */}
{
- trees === undefined || trees === null ? :
+ trees === undefined || trees === null ||trees.length===0? :
-
+ {commits===undefined?"":commits===null||commits.length===0?"":
提交记录
-
+
}
@@ -201,7 +204,7 @@ class Repository extends Component {
- {trees.map((item, index) => {
+ { trees === undefined ?"": trees === null || trees.length===0?"":trees.map((item, index) => {
return (