dev_aliyun
杨树明 5 years ago
parent 4ac9d9fffd
commit e4ab198049

@ -224,8 +224,8 @@ class PackageIndexNEITaskDetails extends Component {
render() {
let {overtype,data}=this.state;
console.log(data)
console.log(this.props)
console.log(data&&data.creator)
// console.log(this.props)
return (
<div>
<div className="clearfix">
@ -275,7 +275,7 @@ class PackageIndexNEITaskDetails extends Component {
{data&&data.creator.name}
</div>
{this.props.current_user.login!=data&&data.creator.login?<div className=" edu-back-white ml5 mt10 "
{this.props.current_user.login!=data&&data.creator&&data&&data.creator.login?<div className=" edu-back-white ml5 mt10 "
onMouseOver={this.setover}
onMouseOut={this.setout}
>
@ -366,7 +366,7 @@ class PackageIndexNEITaskDetails extends Component {
<div className={"stud-class-set pd30a0 coursenavbox edu-back-white"}>
<div className={"relativef"}>
<div className={"longboxs"}>
报名列表(12)
报名列表({data&&data.bidding_users.length})
</div>
<div className="packageabsolute">
{data&&data.operation.can_bidding===true?<Button type="primary" className="defalutSubmitbtn fl ml20 defalutSubmitbtns" onClick={this.setBiddingApply}>竞标报名</Button>:""}
@ -393,6 +393,14 @@ class PackageIndexNEITaskDetails extends Component {
</div>
)
})}
{data&&data.bidding_users.length===0?<div className="edu-back-white">
<div className="edu-tab-con-box clearfix edu-txt-center">
<img className="edu-nodata-img mb20" src="https://www.educoder.net/images/educoder/nodata.png" />
<p className="edu-nodata-p mb20">暂无人员竞标~</p></div>
</div>:""}
</div>
</div>
</div>
@ -402,7 +410,7 @@ class PackageIndexNEITaskDetails extends Component {
<div className={"stud-class-set pd30a0 coursenavbox edu-back-white"}>
<div className={"relativef"}>
<div className={"longboxs"}>
报名列表(12)
报名列表({data&&data.bidding_users.length})
</div>
<div className="packageabsolute">

Loading…
Cancel
Save