diff --git a/public/react/src/modules/courses/Index.js b/public/react/src/modules/courses/Index.js
index 74e074d67..716a3583c 100644
--- a/public/react/src/modules/courses/Index.js
+++ b/public/react/src/modules/courses/Index.js
@@ -527,14 +527,14 @@ class CoursesIndex extends Component{
>
{/* 新建作品 */}
- ()
}
>
{/* 修改作品 */}
- ()
}
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
index 671966c5d..d45b7d60f 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
@@ -302,7 +302,7 @@ class GraduateTaskItem extends Component{
{item==="提交作品"?
- 提交作品
+ 提交作品
:""}
@@ -310,7 +310,7 @@ class GraduateTaskItem extends Component{
{item==="补交作品"?
- 补交作品
+ 补交作品
:""}
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskDetail.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskDetail.js
index ab5869a1e..0aff1a1bd 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskDetail.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskDetail.js
@@ -168,8 +168,29 @@ class GraduationTaskDetail extends Component{
typs:"end",
})
}
+ coursetaskend=()=>{
+ const coursesId = this.props.match.params.coursesId;
+ const task_Id = this.props.match.params.task_Id;
+
+ let url = `/courses/${coursesId}/graduation_tasks/end_task.json`;
+ axios.post(url,{
+ task_ids:[task_Id],
+ group_ids: this.state.course_groupslist,
+ }).then((response)=>{
+ if (response.data.status == 0) {
+ this.props.showNotification(response.data.message);
+ this.cancelmodel();
+ this.getdatas();
+ this.child && this.child.reInit();
+ }
+
+ }).catch((error)=>{
+
+ })
+ }
// 取消
cancelmodel=()=>{
+ debugger
this.setState({
Modalstype:false,
Loadtype:false,
@@ -399,14 +420,14 @@ class GraduationTaskDetail extends Component{
{questionslist.work_status===undefined||questionslist.work_status===null||questionslist.work_status.length===0?"":questionslist.work_status.map((item,key)=>{
return(
- {item==="提交作品"?提交作品:""}
- {item==="补交作品"?补交作品:""}
- {item==="修改作品"?修改作品:""}
- {item==="查看作品"?查看作品 :""}
- {item==="创建项目"?创建项目:""}
- {item==="关联项目"?关联项目:""}
- {item==="取消关联"?取消关联:""}
- {item==="补交附件"?补交附件:""}
+ {item==="提交作品"?提交作品:""}
+ {item==="补交作品"?补交作品:""}
+ {item==="修改作品"?修改作品:""}
+ {item==="查看作品"?查看作品 :""}
+ {item==="创建项目"?创建项目:""}
+ {item==="关联项目"?关联项目:""}
+ {item==="取消关联"?取消关联:""}
+ {item==="补交附件"?补交附件:""}
)
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js
index 7d2ec7173..35d9cdad2 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js
@@ -571,7 +571,7 @@ class GraduationTasksSubmitedit extends Component{
{/*>*/}
毕设任务
>
- 任务详情
+ 任务详情
>
{/**/}
{/*{workslist&&workslist.task_name}*/}
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
index 5bf7830d4..874a69ca5 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
@@ -83,6 +83,10 @@ class GraduationTaskssettingapp extends Component{
}
}
+ reInit=()=>{
+ this.getsettings();
+ }
+
getsettings=()=>{
let task_Id=this.props.match.params.task_Id;
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
index 3733c2b51..acfcbaa63 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
@@ -81,6 +81,15 @@ class GraduationTaskssettinglist extends Component{
this.props.history.replace(`/courses/${this.state.taskslistdata.course_id}/graduation_tasks/${this.state.taskslistdata.graduation_id}`);
}
+ reInit=()=>{
+ this.setState({
+ course_groupslist:[],
+ checkAllValue:false
+ })
+ let {teacher_comment, task_status, course_group, cross_comment, order, b_order, search} = this.state;
+ this.seacthdata(teacher_comment, task_status, course_group, cross_comment, order, b_order, search,this.state.page);
+ }
+
seacthdata=(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,pages)=>{
let{page,limit}=this.state;
// console.log(teacher_comment,task_status,course_group,cross_comment,order,b_order,search)
@@ -97,7 +106,7 @@ class GraduationTaskssettinglist extends Component{
order:order===null?undefined:order,
b_order:b_order===null?undefined:b_order,
search:search===null?undefined:search,
- page:pages===null?undefined:pages,
+ page:pages===null?undefined:page,
limit:20,
},
paramsSerializer: function(params) {
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js
index ff455b59d..06ed1eaa1 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js
@@ -42,6 +42,11 @@ class GraduationTasksquestions extends Component{
}
}
+
+ reInit=()=>{
+ this.getdatas();
+ }
+
getdatas=()=>{
const task_Id = this.props.match.params.task_Id;
let url="/graduation_tasks/"+task_Id+".json";
@@ -51,7 +56,6 @@ class GraduationTasksquestions extends Component{
this.setState({
questionslist:result.data
})
-
}
}).catch((error)=>{
console.log(error)