dev_forum
杨树明 6 years ago
parent 097a0e495c
commit 5684b99c8a

@ -59,15 +59,18 @@ class Associationmodel extends Component{
goback=()=>{
debugger
this.setState({
Modalstype:false,
})
this.props.funlist()
this.props.Cancel()
this.props.funlist()
}
setSaves=()=>{
debugger
let {projectvalue}=this.state;
let taskid=this.props.taskid;
let url="/graduation_tasks/"+taskid+"/graduation_works/relate_project.json";
@ -76,19 +79,14 @@ class Associationmodel extends Component{
project_id: projectvalue
}).then((result)=>{
if(result.status===200){
if(result.data.status===0){
this.goback()
// this.setState({
// Modalstype:true,
// Modalstopval:result.data.message,
// ModalSave:this.goback,
// loadtype:true
// })
this.goback
}
}
}).catch((error)=>{
console.log(error)
@ -115,7 +113,7 @@ class Associationmodel extends Component{
project_id: projectvalue
}
}).then((result)=>{
if(result.status===200){
if(result.data.is_relate===false){
this.setSaves()
}else{
@ -126,7 +124,7 @@ class Associationmodel extends Component{
loadtype:true
})
}
}
}).catch((error)=>{
console.log(error)
})

@ -59,12 +59,12 @@ class GraduateTaskItem extends Component{
axios.get(url).then((result)=>{
if(result.data.status===0){
this.setState({
Modalstype:true,
Modalstopval:result.data.message,
cardsModalsavetype:this.cannerassocition,
loadtype:true
})
// this.setState({
// Modalstype:true,
// Modalstopval:result.data.message,
// cardsModalsavetype:this.cannerassocition,
// loadtype:true
// })
this.props.funlist()
}

@ -249,8 +249,8 @@ class GraduationTasksappraise extends Component{
</div>
{firelistdata===undefined?"":firelistdata.length===0?"":firelistdata.revise_attachments.length===0?"":
<div className={"stud-class-set bor-top-greyE padding20-30 edu-back-white"}>
<div className={"color-grey-6 mb10 bor-top-greyE"}>
<div className={"stud-class-set bor-bottom-greyEpadding20-30 edu-back-white"}>
<div className={"color-grey-6 mb10 "}>
补交附件
</div>
<div className={"ml20"}>
@ -291,7 +291,7 @@ class GraduationTasksappraise extends Component{
</div>}
{datalist&&datalist.project_info===undefined?"":
<div className={"stud-class-set edu-back-white padding20-30 bor-top-greyE"}>
<div className={"stud-class-set edu-back-white padding20-30 bor-bottom-greyE"}>
<div className={"color-grey-6 mb10"}>
关联项目
</div>
@ -301,7 +301,7 @@ class GraduationTasksappraise extends Component{
</div>}
{/*{*/}
{ datalist === undefined?"": datalist && datalist.task_type===undefined ?"" : datalist.task_type===1? "": datalist && datalist.work_members && datalist.work_members.length == 0 ?"":
<div className={"stud-class-set edu-back-white padding20-30 bor-top-greyE"} style={{height:"100%"}}>
<div className={"stud-class-set edu-back-white padding20-30 bor-bottom-greyE"} style={{height:"100%"}}>
<div className={"color-grey-6 mb10"}>
其他组员
</div>

@ -544,12 +544,12 @@ class GraduationTaskssettinglist extends Component{
if(result.data.status===0){
this.searchValue()
this.setState({
Modalstype:true,
Modalstopval:result.data.message,
ModalSave:this.cannerassocition,
loadtype:true
})
// this.setState({
// Modalstype:true,
// Modalstopval:result.data.message,
// ModalSave:this.cannerassocition,
// loadtype:true
// })
}
}).catch((error)=>{

Loading…
Cancel
Save