dev_cs
杨树林 5 years ago
parent 79a3e3e965
commit a402370c1a

@ -20,6 +20,7 @@ import Startshixuntask from "../coursesPublic/Startshixuntask";
import TPMMDEditor from "../../tpm/challengesnew/TPMMDEditor";
import DownloadMessageysl from "../../modals/DownloadMessageysl";
import Modals from "../../modals/Modals";
class ShixunHomeworkPage extends Component {
constructor(props) {
super(props);
@ -34,6 +35,9 @@ class ShixunHomeworkPage extends Component {
showmodel:false,
child:undefined,
yslpros:false,
Modalstopval:"你在该实训的学习记录将被清空,无法恢复",
ModalsBottomval:"是否确认重做?",
ModalsType:false,
}
}
@ -107,9 +111,28 @@ class ShixunHomeworkPage extends Component {
workshowmodels(child){
child.workshowmodel();
}
/// 确认是否下载
/// 重做的确认
ModalSaves=()=>{
this.setState({
ModalsType:false,
Modalstopval:""
})
};
//取消重做
ModalCancels=()=>{
this.setState({
ModalsType:false,
Modalstopval:""
})
};
//打开重做弹框
Modalcancelss=()=>{
this.setState({
Modalstopval:"你在该实训的学习记录将被清空,无法恢复",
ModalsBottomval:"是否确认重做?",
ModalsType:true,
})
}
bindRef = ref => { this.child = ref }
///////////////教师截止
gotohome=()=>{
@ -128,7 +151,15 @@ class ShixunHomeworkPage extends Component {
return (
<div className="newMain clearfix ">
{/*<Modals*/}
{/* modalsType={this.state.ModalsType}*/}
{/* modalsTopval={this.state.Modalstopval}*/}
{/* modalsBottomval={this.state.ModalsBottomval}*/}
{/* modalSave={this.ModalSaves}*/}
{/* modalCancel={this.ModalCancels}*/}
{/* loadtype={false}*/}
{/*>*/}
{/*</Modals>*/}
<div className={"educontent mt10 mb20"} style={{width: "1200px"}}>
@ -251,6 +282,9 @@ class ShixunHomeworkPage extends Component {
{...this.props}
data={teacherdatapage}
/>}
{/*{this.props.isStudent() ?*/}
{/* <a className="fr color-blue font-16" onClick={()=>this.Modalcancelss()}>重做</a>*/}
{/* : "" }*/}
</div>
</div>
</div>

@ -83,7 +83,7 @@ function startechart(data){
{
name:'',
type:'scatter',
data:data.echart_data===undefined?"":data.echart_data.efficiency_list,
data:data.echart_data===undefined?"":data.echart_data.efficiency_list.reverse(),
itemStyle:{
normal:{color:'#2e65ad'}
},

Loading…
Cancel
Save