dev_admin
杨树明 6 years ago
parent a3b8cca670
commit 5333e28f00

@ -185,6 +185,17 @@ class PackageConcent extends Component {
}) })
} }
onChangePagelist=(pageNum)=> {
this.setState({
page: pageNum
})
let {category, keyword, sort_by, sort_direction} = this.state;
this.setdatas(category, keyword, sort_by, sort_direction, pageNum)
}
render() { render() {
let {data,page,category,sort_by,sort_direction,project_packages, let {data,page,category,sort_by,sort_direction,project_packages,
isRender,AccountProfiletype isRender,AccountProfiletype
@ -286,7 +297,7 @@ class PackageConcent extends Component {
<div className=" item-head mbf10"> <div className=" item-head mbf10">
<div className=" item-head-title"> <div className=" item-head-title">
<a className={"fl mt3 font-20 font-bd color-dark maxwidth700 "} <a className={"fl mt3 font-20 font-bd color-dark maxwidth670 "}
onClick={()=>this.onReleaseRequirements("/crowdsourcing/"+item.id)} onClick={()=>this.onReleaseRequirements("/crowdsourcing/"+item.id)}
title={item.title} title={item.title}
>{item.title}</a> >{item.title}</a>
@ -346,7 +357,7 @@ class PackageConcent extends Component {
</div>:""} </div>:""}
<div className={"mt40"}> <div className={"mt40"}>
<Pagination className="edu-txt-center" hideOnSinglePage={true} pageSize={20} current={page} total={data&&data.count} /> <Pagination className="edu-txt-center" onChange={this.onChangePagelist} hideOnSinglePage={true} pageSize={20} current={page} total={data&&data.count} />
</div> </div>

@ -311,7 +311,7 @@ class PackageIndexNEITaskDetails extends Component {
<div className=" item-head mbf10 mt15 "> <div className=" item-head mbf10 mt15 ">
<div className=" item-head-title "> <div className=" item-head-title ">
<span className={"fl mt3 font-18 font-bd color-dark maxwidth700 "} <span className={"fl mt3 font-18 font-bd color-dark maxwidth670 "}
title={data&&data.title} title={data&&data.title}
>{data&&data.title} >{data&&data.title}
</span> </span>

@ -36,7 +36,8 @@ class ProjectPackageIndex extends Component {
} }
render() { render() {
console.log(this.props)
console.log(this.state)
return ( return (
<div className="newMain clearfix"> <div className="newMain clearfix">

@ -31,8 +31,8 @@
color:#8F8F8F !important; color:#8F8F8F !important;
} }
.maxwidth700{ .maxwidth670{
max-width: 700px; max-width: 670px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;

@ -138,6 +138,7 @@ class InfosPackage extends Component{
axios.delete(url).then((response) => { axios.delete(url).then((response) => {
if (response.data.status == 0) { if (response.data.status == 0) {
this.getCourses(cate,status,1); this.getCourses(cate,status,1);
this.cancelProject;
} }
}) })
.catch(function (error) { .catch(function (error) {

Loading…
Cancel
Save