|
|
|
@ -358,6 +358,7 @@ class GraduationTasksSubmitnew extends Component{
|
|
|
|
|
|
|
|
|
|
//公用数据
|
|
|
|
|
Commoninterface = (fileList,selectmemberslist,workslist)=>{
|
|
|
|
|
debugger
|
|
|
|
|
let userids=[];
|
|
|
|
|
|
|
|
|
|
for(var list of selectmemberslist){
|
|
|
|
@ -379,11 +380,11 @@ class GraduationTasksSubmitnew extends Component{
|
|
|
|
|
}
|
|
|
|
|
// if( GraduationTasksnewtype===true){
|
|
|
|
|
this.props.form.validateFields((err, values) => {
|
|
|
|
|
if (!err) {
|
|
|
|
|
console.log(values.description);
|
|
|
|
|
|
|
|
|
|
// console.log(fileList);
|
|
|
|
|
if(values.description===undefined||values.description===""){
|
|
|
|
|
|
|
|
|
|
this.scrollToAnchor("valuestypes");
|
|
|
|
|
debugger
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if(workslist&&workslist.task_type===2){
|
|
|
|
@ -414,13 +415,12 @@ class GraduationTasksSubmitnew extends Component{
|
|
|
|
|
|
|
|
|
|
let id=this.props.match.params.task_Id;
|
|
|
|
|
|
|
|
|
|
if(fileList.length === 0){
|
|
|
|
|
this.setState({
|
|
|
|
|
shixunsreplace:true,
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
debugger
|
|
|
|
|
// if(fileList.length === 0){
|
|
|
|
|
// this.setState({
|
|
|
|
|
// shixunsreplace:true,
|
|
|
|
|
// })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
let url="/graduation_tasks/"+id+"/graduation_works.json";
|
|
|
|
|
axios.post(url, {
|
|
|
|
|
description:values.description,
|
|
|
|
@ -452,7 +452,7 @@ debugger
|
|
|
|
|
console.log(error)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
@ -460,6 +460,7 @@ debugger
|
|
|
|
|
|
|
|
|
|
//确认
|
|
|
|
|
hidestartshixunsreplace=()=>{
|
|
|
|
|
debugger
|
|
|
|
|
let {fileList,selectmemberslist,workslist}=this.state;
|
|
|
|
|
this.Commoninterface(fileList,selectmemberslist,workslist);
|
|
|
|
|
|
|
|
|
@ -468,9 +469,17 @@ debugger
|
|
|
|
|
hidestartshixunsreplacetwo=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
shixunsreplace:false,
|
|
|
|
|
spinnings:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
scrollToAnchor = (anchorName) => {
|
|
|
|
|
if (anchorName) {
|
|
|
|
|
// 找到锚点
|
|
|
|
|
let anchorElement = document.getElementById(anchorName);
|
|
|
|
|
// 如果对应id的锚点存在,就跳转到锚点
|
|
|
|
|
if(anchorElement) { anchorElement.scrollIntoView({block: 'start', behavior: 'smooth'}); }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
render(){
|
|
|
|
|
const { getFieldDecorator } = this.props.form;
|
|
|
|
|
let {search,fileList, workslist,setvalue,minvalue,minmaxtype,Loadtype,
|
|
|
|
@ -570,7 +579,7 @@ render(){
|
|
|
|
|
|
|
|
|
|
{/*<Form onSubmit={GraduationTasksnewtype===true?this.handleSubmit:"return false"}*/}
|
|
|
|
|
{/*>*/}
|
|
|
|
|
<div className="stud-class-set pd20 coursenavbox edu-back-white">
|
|
|
|
|
<div className="stud-class-set pd20 coursenavbox edu-back-white" id={"valuestypes"}>
|
|
|
|
|
<style>{`
|
|
|
|
|
.uploadBtn.ant-btn {
|
|
|
|
|
border: none;
|
|
|
|
|