|
|
|
@ -108,7 +108,7 @@ class PathNew extends Component{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (des.length > 8000) {
|
|
|
|
|
this.props.showSnackbar("实践课程的简介最大限制5000个字符");
|
|
|
|
|
this.props.showSnackbar("实践课程的简介最大限制8000个字符");
|
|
|
|
|
window.location.href="#part_Des";
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -119,7 +119,7 @@ class PathNew extends Component{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(point.length > 2000){
|
|
|
|
|
this.props.showSnackbar("实践课程的学习须知最大限制500个字符");
|
|
|
|
|
this.props.showSnackbar("实践课程的学习须知最大限制2000个字符");
|
|
|
|
|
window.location.href="#part_point";
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -186,10 +186,10 @@ class PathNew extends Component{
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const Des_editMD = create_editorMD("shixun_introduction","100%","490px"
|
|
|
|
|
,"请在此输入实践课程的简介,最大限制5000个字符","/api/attachments.json", response.data.description,"");
|
|
|
|
|
,"请在此输入实践课程的简介,最大限制8000个字符","/api/attachments.json", response.data.description,"");
|
|
|
|
|
this.Des_editMD=Des_editMD;
|
|
|
|
|
const Point_editMD = create_editorMD("shixun_propaedeutics","100%","260px"
|
|
|
|
|
,"请在此输入实践课程的学习须知,最大限制500个字符","/api/attachments.json",response.data.learning_notes,"");
|
|
|
|
|
,"请在此输入实践课程的学习须知,最大限制2000个字符","/api/attachments.json",response.data.learning_notes,"");
|
|
|
|
|
this.Point_editMD=Point_editMD;
|
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
@ -198,9 +198,9 @@ class PathNew extends Component{
|
|
|
|
|
} else {
|
|
|
|
|
this.isEditPage = false
|
|
|
|
|
|
|
|
|
|
const Des_editMD = create_editorMD("shixun_introduction","100%","490px","请在此输入实践课程的简介,最大限制5000个字符","/api/attachments.json","","");
|
|
|
|
|
const Des_editMD = create_editorMD("shixun_introduction","100%","490px","请在此输入实践课程的简介,最大限制8000个字符","/api/attachments.json","","");
|
|
|
|
|
this.Des_editMD=Des_editMD;
|
|
|
|
|
const Point_editMD = create_editorMD("shixun_propaedeutics","100%","260px","请在此输入实践课程的学习须知,最大限制500个字符","/api/attachments.json","","");
|
|
|
|
|
const Point_editMD = create_editorMD("shixun_propaedeutics","100%","260px","请在此输入实践课程的学习须知,最大限制2000个字符","/api/attachments.json","","");
|
|
|
|
|
this.Point_editMD=Point_editMD;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|