competitions
杨树明 5 years ago
parent 8817c87677
commit 4a3837cd90

@ -7,7 +7,6 @@ import Loading from '../../../../Loading';
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'; import {BrowserRouter as Router,Route,Switch} from 'react-router-dom';
import axios from 'axios'; import axios from 'axios';
import HomeworkModal from "../../coursesPublic/HomeworkModal"; import HomeworkModal from "../../coursesPublic/HomeworkModal";
import OneSelfOrderModal from "../../coursesPublic/OneSelfOrderModal";
import AccessoryModal from "../../coursesPublic/AccessoryModal"; import AccessoryModal from "../../coursesPublic/AccessoryModal";
import Associationmodel from '../../coursesPublic/Associationmodel'; import Associationmodel from '../../coursesPublic/Associationmodel';
import CoursesListType from '../../coursesPublic/CoursesListType'; import CoursesListType from '../../coursesPublic/CoursesListType';
@ -41,7 +40,6 @@ class GraduationTaskDetail extends Component{
this.state={ this.state={
modalname:undefined, modalname:undefined,
visible:false, visible:false,
OneSelftype:false,
Topval:undefined, Topval:undefined,
starttime:undefined, starttime:undefined,
starttimes:undefined, starttimes:undefined,
@ -117,20 +115,17 @@ class GraduationTaskDetail extends Component{
} }
//立即发布 //立即发布
publish=()=>{ publish=()=>{
let {questionslist}=this.state;
let starttime= this.props.getNowFormatDates(1,1); let starttime= this.props.getNowFormatDates(1,1);
let endtime=this.props.getNowFormatDates(2,1); let endtime=this.props.getNowFormatDates(2,1);
// this.homeworkstart() // this.homeworkstart()
this.setState({ this.setState({
modalname:"立即发布", modalname:"立即发布",
visible:true, visible:true,
OneSelftype:true,
Topval:"学生将立即收到毕设任务", Topval:"学生将立即收到毕设任务",
// Botvalleft:"点击修改", // Botvalleft:"点击修改",
// Botval:`本操作只对"未发布"的分班有效`, // Botval:`本操作只对"未发布"的分班有效`,
starttime:moment(moment(new Date())).format("YYYY-MM-DD HH:mm") , starttime:moment(moment(new Date())).format("YYYY-MM-DD HH:mm") ,
starttimes:questionslist.end_time, starttimes:this.props.getNowFormatDates(1),
staytime:this.props.getNowFormatDates(1),
typs:"start", typs:"start",
endtime:endtime, endtime:endtime,
Cancelname:"暂不发布", Cancelname:"暂不发布",
@ -181,9 +176,7 @@ class GraduationTaskDetail extends Component{
this.setState({ this.setState({
modalname:"立即截止", modalname:"立即截止",
visible:true, visible:true,
OneSelftype:true,
Topval:"学生将不能再提交作品", Topval:"学生将不能再提交作品",
starttime:undefined,
// Botvalleft:"暂不截止", // Botvalleft:"暂不截止",
// Botval:`本操作只对"提交中"的分班有效`, // Botval:`本操作只对"提交中"的分班有效`,
Cancelname:"暂不截止", Cancelname:"暂不截止",
@ -219,7 +212,6 @@ class GraduationTaskDetail extends Component{
Modalstype:false, Modalstype:false,
Loadtype:false, Loadtype:false,
visible:false, visible:false,
OneSelftype:false,
Modulationtype:false, Modulationtype:false,
Allocationtype:false, Allocationtype:false,
Modalstopval:"", Modalstopval:"",
@ -329,12 +321,11 @@ class GraduationTaskDetail extends Component{
{ {
questionslist && questionslist &&
<div className={"educontent mb20"}> <div className={"educontent mb20"}>
<OneSelfOrderModal <HomeworkModal
staytime={this.state.staytime}
starttimes={this.state.starttimes} starttimes={this.state.starttimes}
typs={this.state.typs} typs={this.state.typs}
modalname={this.state.modalname} modalname={this.state.modalname}
OneSelftype={this.state.OneSelftype} visible={this.state.visible}
Topval={this.state.Topval} Topval={this.state.Topval}
Topvalright={this.state.Topvalright} Topvalright={this.state.Topvalright}
Botvalleft={this.state.Botvalleft} Botvalleft={this.state.Botvalleft}

Loading…
Cancel
Save