window.$(`.exerciseitem${key} input`).click() }>
+
window.$(`.exerciseitem${index} input`).click() }>
{
IsAdmin &&
-
+
{checkBox}
}
@@ -96,20 +96,20 @@ class ExerciseListItem extends Component{
{/*{item.exercise_name}*/}
{
- this.props.isAdmin()? {item.exercise_name}:""
+ to={`/courses/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`}>{item.exercise_name}:""
}
{
this.props.isStudent()?
- {item.exercise_name}:""
+ {item.exercise_name}:""
}
{
this.props.isNotMember()? item.lock_status === 0 ?
{item.exercise_name}
- : {item.exercise_name}:""
+ : {item.exercise_name}:""
}
{
@@ -165,8 +165,8 @@ class ExerciseListItem extends Component{
{ IsAdmin && }
@@ -193,7 +193,7 @@ class ExerciseListItem extends Component{
}
diff --git a/public/react/src/modules/courses/poll/Poll.js b/public/react/src/modules/courses/poll/Poll.js
index 9574f2492..b064c289b 100644
--- a/public/react/src/modules/courses/poll/Poll.js
+++ b/public/react/src/modules/courses/poll/Poll.js
@@ -596,7 +596,7 @@ class Poll extends Component{
{...this.state}
courseType={course_types}
item={item}
- key={key}
+ index={key}
checkBox={
this.onItemClick(item)}>}
>
)
diff --git a/public/react/src/modules/courses/poll/PollListItem.js b/public/react/src/modules/courses/poll/PollListItem.js
index 368fda32b..c4f1c8209 100644
--- a/public/react/src/modules/courses/poll/PollListItem.js
+++ b/public/react/src/modules/courses/poll/PollListItem.js
@@ -16,7 +16,7 @@ class PollListItem extends Component{
super(props);
}
render(){
- let{item,checkBox,courseType,key}=this.props;
+ let{item,checkBox,courseType,index}=this.props;
let {coursesId}=this.props.match.params;
const IsAdmin =this.props.isAdmin();
@@ -28,10 +28,10 @@ class PollListItem extends Component{
let canNotLink = !isAdminOrStudent && item.lock_status == 0
return(
-
window.$(`.pollitem${key} input`).click() }>
+
window.$(`.pollitem${index} input`).click() }>
{
IsAdmin &&
-
+
{checkBox}
}
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
index 38ab63a4f..942c06800 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
@@ -124,13 +124,19 @@ class ShixunhomeWorkItem extends Component{
})
}
- editname = (name,id) => {
+ // 实训详情,阻止冒泡
+ stopPro = (event) => {
+ event.stopPropagation()
+ }
+
+ editname = (name,id,event) => {
this.setState({
ModalsRenametype:true,
NavmodalValue:name,
Navmodalname:"重命名",
url:`/homework_commons/${id}/alter_name.json`
})
+ event.stopPropagation()
}
cannerNavmoda=()=>{
this.setState({
@@ -157,88 +163,74 @@ class ShixunhomeWorkItem extends Component{
const { checkBox,
discussMessage,
- taskid,
+ taskid,index
} = this.props;
- //
-
- // allow_late: true //是否开启补交
-
- // homework_id: 9250
-
- // shixun_identifier: "25ykhpvl"
-
- //
- // console.log("this.props.isAdmin");
-
-
return(
-
- {this.state.ModalsRenametype===true?
-
this.cannerNavmoda()}
- />
- :""}
-
-
-
- {visible===true?:""}
-
-
-
-
-
-
-
-
-
本实训的开启时间:{shixunsmessage}
开启时间之前不能挑战
-
-
-
- {/**/}
- {/*知道了*/}
- {/*
*/}
-
-
+
+ {
+ this.state.ModalsRenametype===true?
+ this.cannerNavmoda()}
+ />
+ :""}
+
+ {visible===true?:""}
+
+
+
+
+
+
+
+
本实训的开启时间:{shixunsmessage}
开启时间之前不能挑战
+
+
+
+ {/**/}
+ {/*知道了*/}
+ {/*
*/}
+
+ window.$(`.shixunitem${index} input`).click() } >
- {this.props.isAdmin?checkBox:""}
+ {this.props.isAdmin?
+
{checkBox}
+ :
+ ""
+ }
+
)
}
}
diff --git a/public/react/src/modules/courses/shixunHomework/shixunHomework.js b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
index d84453fc8..cdbac6760 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunHomework.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
@@ -1163,8 +1163,9 @@ class ShixunHomework extends Component{
isStudent={this.props.isStudent()}
isNotMember={this.props.isNotMember()}
isClassManagement={this.props.isClassManagement()}
- checkBox={this.props.isAdmin()?
:""}
+ checkBox={this.props.isAdmin()?
:""}
match={this.props.match}
+ index={index}
coursedata={this.props.coursedata}
coursupdata={()=>this.homeworkupdatalist(Coursename,page,order)}
course_identity={datas.course_identity}