实训调整

chromesetting
杨树明 5 years ago
parent fb5b123456
commit 758ea539b2

@ -796,6 +796,9 @@ class TPMBanner extends Component {
height: 180px !important; height: 180px !important;
padding-top:35px !important; padding-top:35px !important;
} }
.ant-popover{
z-index:1000 !important;
}
` `
} }
</style> </style>

@ -385,6 +385,9 @@ class TPMIndex extends Component {
margin:0 40px 0 0; margin:0 40px 0 0;
padding:0px; padding:0px;
} }
.ant-popover{
z-index:1000 !important;
}
` `
} }
</style> </style>

@ -215,9 +215,9 @@ export default class Shixuninformation extends Component {
multi_webssh: false multi_webssh: false
}) })
} else { } else {
this.setState({ // this.setState({
multi_webssh: true // multi_webssh: true
}) // })
} }
this.setState({ this.setState({
opensshRadio: e.target.value opensshRadio: e.target.value

@ -50,7 +50,10 @@ class Shixuninformation extends Component {
} }
componentDidMount() { componentDidMount() {
let anchorElement = document.getElementById("newcourseContentMD");
if(anchorElement){
this.scrollToAnchor("newcourseContentMD");
}
} }
componentDidUpdate(prevProps, prevState) { componentDidUpdate(prevProps, prevState) {
@ -113,6 +116,7 @@ class Shixuninformation extends Component {
selectright: this.props.data && this.props.data.shixun.choice_small_type, selectright: this.props.data && this.props.data.shixun.choice_small_type,
}) })
this.contentMdRef.current.setValue(this.props.data && this.props.data.shixun.description); this.contentMdRef.current.setValue(this.props.data && this.props.data.shixun.description);
} }
} }
} }
@ -807,16 +811,20 @@ class Shixuninformation extends Component {
)} )}
</Form.Item> </Form.Item>
<span id={"newcourseContentMD"}></span>
<Form.Item <Form.Item
label="简介" label="简介"
style={{"borderBottom": 'none', 'marginBottom': '0px'}} style={{"borderBottom": 'none', 'marginBottom': '0px'}}
className="chooseDes pr" className="chooseDes pr"
> >
<TPMMDEditor ref={this.contentMdRef} placeholder="请输入简介" mdID={'courseContentMD'} <TPMMDEditor ref={this.contentMdRef} placeholder="请输入简介" mdID={'courseContentMD'}
refreshTimeout={1500} refreshTimeout={1500}
className="courseMessageMD" className="courseMessageMD"
// initValue={this.state.description === null ? "" : this.state.description} // initValue={this.state.description === null ? "" : this.state.description}
></TPMMDEditor> ></TPMMDEditor>
</Form.Item> </Form.Item>

