diff --git a/public/react/src/modules/tpm/TPMBanner.js b/public/react/src/modules/tpm/TPMBanner.js index a31ca5952..141bd87d9 100644 --- a/public/react/src/modules/tpm/TPMBanner.js +++ b/public/react/src/modules/tpm/TPMBanner.js @@ -796,6 +796,9 @@ class TPMBanner extends Component { height: 180px !important; padding-top:35px !important; } + .ant-popover{ + z-index:1000 !important; + } ` } diff --git a/public/react/src/modules/tpm/TPMIndex.js b/public/react/src/modules/tpm/TPMIndex.js index d79bae95b..e032bb91f 100644 --- a/public/react/src/modules/tpm/TPMIndex.js +++ b/public/react/src/modules/tpm/TPMIndex.js @@ -385,6 +385,9 @@ class TPMIndex extends Component { margin:0 40px 0 0; padding:0px; } + .ant-popover{ + z-index:1000 !important; + } ` } diff --git a/public/react/src/modules/tpm/TPMsettings/LearningSettings.js b/public/react/src/modules/tpm/TPMsettings/LearningSettings.js index 681cbc956..a98f68223 100644 --- a/public/react/src/modules/tpm/TPMsettings/LearningSettings.js +++ b/public/react/src/modules/tpm/TPMsettings/LearningSettings.js @@ -215,9 +215,9 @@ export default class Shixuninformation extends Component { multi_webssh: false }) } else { - this.setState({ - multi_webssh: true - }) + // this.setState({ + // multi_webssh: true + // }) } this.setState({ opensshRadio: e.target.value diff --git a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js index 200880019..75ed88852 100644 --- a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js +++ b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js @@ -50,7 +50,10 @@ class Shixuninformation extends Component { } componentDidMount() { - + let anchorElement = document.getElementById("newcourseContentMD"); + if(anchorElement){ + this.scrollToAnchor("newcourseContentMD"); + } } componentDidUpdate(prevProps, prevState) { @@ -113,6 +116,7 @@ class Shixuninformation extends Component { selectright: this.props.data && this.props.data.shixun.choice_small_type, }) this.contentMdRef.current.setValue(this.props.data && this.props.data.shixun.description); + } } } @@ -807,16 +811,20 @@ class Shixuninformation extends Component { )} + + + diff --git a/public/react/src/modules/tpm/component/TPMRightSection.js b/public/react/src/modules/tpm/component/TPMRightSection.js index 1d2a93796..88894794b 100644 --- a/public/react/src/modules/tpm/component/TPMRightSection.js +++ b/public/react/src/modules/tpm/component/TPMRightSection.js @@ -63,6 +63,8 @@ class TPMRightSection extends Component { if(TPMRightSectionData&&TPMRightSectionData.complete_count!=null){ Progresssum=(parseInt(TPMRightSectionData&&TPMRightSectionData.complete_count) / parseInt(TPMRightSectionData&&TPMRightSectionData.challenge_count))*100; } + + return (
{ @@ -97,11 +99,11 @@ class TPMRightSection extends Component {
- {TPMRightSectionData&&TPMRightSectionData.complete_count!=null?
+ {this.props&&this.props.status>1?
学习统计 - 已完成 {TPMRightSectionData&&TPMRightSectionData.complete_count} 个 / 共 {TPMRightSectionData&&TPMRightSectionData.challenge_count} 关 + 已完成 {TPMRightSectionData&&TPMRightSectionData.complete_count===null?0:TPMRightSectionData&&TPMRightSectionData.complete_count} 个 / 共 {TPMRightSectionData&&TPMRightSectionData.challenge_count} 关
diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js index 307823ee8..e7b7ef261 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js @@ -34,7 +34,8 @@ class Challenges extends Component { operationstrue:false, isSpin:false, boxoffsetHeigh:0, - opentitletype:true + opentitletype:true, + isopentitletype:"Less", } } @@ -73,15 +74,17 @@ class Challenges extends Component { boxoffsetHeigh=box.offsetHeight if(boxoffsetHeigh<260){ this.setState({ - opentitletype:false, + isopentitletype:"Less", boxoffsetHeigh:boxoffsetHeigh }) }else{ this.setState({ + opentitletype:true, + isopentitletype:"greater", boxoffsetHeigh:boxoffsetHeigh }) } - + console.log(boxoffsetHeigh) } } @@ -322,7 +325,8 @@ class Challenges extends Component { opentitle=()=>{ this.setState({ - opentitletype:!this.state.opentitletype + opentitletype:!this.state.opentitletype, + }) } @@ -434,7 +438,8 @@ class Challenges extends Component {

- {this.state.opentitletype===true?this.opentitle()} className={"pointer Breadcrumbfont color-grey-9 "}> + + {this.state.isopentitletype==="Less"?"":this.state.opentitletype===true?this.opentitle()} className={"pointer Breadcrumbfont color-grey-9 "}> 阅读全文 :this.opentitle()} className={"pointer Breadcrumbfont color-grey-9 "}> 收起全文 diff --git a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.css b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.css index 688dbb422..b059ab406 100644 --- a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.css +++ b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.css @@ -184,4 +184,13 @@ .fontneweees { color: #BBBBBB; +} + +.maxfont450{ + width: 450px; + max-width:450px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + cursor: default; } \ No newline at end of file diff --git a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js index 15a956a0b..17b083cf7 100644 --- a/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js +++ b/public/react/src/modules/tpm/shixunchild/Collaborators/Collaborators.js @@ -11,11 +11,9 @@ import NoneData from "../../../courses/coursesPublic/NoneData"; import './Collaborators.css'; -const $ = window.$; - const RadioGroup = Radio.Group; -const Search = Input.Search; + class Collaborators extends Component { constructor(props) { @@ -685,7 +683,7 @@ class Collaborators extends Component {

{/*

{item.user.identity}

*/}

{item.user.school_name}

+ className={item.user.school_name === null || item.user.school_name === "" ? "" : " font-16 color888hezuo maxfont450"}>{item.user.school_name}

发布实训项目  {item.user.user_shixuns_count}

diff --git a/public/react/src/modules/tpm/shixuns/ShixunCardList.js b/public/react/src/modules/tpm/shixuns/ShixunCardList.js index 3676ed361..937e96894 100644 --- a/public/react/src/modules/tpm/shixuns/ShixunCardList.js +++ b/public/react/src/modules/tpm/shixuns/ShixunCardList.js @@ -218,7 +218,7 @@ class ShixunCardList extends Component { id="hot" onClick={(e)=>this.latestHot(e,3)}>最热 - {shixuntype===true?"":this.getUser("/shixuns/new")}>+新建实训项目} + {shixuntype===true?"":this.getUser("/shixuns/new")}>+新建实训项目} {/*