|
|
@ -94,7 +94,7 @@ class PathNew extends Component{
|
|
|
|
submitNewPath=()=>{
|
|
|
|
submitNewPath=()=>{
|
|
|
|
let {pathName} = this.state;
|
|
|
|
let {pathName} = this.state;
|
|
|
|
if(pathName===""){
|
|
|
|
if(pathName===""){
|
|
|
|
this.props.showSnackbar("请输入实训课程名称");
|
|
|
|
this.props.showSnackbar("请输入实践课程名称");
|
|
|
|
window.location.href="#part_Name";
|
|
|
|
window.location.href="#part_Name";
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
flag_name:false
|
|
|
|
flag_name:false
|
|
|
@ -103,23 +103,23 @@ class PathNew extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let des=this.Des_editMD.getValue();
|
|
|
|
let des=this.Des_editMD.getValue();
|
|
|
|
if(des===""){
|
|
|
|
if(des===""){
|
|
|
|
this.props.showSnackbar("请输入实训课程的简介");
|
|
|
|
this.props.showSnackbar("请输入实践课程的简介");
|
|
|
|
window.location.href="#part_Des";
|
|
|
|
window.location.href="#part_Des";
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (des.length > 5000) {
|
|
|
|
if (des.length > 5000) {
|
|
|
|
this.props.showSnackbar("实训课程的简介最大限制5000个字符");
|
|
|
|
this.props.showSnackbar("实践课程的简介最大限制5000个字符");
|
|
|
|
window.location.href="#part_Des";
|
|
|
|
window.location.href="#part_Des";
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let point = this.Point_editMD.getValue();
|
|
|
|
let point = this.Point_editMD.getValue();
|
|
|
|
if(point===""){
|
|
|
|
if(point===""){
|
|
|
|
this.props.showSnackbar("请输入实训课程的学习须知");
|
|
|
|
this.props.showSnackbar("请输入实践课程的学习须知");
|
|
|
|
window.location.href="#part_point";
|
|
|
|
window.location.href="#part_point";
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(point.length > 500){
|
|
|
|
if(point.length > 500){
|
|
|
|
this.props.showSnackbar("实训课程的学习须知最大限制500个字符");
|
|
|
|
this.props.showSnackbar("实践课程的学习须知最大限制500个字符");
|
|
|
|
window.location.href="#part_point";
|
|
|
|
window.location.href="#part_point";
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -177,10 +177,10 @@ class PathNew extends Component{
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const Des_editMD = create_editorMD("shixun_introduction","100%","490px"
|
|
|
|
const Des_editMD = create_editorMD("shixun_introduction","100%","490px"
|
|
|
|
,"请在此输入实训课程的简介,最大限制5000个字符","/api/attachments.json", response.data.description,"");
|
|
|
|
,"请在此输入实践课程的简介,最大限制5000个字符","/api/attachments.json", response.data.description,"");
|
|
|
|
this.Des_editMD=Des_editMD;
|
|
|
|
this.Des_editMD=Des_editMD;
|
|
|
|
const Point_editMD = create_editorMD("shixun_propaedeutics","100%","260px"
|
|
|
|
const Point_editMD = create_editorMD("shixun_propaedeutics","100%","260px"
|
|
|
|
,"请在此输入实训课程的学习须知,最大限制500个字符","/api/attachments.json",response.data.learning_notes,"");
|
|
|
|
,"请在此输入实践课程的学习须知,最大限制500个字符","/api/attachments.json",response.data.learning_notes,"");
|
|
|
|
this.Point_editMD=Point_editMD;
|
|
|
|
this.Point_editMD=Point_editMD;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((error)=>{
|
|
|
|
}).catch((error)=>{
|
|
|
@ -189,9 +189,9 @@ class PathNew extends Component{
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.isEditPage = false
|
|
|
|
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","请在此输入实践课程的简介,最大限制5000个字符","/api/attachments.json","","");
|
|
|
|
this.Des_editMD=Des_editMD;
|
|
|
|
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","请在此输入实践课程的学习须知,最大限制500个字符","/api/attachments.json","","");
|
|
|
|
this.Point_editMD=Point_editMD;
|
|
|
|
this.Point_editMD=Point_editMD;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -210,9 +210,9 @@ class PathNew extends Component{
|
|
|
|
<div className="newMain clearfix">
|
|
|
|
<div className="newMain clearfix">
|
|
|
|
<div className="educontent mt10 mb50">
|
|
|
|
<div className="educontent mt10 mb50">
|
|
|
|
<div className="mb10 edu-back-white">
|
|
|
|
<div className="mb10 edu-back-white">
|
|
|
|
<p className="padding20 bor-bottom-greyE font-18 color-grey-3">创建实训课程</p>
|
|
|
|
<p className="padding20 bor-bottom-greyE font-18 color-grey-3">创建实践课程</p>
|
|
|
|
<div className="padding30-20" id="part_Name">
|
|
|
|
<div className="padding30-20" id="part_Name">
|
|
|
|
<p className="color-grey-6 font-16 mb15">实训课程名称</p>
|
|
|
|
<p className="color-grey-6 font-16 mb15">实践课程名称</p>
|
|
|
|
<div className="df">
|
|
|
|
<div className="df">
|
|
|
|
<span className="mr30 color-orange pt10">*</span>
|
|
|
|
<span className="mr30 color-orange pt10">*</span>
|
|
|
|
<div className="flex1 mr20">
|
|
|
|
<div className="flex1 mr20">
|
|
|
@ -233,7 +233,7 @@ class PathNew extends Component{
|
|
|
|
<span className="mr30 color-orange pt10">*</span>
|
|
|
|
<span className="mr30 color-orange pt10">*</span>
|
|
|
|
<div className="flex1 mr20">
|
|
|
|
<div className="flex1 mr20">
|
|
|
|
<div id="shixun_introduction" className="new_li editormd editormd-vertical">
|
|
|
|
<div id="shixun_introduction" className="new_li editormd editormd-vertical">
|
|
|
|
<textarea className="input-100-45" name="description" placeholder="请在此输入实训课程的简介" value={description}></textarea>
|
|
|
|
<textarea className="input-100-45" name="description" placeholder="请在此输入实践课程的简介" value={description}></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p id="e_tip_shixun_introduction" className="edu-txt-right color-grey-cd font-12"></p>
|
|
|
|
<p id="e_tip_shixun_introduction" className="edu-txt-right color-grey-cd font-12"></p>
|
|
|
|
<p id="e_tips_shixun_introduction" className="edu-txt-right color-grey-cd font-12"></p>
|
|
|
|
<p id="e_tips_shixun_introduction" className="edu-txt-right color-grey-cd font-12"></p>
|
|
|
@ -247,7 +247,7 @@ class PathNew extends Component{
|
|
|
|
<span className="mr30 color-orange pt10">*</span>
|
|
|
|
<span className="mr30 color-orange pt10">*</span>
|
|
|
|
<div className="flex1 mr20">
|
|
|
|
<div className="flex1 mr20">
|
|
|
|
<div id="shixun_propaedeutics" className="new_li editormd editormd-vertical">
|
|
|
|
<div id="shixun_propaedeutics" className="new_li editormd editormd-vertical">
|
|
|
|
<textarea name="learning_notes" placeholder="请在此输入实训课程的学习须知" value={point}></textarea>
|
|
|
|
<textarea name="learning_notes" placeholder="请在此输入实践课程的学习须知" value={point}></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p id="e_tip_shixun_propaedeutics" className="edu-txt-right color-grey-cd font-12"></p>
|
|
|
|
<p id="e_tip_shixun_propaedeutics" className="edu-txt-right color-grey-cd font-12"></p>
|
|
|
|
<p id="e_tips_shixun_propaedeutics" className="edu-txt-right color-grey-cd font-12"></p>
|
|
|
|
<p id="e_tips_shixun_propaedeutics" className="edu-txt-right color-grey-cd font-12"></p>
|
|
|
|