@ -63,6 +63,8 @@ class TPMRightSection extends Component {
if(TPMRightSectionData&&TPMRightSectionData.complete_count!=null){ if(TPMRightSectionData&&TPMRightSectionData.complete_count!=null){
Progresssum=(parseInt(TPMRightSectionData&&TPMRightSectionData.complete_count) / parseInt(TPMRightSectionData&&TPMRightSectionData.challenge_count))*100; Progresssum=(parseInt(TPMRightSectionData&&TPMRightSectionData.complete_count) / parseInt(TPMRightSectionData&&TPMRightSectionData.challenge_count))*100;
} }
return ( return (
<div> <div>
{ {
@ -97,11 +99,11 @@ class TPMRightSection extends Component {
</div> </div>
</div> </div>
{TPMRightSectionData&&TPMRightSectionData.complete_count!=null?<div className="edu-back-white padd252020px relative borderbottomf4"> {this.props&&this.props.status>1?<div className="edu-back-white padd252020px relative borderbottomf4">
<div className="font-16 mb5"> <div className="font-16 mb5">
<span><i className={"iconfont icon-jilu1 audit_situationactive font-14"}></i> </span> <span><i className={"iconfont icon-jilu1 audit_situationactive font-14"}></i> </span>
<span className={"sortinxdirection space-between fr"}> <span className={"sortinxdirection space-between fr"}>
<span className="color888hezuo font-12">已完成 {TPMRightSectionData&&TPMRightSectionData.complete_count} / {TPMRightSectionData&&TPMRightSectionData.challenge_count} </span> <span className="color888hezuo font-12">已完成 {TPMRightSectionData&&TPMRightSectionData.complete_count===null?0:TPMRightSectionData&&TPMRightSectionData.complete_count} / {TPMRightSectionData&&TPMRightSectionData.challenge_count} </span>
</span> </span>
</div> </div>

@ -34,7 +34,8 @@ class Challenges extends Component {
operationstrue:false, operationstrue:false,
isSpin:false, isSpin:false,
boxoffsetHeigh:0, boxoffsetHeigh:0,
opentitletype:true opentitletype:true,
isopentitletype:"Less",
} }
} }
@ -73,15 +74,17 @@ class Challenges extends Component {
boxoffsetHeigh=box.offsetHeight boxoffsetHeigh=box.offsetHeight
if(boxoffsetHeigh<260){ if(boxoffsetHeigh<260){
this.setState({ this.setState({
opentitletype:false, isopentitletype:"Less",
boxoffsetHeigh:boxoffsetHeigh boxoffsetHeigh:boxoffsetHeigh
}) })
}else{ }else{
this.setState({ this.setState({
opentitletype:true,
isopentitletype:"greater",
boxoffsetHeigh:boxoffsetHeigh boxoffsetHeigh:boxoffsetHeigh
}) })
} }
console.log(boxoffsetHeigh)
} }
} }
@ -322,7 +325,8 @@ class Challenges extends Component {
opentitle=()=>{ opentitle=()=>{
this.setState({ this.setState({
opentitletype:!this.state.opentitletype opentitletype:!this.state.opentitletype,
}) })
} }
@ -434,7 +438,8 @@ class Challenges extends Component {
</p> </p>
</div> </div>
</div> </div>
{this.state.opentitletype===true?<Divider dashed={true} onClick={()=>this.opentitle()} className={"pointer Breadcrumbfont color-grey-9 "}>
{this.state.isopentitletype==="Less"?"":this.state.opentitletype===true?<Divider dashed={true} onClick={()=>this.opentitle()} className={"pointer Breadcrumbfont color-grey-9 "}>
<a className={"font-14 color-grey-9"}>阅读全文 <i className={"iconfont icon-jiantou9 font-14"}></i></a> <a className={"font-14 color-grey-9"}>阅读全文 <i className={"iconfont icon-jiantou9 font-14"}></i></a>
</Divider>:<Divider dashed={true} onClick={()=>this.opentitle()} className={"pointer Breadcrumbfont color-grey-9 "}> </Divider>:<Divider dashed={true} onClick={()=>this.opentitle()} className={"pointer Breadcrumbfont color-grey-9 "}>
<a className={"font-14 color-grey-9"}>收起全文 <i className={"iconfont icon-changyongtubiao-xianxingdaochu-zhuanqu- font-14"}></i></a> <a className={"font-14 color-grey-9"}>收起全文 <i className={"iconfont icon-changyongtubiao-xianxingdaochu-zhuanqu- font-14"}></i></a>

@ -184,4 +184,13 @@
.fontneweees { .fontneweees {
color: #BBBBBB; color: #BBBBBB;
}
.maxfont450{
width: 450px;
max-width:450px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: default;
} }

@ -11,11 +11,9 @@ import NoneData from "../../../courses/coursesPublic/NoneData";
import './Collaborators.css'; import './Collaborators.css';
const $ = window.$;
const RadioGroup = Radio.Group; const RadioGroup = Radio.Group;
const Search = Input.Search;
class Collaborators extends Component { class Collaborators extends Component {
constructor(props) { constructor(props) {
@ -685,7 +683,7 @@ class Collaborators extends Component {
<p className="hezuozhe630 sortinxdirection space-between"> <p className="hezuozhe630 sortinxdirection space-between">
{/*<p className={item.user.identity===null||item.user.identity===undefined||item.user.identity===""?" font-16 ":"mr20 font-16 w70"}>{item.user.identity}</p>*/} {/*<p className={item.user.identity===null||item.user.identity===undefined||item.user.identity===""?" font-16 ":"mr20 font-16 w70"}>{item.user.identity}</p>*/}
<p <p
className={item.user.school_name === null || item.user.school_name === "" ? "" : "mr40 font-16 maxnamewidth150 color888hezuo"}>{item.user.school_name}</p> className={item.user.school_name === null || item.user.school_name === "" ? "" : " font-16 color888hezuo maxfont450"}>{item.user.school_name}</p>
<p className="fabushixunwidth color888hezuo">发布实训项目&nbsp;&nbsp;<span <p className="fabushixunwidth color888hezuo">发布实训项目&nbsp;&nbsp;<span
className="ml2">{item.user.user_shixuns_count}</span></p> className="ml2">{item.user.user_shixuns_count}</span></p>
</p> </p>

@ -218,7 +218,7 @@ class ShixunCardList extends Component {
id="hot" id="hot"
onClick={(e)=>this.latestHot(e,3)}>最热 onClick={(e)=>this.latestHot(e,3)}>最热
</div> </div>
{shixuntype===true?"":<span className={ "fl font-16 bestChoose color-blue" } onClick={(url)=>this.getUser("/shixuns/new")}>+新建实训项目</span>} {shixuntype===true?"":<span className={ "fr font-16 bestChoose color-blue" } onClick={(url)=>this.getUser("/shixuns/new")}>+新建实训项目</span>}
{/*<div className="fl font-16 bestChoose shixun_repertoire ml20 mt1"*/} {/*<div className="fl font-16 bestChoose shixun_repertoire ml20 mt1"*/}
{/*style={{display:upcircle===true?"block":"none"}}*/} {/*style={{display:upcircle===true?"block":"none"}}*/}

Loading…
Cancel
Save