Merge branches 'dev_aliyun' and 'issues25489' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

issues25489
杨树明 5 years ago
commit bfb55c75cb

@ -2668,18 +2668,18 @@ class Studentshavecompletedthelist extends Component {
</div> </div>
: :
<div> <div>
{/*{testpapergradingboll === true ? <ModulationModal*/} {testpapergradingboll === true ? <ModulationModal
{/* visible={testpapergradingboll}*/} visible={testpapergradingboll}
{/* Cancel={() => this.Adjustments()}*/} Cancel={() => this.Adjustments()}
{/* Saves={(value, num) => this.Testpapergrading(value, num)}*/} Saves={(value, num) => this.Testpapergrading(value, num)}
{/*/> : ""}*/} /> : ""}
{ {/*{*/}
testpapergradingboll === true ? <ModulationModal_exercise {/* testpapergradingboll === true ? <ModulationModal_exercise*/}
visible={testpapergradingboll} {/* visible={testpapergradingboll}*/}
Cancel={() => this.Adjustments()} {/* Cancel={() => this.Adjustments()}*/}
Saves={(value, num) => this.Testpapergrading(value, num)} {/* Saves={(value, num) => this.Testpapergrading(value, num)}*/}
/> : "" {/* /> : ""*/}
} {/*}*/}
<div className="edu-back-white" > <div className="edu-back-white" >
<ul className="clearfix" style={{padding: '10px 30px 10px 30px'}}> <ul className="clearfix" style={{padding: '10px 30px 10px 30px'}}>

@ -42,6 +42,9 @@
font-weight:400; font-weight:400;
color:rgba(5,16,26,1); color:rgba(5,16,26,1);
line-height:24px; line-height:24px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.ant-input::-webkit-input-placeholder{ .ant-input::-webkit-input-placeholder{

@ -39,14 +39,16 @@ class Osshackathon extends Component {
search:search, search:search,
}}).then((result)=>{ }}).then((result)=>{
if(result.status==200){ if(result.status==200){
console.log(result)
this.setState({ this.setState({
data:result.data, data:result.data,
spinning:false spinning:false
}) })
}else{
this.setState({
spinning:false
})
} }
}).catch((error)=>{ }).catch((error)=>{
console.log(error);
this.setState({ this.setState({
spinning:true spinning:true
}) })
@ -92,6 +94,15 @@ class Osshackathon extends Component {
Signupentry=(id)=>{ Signupentry=(id)=>{
// 用户报名 // 用户报名
if(this.props.checkIfLogin()===false){
this.props.showLoginDialog()
return
}
if(this.props.checkIfProfileCompleted()===false){
this.props.showProfileCompleteDialog()
return
}
this.props.confirm({ this.props.confirm({
content: `是否确认报名?`, content: `是否确认报名?`,
onOk: () => { onOk: () => {
@ -157,7 +168,7 @@ class Osshackathon extends Component {
.then((response) => { .then((response) => {
if (response.data.status == 0) { if (response.data.status == 0) {
// {"status":1,"message":"删除成功"} // {"status":1,"message":"删除成功"}
this.getosshackathonlist() this.getosshackathonlist();
this.props.showNotification(`删除成功`); this.props.showNotification(`删除成功`);
} }
}) })
@ -172,6 +183,9 @@ class Osshackathon extends Component {
this.setState({ this.setState({
search:value search:value
}) })
if(value.length>300){
this.props.showNotification(`搜索字数大于300个字`);
}
let {page,limit,search}=this.state; let {page,limit,search}=this.state;
this.getosshackathon(page,limit,value) this.getosshackathon(page,limit,value)
} }
@ -280,7 +294,7 @@ class Osshackathon extends Component {
return( return(
<Card className={"OsshackathonCard mb20"} key={key}> <Card className={"OsshackathonCard mb20"} key={key}>
<Row> <Row>
<Col span={6} className={"OsshackathonCardtitle"}> <Col span={20} className={"OsshackathonCardtitle"}>
{item.name} {item.name}
</Col> </Col>
@ -319,7 +333,7 @@ class Osshackathon extends Component {
return( return(
<Card className={"OsshackathonCard mb20"}> <Card className={"OsshackathonCard mb20"}>
<Row> <Row>
<Col span={6} className={"OsshackathonCardtitle"}> <Col span={20} className={"OsshackathonCardtitle"}>
{item.name} {item.name}
</Col> </Col>
<Col span={4} className={"fr textcenter width14bai"}> <Col span={4} className={"fr textcenter width14bai"}>
@ -346,7 +360,7 @@ class Osshackathon extends Component {
</Row> </Row>
</div> </div>
</Col> </Col>
<Col span={18} pull={6} className={"minheight50px "}> <Col span={18} pull={6} className={"minheight50px ml5"}>
{item.description} {item.description}
</Col> </Col>
</Row> </Row>

@ -100,7 +100,7 @@ class Osshackathonmodel extends Component{
render() { render() {
let {textareavaltype}=this.state; let {textareavaltype}=this.state;
// console.log(this.props.tabkey) // console.log(this.props.tabkey)
console.log(this.props.Osshackathonmodeltype) // console.log(this.props.Osshackathonmodeltype)
return ( return (
<div> <div>
@ -139,7 +139,7 @@ class Osshackathonmodel extends Component{
<Modal <Modal
keyboard={false} keyboard={false}
className={"HomeworkModal"} className={"HomeworkModal"}
title={"新建项目"} title={this.props.modelid===undefined?"新建项目":"编辑项目"}
visible={this.props.Osshackathonmodeltype} visible={this.props.Osshackathonmodeltype}
closable={false} closable={false}
footer={null} footer={null}

Loading…
Cancel
Save