dev_ec
杨树明 5 years ago
parent a8f4b758d3
commit 8f97c7f957

@ -120,11 +120,12 @@ class Exercise extends Component{
changeType=(e)=>{
this.setState({
type:e.key,
page:1,
checkAllValue:false,
checkBoxValues:[]
})
let{StudentList_value,page,limit}=this.state;
this.InitList(e.key==="0"?undefined:e.key,StudentList_value,page,limit)
this.InitList(e.key==="0"?undefined:e.key,StudentList_value,1,limit)
}
//切换分页

@ -455,7 +455,7 @@ class GraduationTaskDetail extends Component{
{item==="提交作品"?<a className={"fr color-blue font-16 ml20"} href={"/courses/"+courseId+"/graduation_tasks/"+category_id+"/works/"+task_Id+"/new"}>提交作品</a>:""}
{item==="补交作品"?<a className={"fr color-blue font-16 ml20"} href={"/courses/"+courseId+"/graduation_tasks/"+category_id+"/works/"+task_Id+"/new"}>补交作品</a>:""}
{item==="修改作品"?<a className={"fr color-blue font-16 ml20"} href={"/courses/"+courseId+"/graduation_tasks/"+category_id+"/works"+"/"+ questionslist.work_id + "/edit"}>修改作品</a>:""}
{item==="查看作品"?<a className={"fr color-blue font-16 ml20"} target="_blank" href={"/courses/"+courseId+"/graduation_tasks/"+category_id+"/works"+"/"+ questionslist.work_id + "/edit"}>查看作品</a> :""}
{item==="查看作品"?<a className={"fr color-blue font-16 ml20"} target="_blank" href={"/courses/"+courseId+"/graduation_tasks/"+ questionslist.work_id + "/appraise"}>查看作品</a> :""}
{item==="创建项目"?<a className={"fr color-blue font-16 ml20"} href={'/projects/new'} target="_blank">创建项目</a>:""}
{item==="关联项目"?<a className={"fr color-blue font-16 ml20"} onClick={this.AssociationItems}>关联项目</a>:""}
{item==="取消关联"?<a className={"fr color-blue font-16 ml20"} onClick={this.cannelAssociation}>取消关联</a>:""}

@ -385,6 +385,7 @@ class GraduationTasks extends Component{
this.setState({
order: e.key,
page:1,
isSpin:true,
checkBoxValues:[],
checkAllValue:false
@ -395,7 +396,7 @@ class GraduationTasks extends Component{
newkey="all"
}
this.fetchAll(search,page,newkey);
this.fetchAll(search,1,newkey);
}
onPressEnter = (value) => {

@ -96,11 +96,12 @@ class Poll extends Component{
changeType=(e)=>{
this.setState({
type:e.key,
page:1,
checkBoxValues:[],
checkAllValue:false
})
let{StudentList_value,page}=this.state;
this.InitList(e.key,StudentList_value,page);
this.InitList(e.key,StudentList_value,1);
}
// 获取列表数据
InitList=(type,search,page,bank_checkValue)=>{

@ -43,7 +43,7 @@ class ShixunHomework extends Component{
datas:undefined,
page:1,
Coursename:"",
order:"",
order:undefined,
orders:"8",
shixunmodal:false,
shixunmodallist:undefined,
@ -92,7 +92,9 @@ class ShixunHomework extends Component{
this.setState({
isSpin:true,
checkedtype:false,
orders:"8"
order:undefined,
orders:"8",
page:1,
})
this.seactall();
if(this.props.isAdmin()===true){
@ -103,7 +105,9 @@ class ShixunHomework extends Component{
this.setState({
isSpin:true,
checkedtype:false,
orders:"8"
order:undefined,
orders:"8",
page:1
})
this.seactall(parseInt(this.props.match.params.category_id))
if(this.props.isAdmin()===true){
@ -143,7 +147,9 @@ class ShixunHomework extends Component{
if(this.props.match.params.main_id!=undefined){
this.setState({
checkedtype:false,
orders:"8"
orders:"8",
order:undefined,
page:1
})
this.seactall();
}
@ -152,7 +158,9 @@ class ShixunHomework extends Component{
if(this.props.match.params.category_id!=undefined){
this.setState({
checkedtype:false,
orders:"8"
orders:"8",
order:undefined,
page:1
})
this.seactall(parseInt(this.props.match.params.category_id))
}
@ -608,14 +616,15 @@ class ShixunHomework extends Component{
orders:e.key,
checkBoxValues:[],
checkedtype:false,
isSpin:true
isSpin:true,
page:1,
});
let newkey=e.key;
if(newkey==="8"){
newkey=undefined
}
this.homeworkupdatalist(Coursename,page,newkey);
this.homeworkupdatalist(Coursename,1,newkey);
}
funpatheditarry=(list)=>{

Loading…
Cancel
Save