+
diff --git a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js
index 01abe1c62..715ffb7e8 100644
--- a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js
+++ b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js
@@ -15,7 +15,7 @@ class ShixunWorkModal extends Component{
}
componentDidMount() {
let {group_list}=this.state;
- let url="/homework_commons/"+this.props.match.params.homeworkid+"/group_list.json";
+ let url="/homework_commons/"+this.props.match.params.homeworkid+"/group_list.json";
axios.get(url,{params:{
limit:10,
page:1,
@@ -32,7 +32,6 @@ class ShixunWorkModal extends Component{
newgroup_list.push(item)
})
if( response.data.ungroup_list!== undefined || response.data.ungroup_list !== null){
- console.log()
newgroup_list.push(response.data.ungroup_list)
}
this.setState({
@@ -50,7 +49,7 @@ class ShixunWorkModal extends Component{
//勾选实训
shixunhomeworkedit=(checkedValues)=>{
- let types=false
+ let types=false
let{group_list}=this.state;
group_list.map((item,key)=>{
if(item!=undefined){
@@ -88,7 +87,6 @@ class ShixunWorkModal extends Component{
let {page,limit,group_list}=this.state;
let newpage=page+1;
let newgroup_list=group_list;
- debugger
let url="/homework_commons/"+this.props.match.params.homeworkid+"/group_list.json";
axios.get(url,{params:{
@@ -134,30 +132,30 @@ class ShixunWorkModal extends Component{
let {data}=this.props;
if(e.target.checked===true){
- if(data&&data.length===0){
+ if(data&&data.length===0){
let id=[]
group_list.forEach((item,key)=>{
id.push(item.id)
})
- this.setState({
- group_ids:id,
- onChangetype:e.target.checked
- })
- }else{
- let id=[]
- group_list.forEach((item,key)=>{
- id.push(item.id)
- })
- this.setState({
- group_ids:id,
- onChangetype:e.target.checked
- })
- }
- }else{
this.setState({
- group_ids:[],
+ group_ids:id,
onChangetype:e.target.checked
})
+ }else{
+ let id=[]
+ group_list.forEach((item,key)=>{
+ id.push(item.id)
+ })
+ this.setState({
+ group_ids:id,
+ onChangetype:e.target.checked
+ })
+ }
+ }else{
+ this.setState({
+ group_ids:[],
+ onChangetype:e.target.checked
+ })
}
}
@@ -187,7 +185,7 @@ class ShixunWorkModal extends Component{
message:"提示",
description: response.data.message
});
- console.log(this.props)
+ console.log(this.props)
}else if(response.data.status === -1){
notification.open({
message:"提示",
@@ -222,7 +220,7 @@ class ShixunWorkModal extends Component{
render(){
let {course_groups,group_ids,onChangetype,group_list}=this.state;
// let {data}=this.props;
- // console.log(group_list)
+ // console.log(group_list)
// console.log(course_groups)
return(
@@ -251,59 +249,59 @@ class ShixunWorkModal extends Component{
{course_groups===undefined?"":
-
-
-
- {
- group_list===undefined?course_groups.ungroup_list.work_count===0?"":
-
-
-
-
-
-
-
-
- -
- {course_groups.ungroup_list.work_count}
-
- -
- {course_groups.ungroup_list.last_review_time}
-
-
-
- :
- group_list&&group_list.map((item,key)=>{
- return(
- item.work_count===0?"":
-
-
-
-
-
-
- -
- {item===undefined?"":item.works_count===undefined?item.work_count:item.works_count}
-
- -
- {item===undefined?"":item.last_review_time}
-
-
+ onScroll={this.contentViewScroll}
+ >
+
+
+
+ {
+ group_list===undefined?course_groups.ungroup_list.work_count===0?"":
+
+
+
-
+
+
+
+
+ -
+ {course_groups.ungroup_list.work_count}
+
+ -
+ {course_groups.ungroup_list.last_review_time}
+
+
+
+ :
+ group_list&&group_list.map((item,key)=>{
+ return(
+ item.work_count===0?"":
+
-
+
+
+
+
+ -
+ {item===undefined?"":item.works_count===undefined?item.work_count:item.works_count}
+
+ -
+ {item===undefined?"":item.last_review_time}
+
+
)
})
- }
-
-
+ }
+
+
}
{onChangetype===true?"清除":"全选"}
diff --git a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
index 46fda3e10..922496d69 100644
--- a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
+++ b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
@@ -467,19 +467,31 @@ class Workquestionandanswer extends Component {
作业说明:
{
this.props.isAdmin()&&this.props.isAdmin()===true ?
+
+ (Showupdateinstructions&& Showupdateinstructions === true?"":
this.jobdescriptiondisplaybj()} >
- :""
+ className="color-green font-18 iconfont icon-bianjidaibeijing fr pr20 " onClick={()=>this.jobdescriptiondisplaybj()} >
+ ):""
}
-
- {jobsettingsdata === undefined ? "无" : jobsettingsdata === null ? "无" : jobsettingsdata === "null" ? "无" :
- jobsettingsdata.data.explanation=== undefined?"无" :jobsettingsdata.data.explanation=== null?"无":
-
- }
+
+ { Showupdateinstructions&& Showupdateinstructions === true?
+
+
+
+ :
+
+ {jobsettingsdata === undefined ? "无" : jobsettingsdata === null ? "无" : jobsettingsdata === "null" ? "无" :
+ jobsettingsdata.data.explanation=== undefined?"无" :jobsettingsdata.data.explanation=== null?"无":
+
+ }
+
+
+ }
+
@@ -494,12 +506,12 @@ class Workquestionandanswer extends Component {
{/* */}
{/**/}
{/*
*/}
- { Showupdateinstructions&& Showupdateinstructions === true?
-
-
-
- :""
- }
+ {/*{ Showupdateinstructions&& Showupdateinstructions === true?*/}
+ {/* */}
+ {/* */}
+ {/*
*/}
+ {/* :""*/}
+ {/*}*/}
{ homework_id &&