调整毕设弹窗

dev_cs
杨树明 5 years ago
parent 41e6106275
commit de0fe99b31

@ -83,9 +83,9 @@ export function initAxiosInterceptors(props) {
} }
config.url = `${proxy}${url}`; config.url = `${proxy}${url}`;
if (config.url.indexOf('?') == -1) { if (config.url.indexOf('?') == -1) {
config.url = `${config.url}?debug=${'student'}` config.url = `${config.url}?debug=${debugType}`
} else { } else {
config.url = `${config.url}&debug=${'student'}` config.url = `${config.url}&debug=${debugType}`
} }
} else { } else {
// 加api前缀 // 加api前缀

@ -47,8 +47,8 @@
width:40px; width:40px;
height:24px; height:24px;
line-height: 20px; line-height: 20px;
border:1px solid rgba(76,172,255,1); /*border:1px solid rgba(76,172,255,1);*/
color: #4CACFF!important; /*color: #4CACFF!important;*/
float: left; float: left;
border-radius:4px; border-radius:4px;
text-align: center text-align: center

@ -226,7 +226,7 @@ class GraduationAcross extends Component{
// 确定分配 // 确定分配
sureAcross=()=>{ sureAcross=()=>{
let { AcrossTeamIds , chooseId , group_ids , comment_status }=this.state; let { AcrossTeamIds , chooseId , group_ids , comment_status,page }=this.state;
let { task_Id }=this.props; let { task_Id }=this.props;
let type = comment_status == 2 ? "user_ids" : "graduation_group_ids"; let type = comment_status == 2 ? "user_ids" : "graduation_group_ids";
@ -246,7 +246,7 @@ class GraduationAcross extends Component{
}).then((result)=>{ }).then((result)=>{
if(result){ if(result){
this.props.showNotification(result.data.message); this.props.showNotification(result.data.message);
this.getList(1,group_ids,comment_status); this.getList(page,group_ids,comment_status);
this.setState({ this.setState({
showflag:false, showflag:false,
AcrossTeamIds:undefined, AcrossTeamIds:undefined,
@ -344,6 +344,18 @@ class GraduationAcross extends Component{
width="775px" width="775px"
destroyOnClose={true} destroyOnClose={true}
> >
{modalVisible===true?<style>
{
`
bady{
overflow: hidden !important;
}
`
}
</style>:""}
<div id="closeIcon" onClick={()=>this.props.modalCloss()}>
<i className="iconfont icon-shanchudiao"></i>
</div>
<style> <style>
{` {`
.AcrossModal .ant-modal-body{ .AcrossModal .ant-modal-body{
@ -412,7 +424,7 @@ class GraduationAcross extends Component{
<div className="clearfix mb15 mt15 pl30 pr30" id="acrossContent"> <div className="clearfix mb15 mt15 pl30 pr30" id="acrossContent">
<span className="fl color-grey-c mt5">已选 { chooseCount == 0 ? 0 : <span className="color-blue">{chooseCount}</span>} </span> <span className="fl color-grey-c mt5">已选 { chooseCount == 0 ? 0 : <span className="color-blue">{chooseCount}</span>} </span>
<span className="fr"> <span className="fr">
<span className={"fl mt5"}>分配给{ comment_status && comment_status == 2 ? "老师":"答辩组"}</span> <span className={"fl mt5"}><span className={"color-orange"}>分配</span>{ comment_status && comment_status == 2 ? "":""}</span>
<span className={"fl"} style={{height:"32px"}} id="selectTags"> <span className={"fl"} style={{height:"32px"}} id="selectTags">
<Select <Select
mode="tags" mode="tags"
@ -437,7 +449,7 @@ class GraduationAcross extends Component{
{menu} {menu}
<Divider style={{ margin: '4px 0 0' }} /> <Divider style={{ margin: '4px 0 0' }} />
<div style={{ padding: '8px 12px', cursor: 'pointer' }}> <div style={{ padding: '8px 12px', cursor: 'pointer' }}>
<a onClick={this.sureAcross} className="acrossSureBtn">确定</a> <a onClick={this.sureAcross} className="acrossSureBtn color-orange">提交</a>
<a onClick={this.clearSelect} className="ml20"><span className="acrossResetBtn color-blue">重置</span></a> <a onClick={this.clearSelect} className="ml20"><span className="acrossResetBtn color-blue">重置</span></a>
</div> </div>
</div> </div>
@ -463,10 +475,10 @@ class GraduationAcross extends Component{
<Pagination defaultCurrent={page} current={page} pageSize={limit} total={user_count} onChange={this.onPageChange}></Pagination>:"" <Pagination defaultCurrent={page} current={page} pageSize={limit} total={user_count} onChange={this.onPageChange}></Pagination>:""
} }
</div> </div>
<div className="fr"> {/*<div className="fr">*/}
<a className="task-btn color-white mr30" onClick={this.props.modalCloss}>关闭</a> {/*<a className="task-btn color-white mr30" onClick={this.props.modalCloss}>关闭</a>*/}
<a className="task-btn task-btn-orange" onClick={this.props.modalCloss}>确认</a> {/*<a className="task-btn task-btn-orange" onClick={this.props.modalCloss}>确认</a>*/}
</div> {/*</div>*/}
</div> </div>
</Modal> </Modal>
) )

@ -343,6 +343,7 @@ class GraduationTaskssettingapp extends Component{
} }
updatesfuncrosscomment=(types,newlatetime,newcommenttime)=>{ updatesfuncrosscomment=(types,newlatetime,newcommenttime)=>{
debugger
let {endtimetype}=this.state; let {endtimetype}=this.state;
if(types===1){ if(types===1){
this.setState({ this.setState({
@ -372,7 +373,7 @@ class GraduationTaskssettingapp extends Component{
funcrosscomment=(e)=>{ funcrosscomment=(e)=>{
let {latetime,end_time,allowlate,commenttime,commenttimeone}=this.state; let {latetime,end_time,allowlate,commenttime,commenttimeone}=this.state;
let commenttimetype=commenttime===null||commenttime===""; let commenttimetype=commenttime===null||commenttime==="";
debugger
let newlatetimea=moment(new Date()).add(7, 'days').format("YYYY-MM-DD HH:mm"); let newlatetimea=moment(new Date()).add(7, 'days').format("YYYY-MM-DD HH:mm");
let newcommenttimea=moment(new Date()).format("YYYY-MM-DD HH:mm"); let newcommenttimea=moment(new Date()).format("YYYY-MM-DD HH:mm");
@ -386,7 +387,7 @@ class GraduationTaskssettingapp extends Component{
let newcommenttimed=moment(end_time).add(8, 'days').format("YYYY-MM-DD HH:mm"); let newcommenttimed=moment(end_time).add(8, 'days').format("YYYY-MM-DD HH:mm");
if(e.target.checked===true){ if(e.target.checked===true){
if(commenttimetype===true){ debugger
if(allowlate===1||allowlate===true){ if(allowlate===1||allowlate===true){
if(latetime===null||latetime===""){ if(latetime===null||latetime===""){
@ -401,12 +402,6 @@ class GraduationTaskssettingapp extends Component{
this.updatesfuncrosscomment(2,newend_timed,newcommenttimed) this.updatesfuncrosscomment(2,newend_timed,newcommenttimed)
} }
} }
}else{
this.setState({
crosscomment:e.target.checked,
commenttime:commenttimeone,
})
}
}else{ }else{
this.setState({ this.setState({
@ -545,25 +540,29 @@ class GraduationTaskssettingapp extends Component{
endTimetypes:false endTimetypes:false
}) })
} }
debugger
if(moment(latetime)<=moment(publish_time)){ if(moment(latetime)<=moment(publish_time)){
debugger
this.setState({ this.setState({
latetimetype:true, latetimetype:true,
latetimetypeval:"结束时间必须晚于发布时间" latetimetypeval:"结束时间必须晚于发布时间"
}) })
return return
}else if(moment(latetime)<=moment(end_time)){ }else if(moment(latetime)<=moment(end_time)){
debugger
this.setState({ this.setState({
latetimetype:true, latetimetype:true,
latetimetypeval:"结束时间必须晚于截止时间" latetimetypeval:"结束时间必须晚于截止时间"
}) })
return return
}else{ }else{
debugger
this.setState({ this.setState({
latetimetype:false latetimetype:false
}) })
} }
debugger
if(crosscomment===true){ if(crosscomment===true){
if(this.state.commenttime===undefined||this.state.commenttime===null||this.state.commenttime===""){ if(this.state.commenttime===undefined||this.state.commenttime===null||this.state.commenttime===""){
@ -950,9 +949,7 @@ class GraduationTaskssettingapp extends Component{
// //
// console.log(moment(publish_time)) // console.log(moment(publish_time))
// console.log(this.props.isSuperAdmin()) console.log(commenttime)
return( return(
<React.Fragment> <React.Fragment>

Loading…
Cancel
Save