diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.css b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.css
index 5f6a96173..129ee4e00 100644
--- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.css
+++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.css
@@ -1,4 +1,5 @@
.teamsLayout{background: transparent !important;}
+
.teamsLayout .ant-layout-sider{
background: transparent !important;
flex: 0 0 180px !important;
@@ -213,4 +214,126 @@
right: -5px;
width:93px;
top: 20px;
-}
\ No newline at end of file
+}
+
+.Competitionthirdbox{
+ width:234px;
+ height:163px;
+ background:rgba(223,223,225,1);
+}
+
+.Competitionthirdbox{
+ width:234px;
+ height:163px;
+ background:rgba(223,223,225,1);
+}
+
+.Competitionthirdbox{
+ width:234px;
+ height:163px;
+ background:rgba(223,223,225,1);
+ position: relative;
+}
+
+.Competitionfirstbox{
+ width:233px;
+ height:167px;
+ background:rgba(255,231,160,1);
+ position: relative;
+}
+
+.Competitionsecondarybox{
+ width:234px;
+ height:155px;
+ background:rgba(253,230,217,1);
+ position: relative;
+}
+
+.rankingimg{
+ width: 60px;
+ height: 60px;
+ border-radius: 50% !important;
+ box-shadow: 0px 0px 12px rgba(0,0,0,0.2);
+}
+
+.Competitioncenter{
+ text-align: center;
+ padding-top: 20px;
+}
+
+
+.jinshaifont{
+ font-size: 16px;
+ color: rgba(5,16,26,1);
+ margin-top: 13px !important;
+}
+
+.Competitionthird .ant-card-body {
+ padding: 12px;
+ zoom: 1;
+}
+
+.Competitionthird .ant-card-meta-title{
+ margin-bottom: 0px !important;
+}
+
+.Competitionfirst .ant-card-body {
+ padding: 12px;
+ zoom: 1;
+}
+
+.Competitionsecondary .ant-card-body {
+ padding: 12px;
+ zoom: 1;
+}
+
+.center{
+ text-align: center;
+}
+
+.rankfonttop{
+ font-size:14px;
+ color:rgba(102,102,102,1);
+}
+
+.rankfontmid{
+ font-size:18px;
+ color:rgba(102,102,102,1);
+}
+
+.rankfontbottom{
+ font-size:26px;
+ color:rgba(165,91,41,1);
+ text-align: center;
+}
+
+.rankfontbottoms{
+ font-size:28px;
+ color:rgba(165,91,41,1);
+ text-align: center;
+}
+
+.Competitionuserimg{
+ width: 64px;
+ height: 63px;
+ border-radius: 50%;
+}
+
+.CompetitionsListzhezhao{
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ width: 1206px;
+ height: 100%;
+ z-index: 10000;
+ display: none;
+ background: rgba(51, 51, 51,0.7);
+ text-align: center;
+ line-height: 416px;
+ color: #fff;
+ font-size: 50px;
+}
+
+.relative{position: relative;}
+
+.relative:hover .CompetitionsListzhezhao{ display: block;}
\ No newline at end of file
diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js
index 96600534c..a60e91adb 100644
--- a/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js
+++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionCommon.js
@@ -64,16 +64,19 @@ class CompetitionCommon extends Component{
module_id:id,
module_type:typeid
})
- let url=`${module_url}.json`;
- axios.get(url).then((response) => {
- if(response.status===200){
- this.setState({
- mdContent:response.data
+ if(has_url===false){
+ let url=`${module_url}`;
+ axios.get(url).then((response) => {
+ if(response.status===200){
+ this.setState({
+ mdContent:response.data
+ })
+ }
+ }).catch((error) => {
+ console.log(error)
})
- }
- }).catch((error) => {
- console.log(error)
- })
+ }
+
}
render() {
@@ -87,8 +90,11 @@ class CompetitionCommon extends Component{
{data&&data.name}
-
+
+
+ {data.competition_status==="nearly_published"?
+ this.props.current_user&&this.props.current_user.admin===true?"":this.props.current_user&&this.props.current_user.business===true?"":即将发布 敬请期待
:""}
@@ -155,7 +161,8 @@ class CompetitionCommon extends Component{
已结束
:
}
{data&&data.enroll_end_time===null?"":`报名截止时间:${data&&data.enroll_end_time}`}
@@ -190,6 +197,10 @@ class CompetitionCommon extends Component{
{...this.props}
{...this.state}
/>}
+ {/**/}
diff --git a/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js b/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js
index 9d7a10f18..730fae89b 100644
--- a/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js
+++ b/public/react/src/modules/competitions/Competitioncommon/CompetitionContentsChart.js
@@ -18,87 +18,69 @@ class CompetitionContents extends Component{
componentDidMount(){
window.document.title = '竞赛';
-
+ this.gettitledata()
+ }
+ gettitledata=()=>{
+ let url=`/competitions/${this.props.match.params.identifier}/chart_rules.json`;
+ axios.get(url)
+ .then((response) => {
+ console.log(response)
+ }).catch((error) => {
+ console.log(error)
+ })
}
-
render() {
- const operations = ;
+ const operations = ;
const columns = [
{
- title: 'Name',
- dataIndex: 'name',
+ title: 'usersum',
+ dataIndex: 'usersum',
key: 'name',
- render: text => {text},
+ render: text => {text},
},
{
- title: 'Age',
- dataIndex: 'age',
- key: 'age',
+ title: 'userimg',
+ dataIndex: 'userimg',
+ key: 'userimg',
+ render: text =>
,
},
{
- title: 'Address',
- dataIndex: 'address',
- key: 'address',
+ title: 'username',
+ dataIndex: 'username',
+ key: 'username',
+ render: text => {text},
},
{
- title: 'Tags',
- key: 'tags',
- dataIndex: 'tags',
- render: tags => (
-
- 123123
-
- ),
+ title: 'school',
+ dataIndex: 'school',
+ key: 'school',
+ render: text => {text},
},
{
- title: 'Action',
- key: 'action',
- render: (text, record) => (
-
- Invite {record.name}
- Delete
-
- ),
+ title: 'spendtime',
+ dataIndex: 'spendtime',
+ key: 'spendtime',
+ render: text => {text},
},
{
- title: 'Values',
- key: 'values',
- dataIndex: 'values',
- render: tags => (
-
- 123123
-
- ),
+ title: 'score',
+ dataIndex: 'score',
+ key: 'score',
+ render: text => {text},
},
];
const data = [
{
- key: '1',
- name: 'John Brown',
- age: 32,
- address: 'New York No. 1 Lake Park',
- tags: ['nice', 'developer'],
- values:123
- },
- {
- key: '2',
- name: 'Jim Green',
- age: 42,
- address: 'London No. 1 Lake Park',
- tags: ['loser'],
- values:123
- },
- {
- key: '3',
- name: 'Joe Black',
- age: 32,
- address: 'Sidney No. 1 Lake Park',
- tags: ['cool', 'teacher'],
- values:123
- },
+ usersum: '1',
+ userimg: 'John Brown',
+ username: "小头鹰",
+ school: '吉首大学',
+ spendtime: '15:00:00',
+ score:123123
+ }
];
@@ -129,15 +111,27 @@ class CompetitionContents extends Component{
+
+
+
+
+
+
}
>
+ 吉首大学
+ 78:01:02
+
}
+ description={
+
3423.45分
+ }
/>
@@ -145,32 +139,58 @@ class CompetitionContents extends Component{
+
+
+
+
+
+
}
>
+
吉首大学
+
78:01:02
+
}
+ description={
+
3423.45分
+ }
+
/>
+
+
+
+
+
+
}
>
+
吉首大学
+
78:01:02
+
+ }
+
/>
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js
index 8b480258d..7458d0089 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js
@@ -385,10 +385,7 @@ class GraduationTasksedit extends Component{
{description===undefined?"":