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() {
let {data,page,category,sort_by,sort_direction,project_packages,
isRender,AccountProfiletype
@ -286,7 +297,7 @@ class PackageConcent extends Component {
<div className=" item-head mbf10">
<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)}
title={item.title}
>{item.title}</a>
@ -346,7 +357,7 @@ class PackageConcent extends Component {
</div>:""}
<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>

@ -311,7 +311,7 @@ class PackageIndexNEITaskDetails extends Component {
<div className=" item-head mbf10 mt15 ">
<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}
>{data&&data.title}
</span>

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

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

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

Loading…
Cancel
Save