|
|
@ -41,7 +41,7 @@ class GraduationTasksSubmitedit extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
componentDidMount(){
|
|
|
|
componentDidMount(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.props.form.validateFields();
|
|
|
|
let workId=this.props.match.params.work_Id;
|
|
|
|
let workId=this.props.match.params.work_Id;
|
|
|
|
|
|
|
|
|
|
|
|
let url = "/graduation_works/"+workId+"/edit.json";
|
|
|
|
let url = "/graduation_works/"+workId+"/edit.json";
|
|
|
@ -367,7 +367,6 @@ class GraduationTasksSubmitedit extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
let {fileList,selectmemberslist,workslist}=this.state;
|
|
|
|
let {fileList,selectmemberslist,workslist}=this.state;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.Commoninterface(fileList,selectmemberslist,workslist);
|
|
|
|
this.Commoninterface(fileList,selectmemberslist,workslist);
|
|
|
|
// setTimeout(function () {
|
|
|
|
// setTimeout(function () {
|
|
|
|
// GraduationTasksnewtype=true
|
|
|
|
// GraduationTasksnewtype=true
|
|
|
@ -380,27 +379,37 @@ class GraduationTasksSubmitedit extends Component{
|
|
|
|
let workId=this.props.match.params.work_Id;
|
|
|
|
let workId=this.props.match.params.work_Id;
|
|
|
|
|
|
|
|
|
|
|
|
let userids=[];
|
|
|
|
let userids=[];
|
|
|
|
|
|
|
|
// for(var list of selectmemberslist){
|
|
|
|
for(var list of selectmemberslist){
|
|
|
|
// if(list.user_id!=undefined&&list.user_id!=null){
|
|
|
|
|
|
|
|
// userids.push(list.user_id)
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
if(selectmemberslist!=undefined&&selectmemberslist.length>0){
|
|
|
|
|
|
|
|
selectmemberslist.map((list,key)=>{
|
|
|
|
if(list.user_id!=undefined&&list.user_id!=null){
|
|
|
|
if(list.user_id!=undefined&&list.user_id!=null){
|
|
|
|
userids.push(list.user_id)
|
|
|
|
userids.push(list.user_id)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let listid=[];
|
|
|
|
let listid=[];
|
|
|
|
|
|
|
|
|
|
|
|
for(var list of fileList){
|
|
|
|
// for(var list of fileList){
|
|
|
|
|
|
|
|
// listid.push(list.response == undefined ? list.id : list.response.id)
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
if(fileList!=undefined&&fileList.length>0){
|
|
|
|
|
|
|
|
fileList.map((list,key)=>{
|
|
|
|
listid.push(list.response == undefined ? list.id : list.response.id)
|
|
|
|
listid.push(list.response == undefined ? list.id : list.response.id)
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
console.log(userids)
|
|
|
|
|
|
|
|
this.props.form.validateFields((err, values) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.props.form.validateFields((err, values) => {
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(fileList);
|
|
|
|
// console.log(fileList);
|
|
|
|
if(values.description===undefined||values.description===""){
|
|
|
|
if(values.description===undefined||values.description===""){
|
|
|
|
this.scrollToAnchor("valuestypes");
|
|
|
|
this.scrollToAnchor("valuestypes");
|
|
|
|
// debugger
|
|
|
|
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -593,7 +602,7 @@ class GraduationTasksSubmitedit extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
{description&&description?
|
|
|
|
{description&&description?
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{/*<Form onSubmit={this.handleSubmit} >*/}
|
|
|
|
<Form>
|
|
|
|
<div className="stud-class-set pd20 coursenavbox edu-back-white" id={"valuestypes"}>
|
|
|
|
<div className="stud-class-set pd20 coursenavbox edu-back-white" id={"valuestypes"}>
|
|
|
|
<style>{`
|
|
|
|
<style>{`
|
|
|
|
.uploadBtn.ant-btn {
|
|
|
|
.uploadBtn.ant-btn {
|
|
|
@ -831,13 +840,13 @@ class GraduationTasksSubmitedit extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Form.Item>
|
|
|
|
{/*<Form.Item></Form.Item>*/}
|
|
|
|
<div className="clearfix mt30 mb30">
|
|
|
|
<div className="clearfix mt30 mb30">
|
|
|
|
<Button type="primary" htmlType="submit" onClick={()=>this.handleSubmit()} className="defalutSubmitbtn fl mr20">提交</Button>
|
|
|
|
<Button type="primary" onClick={this.handleSubmit} className="defalutSubmitbtn fl mr20">提交</Button>
|
|
|
|
<a onClick={this.goback} className="defalutCancelbtn fl">取消</a>
|
|
|
|
<a onClick={this.goback} className="defalutCancelbtn fl">取消</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
{/*</Form>*/}
|
|
|
|
</Form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
:""}
|
|
|
|
:""}
|
|
|
|
|
|
|
|
|
|
|
|