+ return
} else {
return
}
} else if (item.question_type == 3) {
if (item.isNew) {
- return
+ return
} else {
return
}
diff --git a/public/react/src/modules/courses/exercise/new/JudgeEditor.js b/public/react/src/modules/courses/exercise/new/JudgeEditor.js
index 16ccad54a..41bc5bac4 100644
--- a/public/react/src/modules/courses/exercise/new/JudgeEditor.js
+++ b/public/react/src/modules/courses/exercise/new/JudgeEditor.js
@@ -97,16 +97,8 @@ class SingleEditor extends Component{
if (response.data.status == 0) {
this.props.addSuccess()
}else if(response.data.status == 3){
- this.props.confirm({
- content:'修改了标准答案',
- subContent:"是否重新计算学生答题的成绩?",
- onOk:()=>{
- this.props.sureChangeScore(question_id,answerArray)
- },
- onCancel:()=>{
- this.props.addSuccess();
- }
- })
+ // 已发布试卷编辑保存
+ this.props.changeScore(question_id,answerArray);
}
})
.catch(function (error) {
diff --git a/public/react/src/modules/courses/exercise/new/NullEditor.js b/public/react/src/modules/courses/exercise/new/NullEditor.js
index f3c736196..85a8aa336 100644
--- a/public/react/src/modules/courses/exercise/new/NullEditor.js
+++ b/public/react/src/modules/courses/exercise/new/NullEditor.js
@@ -137,16 +137,8 @@ class NullEditor extends Component{
if (response.data.status == 0) {
this.props.addSuccess()
}else if(response.data.status == 3){
- this.props.confirm({
- content:'修改了标准答案',
- subContent:"是否重新计算学生答题的成绩?",
- onOk:()=>{
- this.props.sureChangeScore(question_id,answerArray)
- },
- onCancel:()=>{
- this.props.addSuccess();
- }
- })
+ // 已发布试卷编辑保存
+ this.props.changeScore(question_id,answerArray);
}
})
.catch(function (error) {
diff --git a/public/react/src/modules/courses/exercise/new/SingleEditor.js b/public/react/src/modules/courses/exercise/new/SingleEditor.js
index 8053f4f21..50e594a59 100644
--- a/public/react/src/modules/courses/exercise/new/SingleEditor.js
+++ b/public/react/src/modules/courses/exercise/new/SingleEditor.js
@@ -135,16 +135,8 @@ class SingleEditor extends Component{
if (response.data.status == 0) {
this.props.addSuccess()
}else if(response.data.status == 3){
- this.props.confirm({
- content:'修改了标准答案',
- subContent:"是否重新计算学生答题的成绩?",
- onOk:()=>{
- this.props.sureChangeScore(question_id,answerArray)
- },
- onCancel:()=>{
- this.props.addSuccess();
- }
- })
+ // 已发布试卷编辑保存
+ this.props.changeScore(question_id,answerArray);
}
})
.catch(function (error) {
diff --git a/public/react/src/modules/courses/members/modal/CreateGroupByImportModal.js b/public/react/src/modules/courses/members/modal/CreateGroupByImportModal.js
index fe2a88dce..54c0df912 100644
--- a/public/react/src/modules/courses/members/modal/CreateGroupByImportModal.js
+++ b/public/react/src/modules/courses/members/modal/CreateGroupByImportModal.js
@@ -13,15 +13,12 @@ class CreateGroupByImportModal extends Component{
constructor(props){
super(props);
this.state={
+ errorTip:undefined
}
}
- fetchMemberList = (arg_page) => {
- }
- componentDidMount() {
-
-
- }
+
onSendOk = () => {
+
const courseId = this.props.match.params.coursesId
let url = `/courses/${courseId}/create_group_by_importing_file.json`
@@ -112,12 +109,13 @@ class CreateGroupByImportModal extends Component{
render(){
const { candidates, checkBoxValues, loading, hasMore, name, school_name, school_names
- , graduationGroup, graduation_groups, courseGroup, course_groups } = this.state
+ , graduationGroup, graduation_groups, courseGroup, course_groups , fileList , errorTip } = this.state
const { moduleName } = this.props
const props = {
name: 'file',
multiple: true,
+ fileList:fileList,
action: getUploadActionUrl(),
onRemove: this.onAttachmentRemove,
onChange: this.handleChange
@@ -131,17 +129,6 @@ class CreateGroupByImportModal extends Component{
onOk={this.onOk}
className="createGroupByImport"
>
-
-
-
-
-
-
-
@@ -151,6 +138,9 @@ class CreateGroupByImportModal extends Component{
单个文件最大150MB
+
+ {errorTip}
+
)
}
diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.js b/public/react/src/modules/paths/PathDetail/DetailTop.js
index 0777718b8..4506f8700 100644
--- a/public/react/src/modules/paths/PathDetail/DetailTop.js
+++ b/public/react/src/modules/paths/PathDetail/DetailTop.js
@@ -30,38 +30,41 @@ class DetailTop extends Component{
}
}
componentDidMount(){
- let courseslist=[]
-
+ this.getdatalist();
+ }
+ getdatalist=()=>{
+ let courseslist=[];
+ let keys=1;
if(this.props.courses!=undefined&&this.props.courses.length!=0){
- this.props.courses.map((item,key)=>{
- if(this.props.pathtopskey===key+1){
- return(
- courseslist.push(item)
- )
- }
- })
+ if(this.props.detailInfoList.has_start===true){
+ this.props.courses.map((item,key)=>{
+ if(item.course_status.status===1){
+ keys=key+1
+ return(
+ courseslist.push(item)
+ )
+ }
+ })
+
+ }else{
+ this.props.courses.map((item,key)=>{
+ if(this.props.pathtopskey===key+1){
+ keys=key+1
+ return(
+ courseslist.push(item)
+ )
+ }
+ })
+ }
}
this.setState({
- courseslist:courseslist
+ courseslist:courseslist,
+ MenuItemskey:keys,
})
}
-
componentDidUpdate=(prevProps)=> {
if(prevProps.courses!=this.props.courses){
- let courseslist=[]
-
- if(this.props.courses!=undefined&&this.props.courses.length!=0){
- this.props.courses.map((item,key)=>{
- if(this.props.pathtopskey===key+1){
- return(
- courseslist.push(item)
- )
- }
- })
- }
- this.setState({
- courseslist:courseslist
- })
+ this.getdatalist();
}
}
@@ -451,7 +454,7 @@ class DetailTop extends Component{
onVisibleChange={this.onVisibleChanges}
>
- 第{this.state.MenuItemskey}次开课
+ 第 {this.state.MenuItemskey} 次开课
@@ -509,7 +512,7 @@ class DetailTop extends Component{
报名人数:
- {item.student_count}人
+ {item.student_count} 人
diff --git a/public/react/src/modules/paths/PathNew.js b/public/react/src/modules/paths/PathNew.js
index 6178ae82e..95e343b13 100644
--- a/public/react/src/modules/paths/PathNew.js
+++ b/public/react/src/modules/paths/PathNew.js
@@ -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;
}
diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js
index a98e80739..21bd63b2b 100644
--- a/public/react/src/modules/tpm/TPMIndexHOC.js
+++ b/public/react/src/modules/tpm/TPMIndexHOC.js
@@ -35,14 +35,14 @@ if (!window['indexHOCLoaded']) {
// $('head').append($('')
// .attr('href', `${_url_origin}/stylesheets/educoder/antd.min.css?1525440977`));
$('head').append($('')
- .attr('href', `${_url_origin}/stylesheets/css/edu-common.css?6`));
+ .attr('href', `${_url_origin}/stylesheets/css/edu-common.css?8`));
$('head').append($('')
- .attr('href', `${_url_origin}/stylesheets/educoder/edu-main.css?6`));
+ .attr('href', `${_url_origin}/stylesheets/educoder/edu-main.css?8`));
// index.html有加载
$('head').append($('')
- .attr('href', `${_url_origin}/stylesheets/educoder/edu-all.css?6`));
+ .attr('href', `${_url_origin}/stylesheets/educoder/edu-all.css?8`));
// $('head').append($('')
diff --git a/public/stylesheets/educoder/edu-all.css b/public/stylesheets/educoder/edu-all.css
index 823af3c5d..c4718c076 100644
--- a/public/stylesheets/educoder/edu-all.css
+++ b/public/stylesheets/educoder/edu-all.css
@@ -120,12 +120,13 @@ em.vertical-line{display: inline-block;width: 2px;background: #999;height: 10px}
bottom: 90px;}
.tag-green .tag-name{display: block;width: auto;
/*background-image: url("/images/educoder/tag1.png");*/
- background: #000000;
+ background: rgba(000,000,000,0.56);
border: 1px solid #fff;
border-radius: 3px;
font-size: 12px;
- opacity: 0.56;
- background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left;}
+ /*opacity: 0.56;*/
+ background-size: 100% 100%;
+ padding: 0px 8px;color: #fff;float: left;}
.tag-orange{position: absolute;right: 0px;top:12px;}
.tag-orange .tag-name{display: block;width: auto;background-color:#FF6800;
background-size: 100% 100%;padding: 0px 8px;color: #fff;float: left;
@@ -3755,4 +3756,8 @@ a.singlepublishtwo{
.has-error .ant-input:focus{
border-color: #ff4d4f !important;
-}
\ No newline at end of file
+}
+/*.ant-notification{*/
+ /*width: auto !important;*/
+ /*max-width: 600px !important;*/
+/*}*/
\ No newline at end of file