diff --git a/public/react/src/modules/courses/statistics/Statistics.js b/public/react/src/modules/courses/statistics/Statistics.js index d8647870e..281052426 100644 --- a/public/react/src/modules/courses/statistics/Statistics.js +++ b/public/react/src/modules/courses/statistics/Statistics.js @@ -1,5 +1,5 @@ import React,{ Component } from "react"; -import {Table, Pagination,Tooltip,Spin, Row, Col ,Checkbox,Tabs,Menu, Dropdown, Icon,Input} from "antd"; +import {Table, Pagination,Popover,Spin, Row, Col ,Tabs, Icon} from "antd"; import { WordsBtn,on, off, trigger ,getImageUrl,sortDirections} from 'educoder'; import axios from'axios'; import Dropdownbox from './Dropdownbox'; @@ -423,15 +423,38 @@ class Statistics extends Component{ :"" } ; + + const content = ( +
+

+ 课堂总成绩 * 70 % +

+

+ 课堂活跃度 * 10% +

+

+ 课外学习成绩 * 20% +

+

+ 其中,课外学习成绩= 当前学生经验值 / 课堂学生经验值 最大值*100 +

+
+ ); return(

- - + + 明星学员 + + 计算规则 + + + + diff --git a/public/react/src/modules/tpm/TPMIndex.js b/public/react/src/modules/tpm/TPMIndex.js index a9fffa277..d79bae95b 100644 --- a/public/react/src/modules/tpm/TPMIndex.js +++ b/public/react/src/modules/tpm/TPMIndex.js @@ -2,7 +2,7 @@ import React, { Component } from 'react'; import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom"; -import { Row, Col ,Menu} from 'antd'; +import { Row, Col ,Menu,Popover,Button} from 'antd'; import Loading from '../../Loading'; @@ -147,12 +147,21 @@ class TPMIndex extends Component { PropaedeuticsList: undefined, tpmindexjupyterbool:false, is_jupyter:false, - selectedKeys:"" + selectedKeys:"", + openknows:false } } - componentDidMount = () => { + openknow=()=>{ + let storage=window.localStorage; + this.setState({ + openknows:false + }) + storage.setItem("newTPMsettings",true); + } + componentDidMount = () => { + let newTPMsettings=window.localStorage.newTPMsettings; let id = this.props.match.params.shixunId; // console.log('props', this.props); // let collaborators = `/shixuns/` + id + `/propaedeutics.json`; @@ -200,6 +209,22 @@ class TPMIndex extends Component { secret_repository: response.data.secret_repository, is_jupyter:response.data.is_jupyter=== undefined||response.data.is_jupyter===null?false:response.data.is_jupyter, }); + + + if(response.data.identity <4){ + + if(newTPMsettings===undefined||newTPMsettings===false){ + this.setState({ + openknows:true + }) + }else{ + this.setState({ + openknows:false + }) + } + } + + } }).catch((error) => { this.setState({ @@ -402,9 +427,23 @@ class TPMIndex extends Component { 排行榜 :""} - {this.state.identity >4||this.state.identity===undefined ? "": - 配置 - } + {this.state.identity >4||this.state.identity===undefined ? "": + + +

更多设置在这里,点击“配置”看一看~
+
+ + } + trigger="click" + placement="top" + visible={this.state.openknows} + > + 配置 + + + } {this.state.identity >2||this.state.identity===undefined?"":
diff --git a/public/react/src/modules/tpm/shixuns/ShixunCard.js b/public/react/src/modules/tpm/shixuns/ShixunCard.js index 045f0009b..dc07759cb 100644 --- a/public/react/src/modules/tpm/shixuns/ShixunCard.js +++ b/public/react/src/modules/tpm/shixuns/ShixunCard.js @@ -79,9 +79,18 @@ class ShixunCard extends Component {
:""} -
+
{middleshixundata === undefined || middleshixundata.length === 0?" ":middleshixundata.map((item,key)=>{ diff --git a/public/react/src/modules/tpm/shixuns/ShixunCardList.js b/public/react/src/modules/tpm/shixuns/ShixunCardList.js index d95ef75fe..8a09cd3bc 100644 --- a/public/react/src/modules/tpm/shixuns/ShixunCardList.js +++ b/public/react/src/modules/tpm/shixuns/ShixunCardList.js @@ -160,8 +160,42 @@ class ShixunCardList extends Component { this.props.Shixunsupcircles("asc") } } + + //头部获取是否已经登录了 + getUser=(url,type)=>{ + if(this.props.checkIfLogin()===false){ + this.props.showLoginDialog() + return + } + if(this.props.checkIfProfileCompleted()===false){ + this.props.showProfileCompleteDialog() + return + } + + if(url !== undefined || url!==""){ + window.location.href = url; + } + + + } render(){ let {mine,InputValue,upcircle}=this.state; + + // console.log("NewHeadermygetHelmetapi123123123123"); + let shixuntype=false; + if(this.props&&this.props.mygetHelmetapi!=null){ + let shixun="/shixuns"; + let paths="/paths"; + let courses="/courses"; + this.props.mygetHelmetapi.navbar.map((item,key)=>{ + var reg = RegExp(item.link); + if(shixun.match(reg)){ + if(item.hidden===true){ + shixuntype=true + } + } + }) + } return (
@@ -184,7 +218,7 @@ class ShixunCardList extends Component { id="hot" onClick={(e)=>this.latestHot(e,3)}>最热
- + {shixuntype===true?"":this.getUser("/shixuns/new")}>+新建实训项目} {/*