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

@ -120,11 +120,12 @@ class Exercise extends Component{
changeType=(e)=>{ changeType=(e)=>{
this.setState({ this.setState({
type:e.key, type:e.key,
page:1,
checkAllValue:false, checkAllValue:false,
checkBoxValues:[] checkBoxValues:[]
}) })
let{StudentList_value,page,limit}=this.state; 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/"+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"} 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"} 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.AssociationItems}>关联项目</a>:""}
{item==="取消关联"?<a className={"fr color-blue font-16 ml20"} onClick={this.cannelAssociation}>取消关联</a>:""} {item==="取消关联"?<a className={"fr color-blue font-16 ml20"} onClick={this.cannelAssociation}>取消关联</a>:""}

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

@ -96,11 +96,12 @@ class Poll extends Component{
changeType=(e)=>{ changeType=(e)=>{
this.setState({ this.setState({
type:e.key, type:e.key,
page:1,
checkBoxValues:[], checkBoxValues:[],
checkAllValue:false checkAllValue:false
}) })
let{StudentList_value,page}=this.state; 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)=>{ InitList=(type,search,page,bank_checkValue)=>{

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

Loading…
Cancel
Save