|
|
@ -87,7 +87,7 @@ class ShixunWorkModal extends Component{
|
|
|
|
let {page,limit,group_list}=this.state;
|
|
|
|
let {page,limit,group_list}=this.state;
|
|
|
|
let newpage=page+1;
|
|
|
|
let newpage=page+1;
|
|
|
|
let newgroup_list=group_list;
|
|
|
|
let newgroup_list=group_list;
|
|
|
|
|
|
|
|
debugger
|
|
|
|
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:{
|
|
|
|
axios.get(url,{params:{
|
|
|
@ -97,7 +97,7 @@ class ShixunWorkModal extends Component{
|
|
|
|
}).then((response) => {
|
|
|
|
}).then((response) => {
|
|
|
|
if(response!==null || response!==undefined){
|
|
|
|
if(response!==null || response!==undefined){
|
|
|
|
if(response.data.group_list.length>0){
|
|
|
|
if(response.data.group_list.length>0){
|
|
|
|
console.log("84");
|
|
|
|
|
|
|
|
response.data.group_list.map((item,key)=>{
|
|
|
|
response.data.group_list.map((item,key)=>{
|
|
|
|
newgroup_list.push(item);
|
|
|
|
newgroup_list.push(item);
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
@ -111,8 +111,7 @@ class ShixunWorkModal extends Component{
|
|
|
|
if(response.data.ungroup_list===undefined || response.data.ungroup_list === null) {
|
|
|
|
if(response.data.ungroup_list===undefined || response.data.ungroup_list === null) {
|
|
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
console.log("95");
|
|
|
|
|
|
|
|
console.log(response.data.ungroup_list);
|
|
|
|
|
|
|
|
newgroup_list.push(response.data.ungroup_list);
|
|
|
|
newgroup_list.push(response.data.ungroup_list);
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
course_groups:response.data,
|
|
|
|
course_groups:response.data,
|
|
|
@ -244,24 +243,23 @@ class ShixunWorkModal extends Component{
|
|
|
|
.fontlefts{text-align: left;}
|
|
|
|
.fontlefts{text-align: left;}
|
|
|
|
`}</style>
|
|
|
|
`}</style>
|
|
|
|
<ul className="clearfix edu-txt-center">
|
|
|
|
<ul className="clearfix edu-txt-center">
|
|
|
|
<li className="fl paddingleft22 fontlefts" style={{width:'150px'}}>分班名称</li>
|
|
|
|
<li className="fl paddingleft22 fontlefts" style={{width:'260px'}}>分班名称</li>
|
|
|
|
<li className="fl edu-txt-left" style={{width:'150px'}}>有效作品数</li>
|
|
|
|
<li className="fl edu-txt-left" style={{width:'117px'}}>有效作品数</li>
|
|
|
|
<li className="fl" style={{width:'100px'}}>上次查重时间</li>
|
|
|
|
<li className="fl" style={{width:'100px'}}>上次查重时间</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
{course_groups===undefined?"":
|
|
|
|
{course_groups===undefined?"":
|
|
|
|
<ul className="upload_select_box fl clearfix mt10 mb10" tyle={{"overflow-y":"auto"}}id="search_not_members_list"
|
|
|
|
<ul className="upload_select_box fl clearfix mt10 mb10" tyle={{"overflow-y":"auto"}}id="search_not_members_list"
|
|
|
|
|
|
|
|
|
|
|
|
onScroll={this.contentViewScroll}
|
|
|
|
onScroll={this.contentViewScroll}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Checkbox.Group style={{ width: '100%' }} onChange={this.shixunhomeworkedit} value={group_ids}>
|
|
|
|
<Checkbox.Group style={{ width: '100%' }} onChange={this.shixunhomeworkedit} value={group_ids}>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
group_list===undefined?
|
|
|
|
group_list===undefined?course_groups.ungroup_list.work_count===0?"":
|
|
|
|
|
|
|
|
|
|
|
|
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE">
|
|
|
|
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE">
|
|
|
|
<li className="fl" style={{width: '100px'}}>
|
|
|
|
<li className="fl task-hide" style={{width: '240px'}}>
|
|
|
|
<Checkbox
|
|
|
|
<Checkbox
|
|
|
|
className="fl task-hide edu-txt-left"
|
|
|
|
className="fl task-hide edu-txt-left"
|
|
|
|
name="shixun_homework[]"
|
|
|
|
name="shixun_homework[]"
|
|
|
@ -271,8 +269,8 @@ class ShixunWorkModal extends Component{
|
|
|
|
className="task-hide color-grey-name" title="frerere">{course_groups.ungroup_list.name}</label>
|
|
|
|
className="task-hide color-grey-name" title="frerere">{course_groups.ungroup_list.name}</label>
|
|
|
|
</Checkbox>
|
|
|
|
</Checkbox>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li className="fl" style={{width: '150px'}}>
|
|
|
|
<li className="fl" style={{width: '100px'}}>
|
|
|
|
{course_groups.ungroup_list.works_count}
|
|
|
|
{course_groups.ungroup_list.work_count}
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li className="fl" style={{width: '160px'}}>
|
|
|
|
<li className="fl" style={{width: '160px'}}>
|
|
|
|
{course_groups.ungroup_list.last_review_time}
|
|
|
|
{course_groups.ungroup_list.last_review_time}
|
|
|
@ -282,8 +280,8 @@ class ShixunWorkModal extends Component{
|
|
|
|
:
|
|
|
|
:
|
|
|
|
group_list&&group_list.map((item,key)=>{
|
|
|
|
group_list&&group_list.map((item,key)=>{
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE" key={key}>
|
|
|
|
item.work_count===0?"":<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE" key={key}>
|
|
|
|
<li className="fl" style={{width: '100px'}}>
|
|
|
|
<li className="fl task-hide" style={{width: '240px'}}>
|
|
|
|
<Checkbox
|
|
|
|
<Checkbox
|
|
|
|
className="fl task-hide edu-txt-left"
|
|
|
|
className="fl task-hide edu-txt-left"
|
|
|
|
name="shixun_homework[]"
|
|
|
|
name="shixun_homework[]"
|
|
|
@ -293,8 +291,8 @@ class ShixunWorkModal extends Component{
|
|
|
|
className="task-hide color-grey-name" title="frerere">{item===undefined?"":item.name}</label>
|
|
|
|
className="task-hide color-grey-name" title="frerere">{item===undefined?"":item.name}</label>
|
|
|
|
</Checkbox>
|
|
|
|
</Checkbox>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li className="fl" style={{width: '150px'}}>
|
|
|
|
<li className="fl" style={{width: '100px'}}>
|
|
|
|
{item===undefined?"":item.works_count}
|
|
|
|
{item===undefined?"":item.works_count===undefined?item.work_count:item.works_count}
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li className="fl" style={{width: '160px'}}>
|
|
|
|
<li className="fl" style={{width: '160px'}}>
|
|
|
|
{item===undefined?"":item.last_review_time}
|
|
|
|
{item===undefined?"":item.last_review_time}
|
|
|
|